Jump to content

Need some help with a module


kensei

Recommended Posts

Hello. Im having a bit of a problem and I hope someone here may be able to help. Basicaly I made a site using phpnuke and I am trying to add a module. The site url is www.legacyoflegends.com I want to add www.legacyoflegends.com/phpraider/index.php as a module that will load in the main site. I tried to add it as an iframe by adding a folder in the modules directory called "phpraider" with an index.php file containing the following code:

<?
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
  die ("You can't access this file directly...");
}
if(!IsSet($mainfile)) { include ("mainfile.php"); }
$index=0;
$theme="DeepBlue";
$go_to_address1="http://www.legacyoflegends.com/phpraider/index.php.";
$go_to_address=rawurldecode($go_to_address1);
include("header.php");
OpenTable();
echo "<center><h4><a href=\"index.php\">Click to close.</a></h4></center>";
echo "<iframe SRC=\"".$go_to_address."\" width=\"100%\" height=\"1200\" 
framespacing=0 frameborder=no border=0 scrolling=auto></iframe>";
echo "<br><center>NB. Using iframes!</center><br>";
CloseTable();
include("footer.php");
die;
?>

 

But when i click on the module link it tries to open it in an entirely new window and even then does not load the url. Please any help would be GREATLY appreciated.

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/107556-need-some-help-with-a-module/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.