Размер файла: 3.18Kb
<?
/*
#=====================================================#
# (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"){
if ($enter == 0){print "<b>Неверный Логин или Пароль</b>";}else{
print '
Адрес Баннера:
<br/>
<input name="pict_url" type="text" maxlength="100" value="http://" />
<br/>
Адрес Сайта:
<br/>
<input name="site_url" type="text" maxlength="100" value="http://" />
<br/>
Подпись к Баннеру:
<br/>
<input name="alt" type="text" maxlength="15" />
<br/>
Оплачено:
<br/>
<input name="money" format="*N" size="4" /> у.е
<br/>
<anchor title="ok">Готово
<go href="action.php?admin='.$admin.'&pass='.$pass.'&cmd=add_banner" method="post">
<postfield name="pict_url" value="$(pict_url)"/>
<postfield name="site_url" value="$(site_url)"/>
<postfield name="alt" value="$(alt)"/>
<postfield name="money" value="$(money)"/>
</go>
</anchor><br/>
';
}}
if ($cmd == "del"){
$banner_query = "SELECT * FROM user ORDER BY time ASC";
if (!$banner_query) {
}$res = mysql_query($banner_query) or die(mysql_error());
$number = mysql_num_rows($res);if ($number == 0) {
}else{while ($row=mysql_fetch_array($res)){
$link = $row['link'];
$banner_link = $row['banner_link'];
$alt = $row['alt'];
$all = $row['all'];
$total = $row['total'];
$time = $row['time'];
print '
<a href="'.$link.'"><img src="'.$banner_link.'" alt="'.$alt.'" /></a>
<br/>
Оплачено за '.$all.' показов
<br/>
Показан '.$total.' раз
<br/>
<a href="action.php?admin='.$admin.'&pass='.$pass.'&cmd=del_banner&id='.$time.'">Удалить</a>
<br/>
<small>--------</small>
<br/>
';
}}
}
}
require "./footer.php";
?>