<?php
$moduleurl = $_SERVER["REQUEST_URI"];
$urlcut = strpos($moduleurl, "&");
$moduleurl = substr($moduleurl,0,$urlcut);

if (!isset ($_SESSION["user_id"])) 
{ 
echo "
<!-- MAIN -->
<div id=\"main\">	
	<div class=\"wrapper\">
		<h2><font color=red><b>Not authenticated!</b></font></h2>
		<form action=\"/Site/login.php\" method=\"post\"> 
			<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>
</div>
<footer>
<div class=\"wrapper\">		
	<div class=\"footer-bottom\">
		<div class=\"left\">Powered by <a title=\"sprinternet.at startpage\" href=\"http://www.sprinternet.at\" >sprinternet.at</a> | vpnmanager version " . db_getconfval("version") . ".</div>
		<div class=\"right\">
			<ul id=\"social-bar\">
				<li><a href=\"mailto:antispam.org\" onClick=\"Mailto('ab231cb','vpn','','sprinternet','at');\"  title=\"Report a bug\" class=\"poshytip\"><img src=\"" . $tpl_root . "img/social/bug.png\" alt=\"Bugreport\" /></a></li>
			</ul>
		</div>
	</div>	
</div>
</footer>              
";
exit; 
} 
?>
