<?php
session_start();
@$login=$_POST['login'];
@$pass=$_POST['pass'];
if (!$_SESSION){
if(@!$login or @!$pass) {
print("You don't enter your login and pass. <br><a href=\"index.html\">Return</a> and try once more.");
exit();
}
include "baccess.class";
$access=new BAccess("pswd");
$rights=$access->check_access($login,$pass);
if(!$rights or $rights=="u"){
print("You haven't any rights. <br><a href=\"../\">Return</a>");
exit();
}
}
$_SESSION['login']=$login;
$_SESSION['pass']=$pass;
include "admin.tpl";
?>
|