session_start();
error_reporting(0);
if($_GET['p']=='wyloguj') $_SESSION['auth']=0;
include('conf.php');
include('lang/'.$istat['lang'].'.php');
if(!isset($_GET['p'])) $_GET['p'] = '';
if(!isset($_POST['pass'])) $_POST['pass'] = '';
if(!empty($_POST['ok']))
{
if(md5($_POST['pass'])==$istat['pass_conf']) $_SESSION['auth']=2;
else if(md5($_POST['pass'])==$istat['pass_stat']) $_SESSION['auth']=1;
if($_SESSION['auth']==2) header('location: index.php?p=admin');
else if($_SESSION['auth']==1) header('location: index.php');
}
logowanie($istat['ver']);
function logowanie($v) {
global $rmsg;
?>
Statystyka WWW - Imperator Stats
Imperator STATS print($v); ?> |
|
|
}
?>