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
sharlein
Member Emeritus


Joined: Nov 19, 2002
Posts: 322
Location: On the Road

PostPosted: Wed May 12, 2004 6:15 pm Reply with quote

I am trying to move a module that I made to home, but I keep getting the
Code:
You cannot access this page directly
message. If I choose the module through the menu option, it works fine. Thanks, Steve
 
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2496

PostPosted: Thu May 13, 2004 6:33 am Reply with quote

Strange are all the lines for a module in the top of the page? require mainfile.php ect....
 
View user's profile Send private message
sharlein
PostPosted: Thu May 13, 2004 7:52 am Reply with quote

Here is the code:
Code:
<?php

#### Generated by Module Creator - By Disipal site (www.disipal.net) ####
if (!eregi("modules.php", $PHP_SELF)) {
   die ("You can't access this file directly...");

}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
include("header.php");
$index = 0;
OpenTable();
echo " $path= \"http://www.thebingocity.com/tbc/tbc.html\";"

  . "$content = \"<iframe frameborder=\\\"0\\\" src=\\\"$path\\\" width=\\\"100%\\\" height=\\\"1500\\\"><ilayer src=\\\"$path\\\">tbc.</ilayer></iframe>\";"
  . "echo $content;"
  . ""
  . "CloseTable();"
  . ""
include("footer.php");


?>
 
sixonetonoffun
PostPosted: Thu May 13, 2004 8:32 am Reply with quote

I'm not seeing any reason it shouldn't work can you change the home page to different modules other then news? Or do they all bug out like this?
 
sharlein
PostPosted: Thu May 13, 2004 8:58 am Reply with quote

We may be onto something here, all of the other modules work in the home position, except Raven's guestbook. It also gives me the can't access this page message!
 
sixonetonoffun
PostPosted: Fri May 14, 2004 7:52 am Reply with quote

Try this

Code:


<?php
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
    die ("You can't access this file directly...");
}

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
include("header.php");
$index = 0;
OpenTable();
 $path= "http://www.thebingocity.com/tbc/tbc.html";

 echo "<iframe frameborder=\"0\" src=\"$path\" width=\"100%\" height=\"1500\"><ilayer src=\"$path\">tbc.</ilayer></iframe>";
 
 
  CloseTable();
 
include("footer.php");


?>


The biggest hang up is I'd bet the begining $PHP_SELF changed it to server self and then there was some stray slashes in there.
 
sharlein
PostPosted: Fri May 14, 2004 10:03 am Reply with quote

Thank you very much - it worked Very Happy Steve
 
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 ©