60 lines
1.8 KiB
PHP
Executable File
60 lines
1.8 KiB
PHP
Executable File
<?php
|
|
$moduleurl = $_SERVER["REQUEST_URI"];
|
|
$urlcut = strpos($moduleurl, "&");
|
|
$moduleurl = substr($moduleurl,0,$urlcut);
|
|
if (!isset ($_SESSION["user_admin"]) || $_SESSION["user_admin"] != "1")
|
|
{
|
|
echo "<font color=red><h2><b>Not authenticated!<b></h2></font>
|
|
<form action=\"/Site/login.php\" method=\"post\">
|
|
<br \>
|
|
<b> You need to be Admin to view this area!</b>
|
|
<br />
|
|
<br />
|
|
<table>
|
|
<tr>
|
|
<td>Username:</td>
|
|
<td><input type=\"text\" name=\"name\" size=\"20\"><td>
|
|
</tr>
|
|
<tr>
|
|
<td>Passwort:</td>
|
|
<td><input type=\"password\" name=\"pwd\" size=\"20\"></td>
|
|
</tr>
|
|
<tr>
|
|
<td><input type=\"hidden\" name=\"path\" size=\"50\" value=\"".$moduleurl."\"></td>
|
|
</tr>
|
|
</table>
|
|
<input type=\"submit\" value=\"Login\">
|
|
</form>
|
|
<div class=\"cleared\"></div><div class=\"art-Footer\">
|
|
<div class=\"art-Footer-inner\">
|
|
<div class=\"art-Footer-text\">
|
|
<p> ";
|
|
$moduleid = 0;
|
|
foreach ($SITE_MODULES_FOOTER as $modul)
|
|
{
|
|
$moduleid++;
|
|
$cut = strpos($modul, "#");
|
|
$modtitle = substr($modul,0,$cut);
|
|
echo "| <a href=\"/index.php?bsite=".$moduleid."\">".$modtitle."</a> | ";
|
|
|
|
}
|
|
echo"
|
|
<br />
|
|
Copyright © 2009-2010 Christoph Haas . All Rights Reserved.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div class=\"art-Footer-background\"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class=\"cleared\"></div>
|
|
<p class=\"art-page-footer\">VPNManagement Version "; echo db_getconfval("version"); echo "</p>
|
|
</div>
|
|
<div style=\"text-align: center; font-size: 0.75em;\"></div></body>
|
|
</html>
|
|
";
|
|
exit;
|
|
}
|
|
?>
|