Hey there,
Wasn't sure were to put this so i figured here might work
I found this index file a while back when I was using phpnuke which allowed me to add an html page I created as a module in the main menu. I wanted to make sure I did not open a security hole in my site by using it and since I am not familiar with php enough I was hope one of our security specialists could let me know
Thanks
| Code:: |
<?php
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
/* You can change this: */
/* $index = 0; (right side off) */
$index = 1;
include("header.php");
OpenTable();
include("myfile.html"); /* This is where you include HTML file */
CloseTable();
include("footer.php");
?> |