Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - PHP Nuke
Author Message
Fortissimo
New Member
New Member



Joined: Jun 25, 2004
Posts: 5

PostPosted: Sun Jul 11, 2004 7:10 pm Reply with quote

I originally asked this question in this thread:
[ Only registered users can see links on this board! Get registered or login! ]

However, the fix you gave me does not fix it.

Any module I attempt to use, besides the NEWS module, in home, will not work.

I've changed any reference of:

if (!eregi("modules.php", $_SERVER['PHP_SELF']))

to

if (!eregi("modules.php", $_SERVER['SCRIPT_NAME']))

and still, I get the bloody "You can't access this file directly..." when I go to the index page.

What can I provide you to help me fix this problem?

Thank you in advance for your help. I do very much appreciate the time and effort everyone puts into this.
 
View user's profile Send private message
chatserv
Member Emeritus



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

PostPosted: Sun Jul 11, 2004 11:09 pm Reply with quote

Check your main index.php file, in it make sure you have:
$_SERVER['SCRIPT_NAME'] = "modules.php";
and not:
$_SERVER['PHP_SELF'] = "modules.php";
 
View user's profile Send private message Visit poster's website
Fortissimo







PostPosted: Mon Jul 12, 2004 11:17 am Reply with quote

Here are the first lines of my root index.php file

require_once("mainfile.php");
$modpath = '';
$_SERVER['SCRIPT_NAME'] = "modules.php";
$row = $db->sql_fetchrow($db->sql_query("SELECT main_module from ".$prefix."_main"));
$name = $row['main_module'];
$home = 1;
 
chatserv







PostPosted: Mon Jul 12, 2004 12:16 pm Reply with quote

Change that to:
Code:
require_once("mainfile.php"); 

$modpath = '';
$_SERVER['SCRIPT_NAME'] = "modules.php";
$_SERVER['PHP_SELF'] = "modules.php";
$row = $db->sql_fetchrow($db->sql_query("SELECT main_module from ".$prefix."_main"));
$name = $row['main_module'];
$home = 1;

If the module(s) in question work it means they are still using PHP_SELF and need to be edited.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - PHP Nuke

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 ©