View file auth.php

File size: 714B
<?php
$us=(!$_GET['id']) ? $_POST['us'] : $_GET['id'];
$ps=(!$_GET['ps']) ? $_POST['ps'] : $_GET['ps'];


$us=mysql_escape_string(htmlspecialchars(trim($us)));
$ps=mysql_escape_string(htmlspecialchars(trim($ps)));
include("ini.php");
$login = autorize();
include("head.php");
if($login) {
@mysql_query("update `c_users` set `ltime`='".time()."', `room`='prih', `nev`='0' where `id`='".$id."';");
echo "<meta http-equiv=\"Refresh\" content=\"1; URL=index.php?f=$f&amp;id=$id&amp;ps=$ps\"/>";
echo "Входим, подождите...<br/>";
}else{
echo 'Не правильные даные!<br>';
echo "<meta http-equiv=\"Refresh\" content=\"1; URL=index.php?f=$f\"/>";
}
include("foot.php");
?>