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 -> phpnuke 7.3
Author Message
HauntedWebby
Involved
Involved



Joined: May 19, 2004
Posts: 363
Location: Ogden, UT

PostPosted: Mon Nov 01, 2004 9:49 am Reply with quote

Has anyone ran into this?

Now that it's a new month I want a new module as my Homepage module. I want to use a add on module, but when I change it to be the homepage one and then visit the homepage it says 'You can't access this file directly...'

That seems so weird to me .. but most everything is LOL

_________________
--Webby-- 
View user's profile Send private message Send e-mail
TheosEleos
Life Cycles Becoming CPU Cycles



Joined: Sep 18, 2003
Posts: 960
Location: Missouri

PostPosted: Mon Nov 01, 2004 10:08 am Reply with quote

There is a post from me about that around here somewhere. Check the 6.5 forum. I'll go look there myself real quick.

_________________
http://jamesdibben.com 
View user's profile Send private message Visit poster's website AIM Address ICQ Number
TheosEleos







PostPosted: Mon Nov 01, 2004 10:17 am Reply with quote

It was in the 6.9 forum.
[ Only registered users can see links on this board! Get registered or login! ]
 
HauntedWebby







PostPosted: Mon Nov 01, 2004 10:28 am Reply with quote

Well that's not the fix .... but thanks for looking.

Mine says
Code:
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {

    die ("You can't access this file directly...");
}


And Raven's fix looks the same
Raven wrote:
Modify this line
Code:
        if (!eregi("modules.php", $PHP_SELF)) die ("You can't access this file directly...");
to this
Code:
        if (!eregi("modules.php", $_SERVER['PHP_SELF'])) die ("You can't access this file directly...");


Hmmmm. Any other ideas?
 
chatserv
Member Emeritus



Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico

PostPosted: Mon Nov 01, 2004 10:39 am Reply with quote

If you are using Nuke Patched try changing $_SERVER['PHP_SELF'] to $_SERVER['SCRIPT_NAME']
 
View user's profile Send private message Visit poster's website
HauntedWebby







PostPosted: Mon Nov 01, 2004 11:59 am Reply with quote

I am patched with your patches .... but that didn't work either

Any other ideas?

What I want to put up front is the Recipe Module by Jens [ Only registered users can see links on this board! Get registered or login! ]
 
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 -> phpnuke 7.3

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 ©