You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 88 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Upgarded to 7.3 now get access denied to Sections and Ephi [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
nismodude
Guest






PostPosted: Mon Sep 05, 2005 10:58 am Reply with quoteBack to top

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.
Find all posts by Anonymous
HalJordan
Support Staff
Support Staff


Joined: Aug 07, 2004
Posts: 1117

Location: Somewhere around Hunan, China

PostPosted: Mon Sep 05, 2005 6:30 pm Reply with quoteBack to top

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.

Do the same for sections.php.

_________________
Obedezco, pero no cumplo.

Proprietor, www.computernewbie.info
Support staff, www.nukecops.com
Find all posts by HalJordanView user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
Guest







PostPosted: Tue Sep 06, 2005 12:30 pm Reply with quoteBack to top

Thanks, I will try this out later today.
Let u know if it worked.
Find all posts by Anonymous
nismo-dude
Guest






PostPosted: Sat Sep 10, 2005 7:37 am Reply with quoteBack to top

Sorry for the late post finally was able to get to it today.

I try the fix you gave me but still getting the access deny.

I made the following changes.

if (!eregi("admin.php", $_SERVER['SCRIPT_NAME'])) { 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)) {

Anything else I may need to look back at?
Find all posts by Anonymous
Guest







PostPosted: Sat Sep 10, 2005 8:48 am Reply with quoteBack to top

Try this:
Code:

if (!eregi("admin.php", $_SERVER['SCRIPT_NAME'])) { die ("Access Denied"); }
global $prefix, $db;
$aid = substr("$aid", 0,25);
$row = $db->sql_fetchrow($db->sql_query("SELECT radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'"));
if ($row['radminsuper'] == 1) {
Find all posts by Anonymous
HalJordan
Support Staff
Support Staff


Joined: Aug 07, 2004
Posts: 1117

Location: Somewhere around Hunan, China

PostPosted: Sat Sep 10, 2005 8:51 am Reply with quoteBack to top

Sorry I sent that last post. Forgot to log in first.

_________________
Obedezco, pero no cumplo.

Proprietor, www.computernewbie.info
Support staff, www.nukecops.com
Find all posts by HalJordanView user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
nismodude
Guest






PostPosted: Sun Sep 11, 2005 1:09 pm Reply with quoteBack to top

Hi HalJordan

Thanks for the help you are the man...
It works =)..

Thank you very much!!!
Find all posts by Anonymous
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.469 Seconds - 179 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::