Author |
Message |
Snotrocket
New Member
Joined: Dec 22, 2005
Posts: 11
|
Posted:
Thu May 04, 2006 4:58 pm |
|
I just installed the newest ravens nuke pack and am having a problem with my members list. Everytime I click on it and try to view it I get a blank page with the following message.
"You can't access this file directly..."
I've reinstalled Nuke 3 times now and made a new database each time. I've got the same version of nuke running on another site and can't figure this out for the life of me.
Anyone with some insight? |
|
|
|
|
Raven
Site Admin/Owner
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Fri May 05, 2006 1:47 am |
|
That sounds like an ftp issue. Try re-ftp your modules/Members_List folder again as BINARY, not ASCII. Also, have you checked your error_log to see if there are any other errors? If that doesn't work, I would re-ftp all the files in binary mode. |
|
|
|
|
Zlashx
New Member
Joined: May 31, 2006
Posts: 7
|
Posted:
Mon Jun 05, 2006 9:00 am |
|
I have the same problem with my members list. I have tried setting flashFXP to binary and reuploading that module with no luck...what else could i try?
zugguild.com is the site |
|
|
|
|
gregexp
The Mouse Is Extension Of Arm
Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol
|
Posted:
Mon Jun 05, 2006 9:25 am |
|
could u post the link ur trying to use to see this? |
_________________ For those who stand shall NEVER fall and those who fall shall RISE once more!! |
|
|
|
Zlashx
|
Posted:
Mon Jun 05, 2006 9:31 am |
|
It's there =p. zugguild.com |
|
|
|
|
gregexp
|
Posted:
Mon Jun 05, 2006 9:55 am |
|
this is in the coding error..i know u cant post the index.php of that module...so remove the section of code that says this
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
no this would be a temporary fix...but if it doesnt work..it might display the REAL reason its stoping u. |
|
|
|
|
Tao_Man
Involved
Joined: Jul 15, 2004
Posts: 252
Location: OKC, OK
|
Posted:
Mon Jun 05, 2006 10:47 am |
|
in the distro the line is
if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {
die ("You can't access this file directly...");
}
Try changing it to
if ( !defined('MODULE_FILE') )
{
die("You can't access this file directly...");
}
What version of PHP do you have on your site? |
_________________ ------------------------------------------
To strive, to seek, to find, but not to yield!
I don't know Kara-te but I do know cra-zy, and I WILL use it!
Last edited by Tao_Man on Mon Jun 05, 2006 10:51 am; edited 1 time in total |
|
|
|
Guardian2003
Site Admin
Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Mon Jun 05, 2006 10:49 am |
|
That code snippet should not even be in the modules index.php, it should be
Code:if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {
die ("You can't access this file directly...");
}
|
|
|
|
|
|
Zlashx
|
Posted:
Mon Jun 05, 2006 12:12 pm |
|
Tao_Man wrote: | in the distro the line is
if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {
die ("You can't access this file directly...");
}
Try changing it to
if ( !defined('MODULE_FILE') )
{
die("You can't access this file directly...");
}
What version of PHP do you have on your site? |
Ok if i comment out the original code it works and if i change it to what you said here it works. So yea cool thanks this was driving me nuts. |
|
|
|
|
Tao_Man
|
Posted:
Mon Jun 05, 2006 1:31 pm |
|
well you really don't want to just leave it out, as then the file can just be run by itself and bypass almost all security.
I am no guru but the other code should keep you safe enough, it is the code used in pretty much every other modual. |
|
|
|
|
Zlashx
|
Posted:
Mon Jun 05, 2006 1:35 pm |
|
Yea I left the new code in. |
|
|
|
|
montego
Site Admin
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Tue Jun 06, 2006 6:31 am |
|
Guardian is right with what code needs to be in that module's index.php script! You will want to keep that in.
You have an issue with one of your other files. Raven suggesting re-FTP'ing all your files using binary mode. I would do that, or at least try your root nuke directory files and the includes directory. However, if this fixes it, you need to do them all again to ensure you do not have other issues. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
|
Tao_Man
|
Posted:
Tue Jun 06, 2006 9:18 am |
|
I thought it was funny that member list would have a different method to tell if it was in the module file then the others. I went and downloaded Chatserv version 3.2
Long story short, it looks like RN 7.6 distro missed a file in the 3.2b patch files for nuke 7.6 the line does read
if ( !defined('MODULE_FILE') )
{
die("You can't access this file directly...");
}
so unless there is a reason I don’t understand why it should be different. I think the above line should be the right statement to use. |
|
|
|
|
|