13:59 Mon Sep  3, 2007
Cheap Hummer!

12:18 Tue Jul  4, 2006
Hummer Camp After

12:15 Tue Jul  4, 2006
Hummer Camp

Help Me Humpa
PHP and MMS Server Help
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Admin Link..."Users" Nuke 7.5 patched 3.1

 
Post new topic   Reply to topic    Help Me Humpa Forum Index -> Anything PHP
View previous topic :: View next topic  
Author Message
Adrenalizer3
Guest





PostPosted: Sun Dec 11, 2005 4:36 am    Post subject: Admin Link..."Users" Nuke 7.5 patched 3.1 Reply with quote

When I go to the admin CP and click on Users I get a white blank page with the message "Your can't access this file directly." This is the only link that does this. All other admin links work as they should. Any idea's where to start? I have been adding add on's for a while now and Im not sure when this link was affected. I tried just adding the patched files again but that didnt work. Please help if ya can.

Thanks,

AD
Back to top
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Sun Dec 11, 2005 6:28 am    Post subject: Re: Admin Link..."Users" Nuke 7.5 patched 3.1 Reply with quote

Adrenalizer3 wrote:
When I go to the admin CP and click on Users I get a white blank page with the message "Your can't access this file directly." This is the only link that does this. All other admin links work as they should. Any idea's where to start? I have been adding add on's for a while now and Im not sure when this link was affected. I tried just adding the patched files again but that didnt work. Please help if ya can.

Thanks,

AD

I don't have the current version of phpnuke, but up to version 6.5, you shouldn't get that error message from an admin page.
Are you clicking on the Edit Users graphic link on the admin.php page? What is the url in your browser for that page? Is it admin.php?op=mod_users ?
If so, open the admin/modules/users.php in a text editor and paste in whatever authorization checking code it uses. It should be something like this:
Code:
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }

But it seems you have something like this:
Code:
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) {
    die ("You can't access this file directly...");
}

Or see if the word "directly" exists in that admin/modules/users.php file, and paste in those lines.
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Dec 11, 2005 1:57 pm    Post subject: Reply with quote

Quote:
Is it admin.php?op=mod_users ?


Thats exactly what the link says. Im running 7.5 nuke and there is no admin/modules/users.php

I went and looked at previous versions of nuke installs I had and looking at version 7.0 there is a admin/modules/users.php. I added it and still get the same error and checked your suggestions of:
Quote:
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
and all looked right. I just dont get it.

Any other thoughts?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Help Me Humpa Forum Index -> Anything PHP All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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