PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
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 Back to top

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: 2499

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

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


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

PostPosted: Thu May 13, 2004 7:52 am Reply with quote Back to top

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");


?>
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Thu May 13, 2004 8:32 am Reply with quote Back to top

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?
View user's profile Send private message
sharlein
Member Emeritus


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

PostPosted: Thu May 13, 2004 8:58 am Reply with quote Back to top

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!
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Fri May 14, 2004 7:52 am Reply with quote Back to top

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


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

PostPosted: Fri May 14, 2004 10:03 am Reply with quote Back to top

Thank you very much - it worked Very Happy Steve
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum