| View previous topic :: View next topic |
| Author |
Message |
Adrenalizer3 Guest
|
Posted: Sun Dec 11, 2005 4:36 am Post subject: Admin Link..."Users" Nuke 7.5 patched 3.1 |
|
|
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
|
Posted: Sun Dec 11, 2005 6:28 am Post subject: Re: Admin Link..."Users" Nuke 7.5 patched 3.1 |
|
|
| 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 |
|
 |
Guest
|
Posted: Sun Dec 11, 2005 1:57 pm Post subject: |
|
|
| 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 |
|
 |
|