Location: PHPKode > scripts > Net Shoubox > net-shoubox/login.php
<?php
session_start();
//////
//
// Net Shout
//
// www.php-net.net/
//
/////
if (session_is_registered("nettag")){
header("Location: admin_show.php");
}else{
?>
<head>
<title>SMe Tag Admin</title>
<LINK href="shout.css" rel=STYLESHEET type=text/css>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0">

<?php
include("net_config.php");
/** Globals OFF 4.2+ Support **/
if (ini_get('register_globals') < 1) {
$PHP_SELF = $_SERVER['PHP_SELF'];
if (isset($_REQUEST['login'])){ $login = $_REQUEST['login']; }
else{ $login = ""; }
if (isset($_REQUEST['senha'])){ $senha = $_REQUEST['senha']; }
else{ $senha  = ""; }
if (isset($_REQUEST['on'])){ $on = $_REQUEST['on']; }
else{ $on  = ""; }

}
if (!$on){
echo "<br /><p align=\"center\"><font size=\"2\" face=\"Verdana\" color=\"#000000\"><b>Net Short URL Admin</b></font></p><center>
<form action=\"$PHP_SELF\" method=\"POST\">
<input type=\"hidden\" name=\"on\" value=\"2\" />
<table width=\"50%\" cellspacing=\"5\" cellpadding=\"0\" border=\"0\" align=\"center\">
<tr>
<td align=\"right\"><b><font face=\"Verdana\" size=\"1\">Login :</font></b></td>
<td align=\"left\"><input type=\"text\" name=\"login\"></td>
</tr>
<tr>
<td align=\"right\"><b><font face=\"Verdana\" size=\"1\">Password :</font></b></td>
<td align=\"left\"><input type=\"password\" name=\"senha\" /></td>
</tr>
<tr>
<td align=\"right\"><input type=\"submit\" /></td>
<td align=\"left\"><input type=\"reset\" /></td>
</tr>
</table>
</form>
</center>";
echo'<!-- //DO NOT REMOVE!!! -->
<span style="font-size:8pt;"><a href="http://php-net.net/">empowered by Net shout .5</a></span>
<!-- //END OF DO NOT REMOVE!!! -->';
}
elseif ($on == "2"){
if (($login == "") ||( $senha == "")){
echo "<br /><br /><center><font face=\"Verdana\" size=\"2\">ACCESS DENIED!!!!!!!<br><a href=\"login.php\"><font face=\"Arial,Verdana\" size=\"3\"><b>» Click Here for Login «</b></font></a></font></center>";
}else{

if (($adminl1 == "$login")&&($admins1 == "$senha")){
session_start();
session_register("nettag");
echo"<script> function redirect(){window.location.replace('admin_show.php');} setTimeout('redirect();', 100); </script>";

}else{
echo <<<EOT
<html>
<head>
<title></title>
</head>
<body>
<br /><p align="center">
ACCESS DENIED!!!!!!!!!!!<br />
<a href="login.php"><b>-- LOGIN HERE --</b></a></p>
<br />
</body>
</html>
<!-- //DO NOT REMOVE!!! -->
<span style="font-size:8pt;"><a href="http://php-net.net/">empowered by Net shout .5</a></span>
<!-- //END OF DO NOT REMOVE!!! -->
EOT;
exit;
}
}}}
?>
Return current item: Net Shoubox