index.php (index del modulo activado)
Código PHP:
<?php
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly..echo ");
}
$module_name = basename(dirname(__FILE__));
$index = 0;
function cfg() {
global $module_name;
include("header.php");
OpenTable();
echo "<center>Creador de CFG's</center><br>";
if ($data[action] == "Show Config")
{
echo " <br> ";
include("aq2-cfg.php");
echo " <br> ";
}
else
{
echo " <br> ";
include("aq2-form.php");
echo " <br> ";
}
CloseTable();
include("footer.php");
}
switch($func) {
default:
Cfg();
break;
}
?>
Código PHP:
<form action="index.php">
<input type="text" name="data[name]" size="25" maxlength="40">
<input type="submit" name="data[action]" value="Show Config">
Código PHP:
<?php
print "set name \"$data[name]\"\n";
?>
me arroja esto
You can't access this file directly..echo