I updated my website from 7.0 to 7.3 and now getting Access Denied to a few of my modules.
I can't access
admin.php?op=Ephemerids and admin.php?op=sections
I get ACCESS Denied on both module
Any help would be wonderful.
I check the nuke_author to make sure the username has the right permission.
I have radminsuper=1.
Any help would be wonderful.
HalJordan Support Staff
Joined: Aug 07, 2004
Posts: 1117
Location: Somewhere around Hunan, China
Posted:
Mon Sep 05, 2005 6:30 pm
You can get "Access denied" for two reasons. One is if the admin account is not recognized, and the other is if the script is being called improperly from admin.php.
These are the lines in ephemerids.php in the admin/modules directory that have to do with administrators:
Code:
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
global $prefix, $db;
$aid = substr("$aid", 0,25);
$row = $db->sql_fetchrow($db->sql_query("SELECT radminephem, radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'"));
if (($row['radminephem'] == 1) OR ($row['radminsuper'] == 1)) {
You can try taking out the radminephem references to see if that helps. If not, then change $_SERVER['PHP_SELF'] to $_SERVER['SCRIPT_NAME']. The first is stock 7.3 and the second is from 7.3 patched.
You can post new topics in this forum You can 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