View Single Post
Old
  (#4 (permalink))
Devastatorrrr
Junior Member
 
Status: Offline
Posts: 34
Join Date: Mar 2007
Location: UK
08-27-2007, 09:02 AM

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>
  Send a message via MSN to Devastatorrrr  
Reply With Quote