Размер файла: 1.95Kb
<?
/*
#=====================================================#
# (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] #
#=====================================================#
*/
require "./header.php";
include "./config.php";
if (empty($cmd)){$cmd = false;}
if ($enter == 0){print "<b>Неверный Логин или Пароль</b>";}else{
if ($cmd == "add_banner"){
$all = ($money/$cena)*$kol;
$site_url = htmlspecialchars(stripslashes(trim($site_url)));
$pict_url = htmlspecialchars(stripslashes(trim($pict_url)));
$alt = htmlspecialchars(stripslashes(trim($alt)));
$aa = explode(".", $all);
$alll = $aa[0];
print "Баннер для сайта <b>$site_url</b> будет показан <b>$alll</b> раз";
$add_query = "INSERT INTO `user` VALUES ('$site_url', '$pict_url', '$alt', '$alll', '0', '".time()."')";
@mysql_query("$add_query");
}
///////////////////////////////////////////////////////////////
/////////////////////// Удаление Баннера ////////////////////
///////////////////////////////////////////////////////////////
if ($cmd == "del_banner"){
$delete_query = "DELETE FROM user WHERE time=$id LIMIT 1";
@mysql_query("$delete_query");
print "Баннер удалён!";
}
}
require "./footer.php";
?>