<?php require_once('Connections/verification.php'); ?>
<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
session_start();
}
$loginFormAction = $SERVER['PHP_SELF'];
if (isset($GET['accesscheck'])) {
$SESSION['PrevUrl'] = $GET['accesscheck'];
}
if (isset($POST['usernamefield'])) {
$loginUsername=$POST['usernamefield'];
$password=$_POST['passwordfield'];
$MM_fldUserAuthorization = "";
$MM_redirectLoginSuccess = "launcher.php";
$MM_redirectLoginFailed = "notfound/welcome.html";
$MM_redirecttoReferrer = false;
mysql_select_db($database_verification, $verification);
$LoginRS__query=sprintf("SELECT name, pw FROM priv WHERE name='%s' AND pw='%s'",
get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password));
$LoginRS = mysql_query($LoginRS__query, $verification) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
header("Location: " . $MM_redirectLoginSuccess );
}
else {
header("Location: ". $MM_redirectLoginFailed );
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Serious Protection</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
A: { font-family: Arial, Verdana, Helvetica; font-size: 9pt; color: #990000; text-decoration: underline; font-weight: normal;}
A:link { font-family: Arial, Verdana, Helvetica; font-size: 9pt; color: #990000; text-decoration: underline; font-weight: normal;}
A:visited { font-family: Arial, Verdana, Helvetica; font-size: 9pt; color: #990000; text-decoration: underline; font-weight: normal;}
A:hover { font-family: Arial, Verdana, Helvetica; font-size: 9pt; color: #3268B5; text-decoration: underline; font-weight: normal;}
.title { font-family: Arial, Verdana, Helvetica; font-size: 10pt; color: #990000; font-weight: bold; font-style: normal; text-decoration: none;}
td { font-family: Arial, Verdana, Helvetica; font-size: 9pt; color: #000000; font-weight: normal; font-style: normal; text-decoration: none;}
-->
</style>
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" background="http://images.secureserver.net/hosting_welcome/background.gif">
<div align="center">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td height="76"><img src="http://images.secureserver.net/hosting_welcome/clear.gif" width="1" height="1"></td>
<td><p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>For access to this site, please request login and password from <a href="mailto:admin@prototool.com">admin@prototool.com</a> </p>
</td>
<td><img src="http://images.secureserver.net/hosting_welcome/clear.gif" width="1" height="1"></td>
</tr>
</table>
<form action="<?php echo $loginFormAction; ?>" method="POST" name="Login" id="Login">
<label>User name:
<input name="usernamefield" type="text" id="usernamefield">
</label>
<p>
<label>Password:
<input name="passwordfield" type="text" id="passwordfield">
</label>
</p>
<p>
<label>
<input name="Submit login info" type="submit" id="Submit login info" value="Submit">
</label>
<input name="Reset Login Info" type="reset" id="Reset Login Info" value="Reset">
</p>
</form>
<p> </p>
</div>
</body>
</html>