File size: 2.02Kb
<?php
#-----------------------------------------------------#
# ============ЗАГРУЗ-ЦЕНТР============= #
# Автор : Sea #
# E-mail : [email protected] #
# ICQ : 355152215 #
# Вы не имеете права распространять данный скрипт. #
# По всем вопросам пишите в ICQ. #
#-----------------------------------------------------#
define('MYURL','http://'. $_SERVER['HTTP_HOST'] .'/');
// mod Gemorroj
$HeadTime = microtime(true);
session_start();
include $_SERVER['DOCUMENT_ROOT'].'/kernel/fnc.php';
if (isset($_COOKIE['login'], $_COOKIE['pass'])) {
$Query = mysql_query("SELECT * FROM `users` WHERE `login` = '" . s_filtr($_COOKIE['login']) .
"' && `pass` = '" . s_filtr($_COOKIE['pass']) . "'");
if (mysql_num_rows($Query) > 0) {
define("AUT", 1);
$aut = 1;
$_USER = mysql_fetch_assoc($Query); //Все о пользователе
$_uid = $_USER['id'];
$_prava = $_USER['prava'];
$_CONF['pcount'] = $_USER['pcount'];
$_CONF['tcount'] = $_USER['tcount'];
$_CONF['symbols'] = $_USER['symbols'];
} else {
define("AUT", 0);
$aut = 0;
}
} elseif (isset($_SESSION['login'], $_SESSION['pass'])) {
$Query = mysql_query("SELECT * FROM `users` WHERE `login` = '" . s_filtr($_SESSION['login']) .
"' && `pass` = '" . s_filtr($_SESSION['pass']) . "'");
if (mysql_num_rows($Query) > 0) {
$aut = 1;
define("AUT", 1);
$_USER = mysql_fetch_assoc($Query); //Все о пользователе
$_uid = $_USER['id'];
$_prava = $_USER['prava'];
$_CONF['pcount'] = $_USER['pcount'];
$_CONF['tcount'] = $_USER['tcount'];
$_CONF['symbols'] = $_USER['symbols'];
} else {
$aut = 0;
define("AUT", 0);
}
} else {
define("AUT", 0);
$aut = 0;
}
s_header('Загрузки');
?>