Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro
Author Message
Snotrocket
New Member
New Member


Joined: Dec 22, 2005
Posts: 11

PostPosted: Thu May 04, 2006 4:58 pm Reply with quote

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?
 
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Fri May 05, 2006 1:47 am Reply with quote

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.
 
View user's profile Send private message
Zlashx
New Member
New Member


Joined: May 31, 2006
Posts: 7

PostPosted: Mon Jun 05, 2006 9:00 am Reply with quote

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
 
View user's profile Send private message
gregexp
The Mouse Is Extension Of Arm


Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

PostPosted: Mon Jun 05, 2006 9:25 am Reply with quote

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!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Zlashx
PostPosted: Mon Jun 05, 2006 9:31 am Reply with quote

It's there =p. zugguild.com
 
gregexp
PostPosted: Mon Jun 05, 2006 9:55 am Reply with quote

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
Involved


Joined: Jul 15, 2004
Posts: 252
Location: OKC, OK

PostPosted: Mon Jun 05, 2006 10:47 am Reply with quote

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 
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6793
Location: Ha Noi, Viet Nam

PostPosted: Mon Jun 05, 2006 10:49 am Reply with quote

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...");
}
 
View user's profile Send private message Send e-mail
Zlashx
PostPosted: Mon Jun 05, 2006 12:12 pm Reply with quote

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
PostPosted: Mon Jun 05, 2006 1:31 pm Reply with quote

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
PostPosted: Mon Jun 05, 2006 1:35 pm Reply with quote

Yea I left the new code in.
 
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9456
Location: Arizona

PostPosted: Tue Jun 06, 2006 6:31 am Reply with quote

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! 
View user's profile Send private message Visit poster's website
Tao_Man
PostPosted: Tue Jun 06, 2006 9:18 am Reply with quote

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.
 
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.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©