File size: 2.21Kb
<?php
/**
* Wap Portal русская версия
*
* Copyright (C) 2002 - 2005 Красников Виктор
*
* Wap Portal
* Developer: Красников Виктор - [email protected]
* Homepage: http://tut.spb.su
* Date: 05/05/2005
* Version #: 1.0
**/
$documentLocation = $_SERVER['PHP_SELF'];
if ( isset($_SERVER['QUERY_STRING']) ) {
$documentLocation .= "?" . $_SERVER['QUERY_STRING'];
}
// Establish connection with database and select database
$link = mysql_connect($db_host, $db_user, $db_password)
or die("Could not connect");
mysql_select_db($db_name)
or die("Could not select database");
?>
<html>
<head>
<title>Wap Portal Server Administration Area</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="css/admin.css" type="text/css">
<script language="JavaScript">
<!--
function validate() {
if ((document.form.wps_username.value=="") || (document.form.wps_password.value=="")) {
alert('Please complete the form!');
return false;
} else {
return true;
}
}
//-->
</script>
</head>
<body>
<div align="center">
<? include('includes/header.php');?>
<form name="form" method="post" action="<?php echo $documentLocation; ?>" onSubmit="return validate()">
<table width="600">
<tr>
<td colspan="2"><b><a href='index.php' border=0>Home</a> > Login</b></td>
</tr>
<tr>
<td align="right" width="40%"><b>Username:</b> </td>
<td width="60%">
<input type="text" name="wps_username">
</td>
</tr>
<tr>
<td align="right"><b>Password:</b> </td>
<td>
<input type="password" name="wps_password">
</td>
</tr>
<tr>
<td><b><i><font color="#CC0000">
<?php if (isset($message)) echo $message;?>
</font></i></b></td>
<td>
<input type="hidden" name="update" value="1">
<input type="submit" name="Submit" value="Enter">
</td>
</tr>
</table>
</form>
<?php include('includes/footer.php');?>
</div>
<script language="JavaScript">
<!--
document.form.wps_username.select();
document.form.wps_username.focus();
//-->
</script>
</body>
</html>