Файл: public_html/admin/banneradd.php
Строк: 27
<? include('checkcookie.php'); ?>
<h3>Добавление баннера</h3>
<br><br>
<?
$plan = $_POST["plan"];
$urlsite = $_POST["url"];
$urlpic=$_POST["url1"];
if($urlsite==NULL) {
}else{
$plan = limpiar($plan);
$urlsite = limpiar($urlsite);
$urlpic = limpiar($urlpic);
$t=time();
$query = "INSERT INTO tb_advban (urlsite, urlpic, begindate, numdays) VALUES ('$urlsite', '$urlpic', '$t', '$plan')";
mysql_query($query) or die(mysql_error());
echo "Добавлен..";
}
?>
<form action="adminmain.php?p=banneradd" method="POST">
<table>
<tr><th width="150">URL сайта(с http://)</th>
<td><input type="text" size="25" maxlength="100" name="url" autocomplete="off" value=""></td></tr>
<tr><th width="150">URL баннера(с http://)</th>
<td><input type="text" size="25" maxlength="100" name="url1" autocomplete="off" value=""></td></tr>
<tr><th width="150">Кол-во дней показа:</th>
<td><input type="text" size="25" maxlength="100" name="plan" autocomplete="off" value="1"></td></tr>
<tr><td></td><td>
<input type="submit" value="добавить" class="button"></td></tr>
</table>
</form>