Xbox-Hq.Com :: View topic - v0.3plusplus on phpnuke 7.7 bug+fix
MaSTeRMinD V.I.P. Lifetime Xbox Version: none Modded: none Joined: Jan 24, 2005 Posts: 16
Posted: Sat May 07, 2005 3:06 pm Post subject: v0.3plusplus on phpnuke 7.7 bug+fix
First of all Works great
Also I would like to report a small bug for 7.7 i guess the same problem is present for phpnuke v7.6
If you have a renamed admin.php file , the link ot the admin panel points to admin.php not to your renamed file. And here is the fix.
Open modules/Flash_Games/admin/links.php
and remove
Code:
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
adminmenu("admin.php?op=FlashGames", "Flash Games", "flashgames.gif");
add these lines instead
Code:
if (!defined('ADMIN_FILE')) {
die ("Access Denied");
}
global $admin_file;
adminmenu("".$admin_file.".php?op=FlashGames", "Flash Games", "flashgames.gif");
Also modules/Flash_Games/index.php must be edited in order to fix the same bug.
Find this line
Code:
global $module_name, $admin, $user, $func, $prefix, $dbi, $bgcolor1;
and replace it with or in the end just add $admin_file
Code:
global $module_name, $admin, $user, $func, $prefix, $dbi, $bgcolor1, $admin_file ;
then one line below you will find
Code:
echo "<center><a href=\"admin.php?op=FlashGames\"><font color=\"red\">"._ADMINTOOLS."</a></font>";
replace it with
Code:
echo "<center><a href=\"".$admin_file.".php?op=FlashGames\"><font color=\"red\">"._ADMINTOOLS."</a></font>";
Thats all you are done
forahobby Administrator Joined: May 22, 2003 Posts: 23944 Location: NSW, Australia
|
All times are GMT | Page 1 of 1
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum