Forum - View topic
ANN PHPNuke Block - Fix for 7.5 to 7.9-8.0




Anime News Network Forum Index -> Site-related -> Bugs & Technical Questions
View previous topic :: View next topic  
Author Message
PeNdEjO



Joined: 25 Jul 2007
Posts: 1
PostPosted: Fri Jul 27, 2007 12:31 am Reply with quote
Tested on PHPNuke 7.9 (Patched 3.3)

Search & replace:

Find:
Code:
if (eregi("block-ANN.php",$PHP_SELF)) {
   Header("Location: index.php");
   die();
}


Replace:
Code:
if(!defined('BLOCK_FILE')){
   Header("Location: ../index.php");
   die();
}

global $db;


Find: (4 times)
Code:
mysql_query


Replace:
Code:
$db->sql_query


Find:
Code:
mysql_fetch_array


Replace:
Code:
$db->sql_fetchrow


Save and close.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Anime News Network Forum Index -> Site-related -> Bugs & Technical Questions All times are GMT - 5 Hours
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group