View file dron.php

File size: 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>&#1053;&#1077;&#1074;&#1077;&#1088;&#1085;&#1099;&#1081; &#1051;&#1086;&#1075;&#1080;&#1085; &#1080;&#1083;&#1080; &#1055;&#1072;&#1088;&#1086;&#1083;&#1100;</b>";}else{


///////////////////////////////////////////////////////////////
////////////////////////  Добавление Баннера  /////////////////
///////////////////////////////////////////////////////////////

if ($cmd == "add"){

if ($enter == 0){print "<b>&#1053;&#1077;&#1074;&#1077;&#1088;&#1085;&#1099;&#1081; &#1051;&#1086;&#1075;&#1080;&#1085; &#1080;&#1083;&#1080; &#1055;&#1072;&#1088;&#1086;&#1083;&#1100;</b>";}else{

print '

&#1040;&#1076;&#1088;&#1077;&#1089; &#1041;&#1072;&#1085;&#1085;&#1077;&#1088;&#1072;:
<br/>
<input name="pict_url" type="text" maxlength="100" value="http://" />
<br/>
&#1040;&#1076;&#1088;&#1077;&#1089; &#1057;&#1072;&#1081;&#1090;&#1072;:
<br/>
<input name="site_url" type="text" maxlength="100" value="http://" />
<br/>
&#1055;&#1086;&#1076;&#1087;&#1080;&#1089;&#1100; &#1082; &#1041;&#1072;&#1085;&#1085;&#1077;&#1088;&#1091;:
<br/>
<input name="alt" type="text" maxlength="15" />
<br/>
&#1054;&#1087;&#1083;&#1072;&#1095;&#1077;&#1085;&#1086;:
<br/>
<input name="money" format="*N" size="4" /> &#1091;.&#1077;
<br/>
<anchor title="ok">&#1043;&#1086;&#1090;&#1086;&#1074;&#1086;
	<go href="action.php?admin='.$admin.'&amp;pass='.$pass.'&amp;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/>
&#1054;&#1087;&#1083;&#1072;&#1095;&#1077;&#1085;&#1086; &#1079;&#1072; '.$all.' &#1087;&#1086;&#1082;&#1072;&#1079;&#1086;&#1074;
<br/>
&#1055;&#1086;&#1082;&#1072;&#1079;&#1072;&#1085; '.$total.' &#1088;&#1072;&#1079;
<br/>
<a href="action.php?admin='.$admin.'&amp;pass='.$pass.'&amp;cmd=del_banner&amp;id='.$time.'">&#1059;&#1076;&#1072;&#1083;&#1080;&#1090;&#1100;</a>
<br/>
<small>--------</small>
<br/>
';

}}

}

}
require "./footer.php";
?>