<?
/*
#=====================================================#
# (c) 2006 Banner Rotate v.1 #
#=====================================================#
# WAP site http://mega-wap.com.ru #
# WEB site http://art-tech.net.ru #
#=====================================================#
# Programmed By Demonaz #
# [email protected] #
#=====================================================#
*/
$cena = 1; // Стоимость за количество показов($kol)
$kol = 1000; // Количество показов за $cena
$hostname = "localhost"; // Хост базы данных
$username = "root"; // Имя пользователя базы данных
$password = ""; // Пароль доступа к базе данных
$dbName = "banner"; // Имя базы данных
$li = mysql_connect($hostname,$username,$password) OR DIE("Не могу создать соединение ");
$db = mysql_select_db($dbName) or die(mysql_error());
/////////////////////////////////////////////////////////////
//////////////////// Проверка Админа ////////////////////////
/////////////////////////////////////////////////////////////
if (empty($admin)){$admin = false;}
if (empty($pass)){$pass = false;}
if ($admin and $pass){
$admin=htmlspecialchars(stripslashes(trim($admin)));
$pass=htmlspecialchars(stripslashes(trim($pass)));
$query = "SELECT * FROM admin";
if (!$query) {
}$res = mysql_query($query) or die(mysql_error());
$number = mysql_num_rows($res);if ($number == 0) {
}else{while ($row=mysql_fetch_array($res)){
$admin_db = $row['login'];
$pass_db = $row['password'];
}}
if ($admin == @$admin_db and $pass == @$pass_db){$enter = 1;}else{$enter = 0;}
}
?>