View Single Post
  #4 (permalink)  
Old 08-27-2007, 08:02 AM
Devastatorrrr Devastatorrrr is offline
Junior Member
 
Join Date: Mar 2007
Location: UK
Posts: 34
Send a message via MSN to Devastatorrrr
Yup i've had this same problem with 7.6 to save you all registering upto Nukefixes here's the fix.

In footer.php find:

Code:
 
function foot() { 
global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $module, $name;
change to:

Code:
 
function foot() { 
global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $module, $name, $admin;
also find:

Code:
 
if ($module == 1 AND file_exists("modules/$name/admin/panel.php")) {
change to:

Code:
 
if ($module == 1 AND (file_exists("modules/$name/admin/panel.php") && is_admin($admin))) {
Now this table (panel.php) will only be included if, it exists, and the user is an admin.
__________________
<a href="http://www.eow-clan.co.uk" target="_blank"><img src="http://img410.imageshack.us/img410/6644/sig5di9.jpg" border="0" alt="Devastator" </a>
Reply With Quote