File size: 650B
<?php
include("/inc/db.php");
$title = "Вход админа";
include("/inc/head.php");
include("/inc/func.php");
//////////////////////////////
head("Вход админа");
switch($_GET['act']){
default:
menu('<form action="?act=go" method="POST">
Введи свое имя, админ!:<input type="text" name="login"><br>
<input type="submit" value="Войти"></form>');
break;
case 'go':
$_SESSION['login'] = $_POST['login'];
$_SESSION['status'] = 1;
note("ПРивет, ".$_SESSION['login']." <a href='index.php'>В чат.</a>");
break;
}
// /////////////////////////////
include("/inc/foot.php");
?>