View file admincp/login.php

File size: 697B
<?php

include 'inc/db.php';

if($_SERVER['REQUEST_METHOD'] == 'POST')
{
if(($_POST['login'] == $setup['login']) && (md5($_POST['pass']) == $setup['password']))
{
$_SESSION['admin'] = $setup['login'];
$_SESSION['password'] = $setup['password'];
header('Location: index.php');
exit;
}
}

include 'inc/head.php';

echo '<div class="white"><div class="tit"><div class="tico"><h2>Login</h2></div></div>
<div class="flow f">
<div class="d">
<form method="post" action="login.php"><p><input type="text" name="login" maxlength="15"/>
<input type="password" name="pass" maxlength="20"/><input type="submit" value="Login"/></p></form>
</div>
</div>';

include 'inc/foot.php';

?>