<?php
/*[_X3T4_N!CK_] Muellifdir Silenin Anasin Sikim*/
define('MKTOP', 1);
require_once('../system/connect.php');
require_once('../system/core.php');
require_once('../system/function.php');
level(4);
$title = 'Sayğac Panel';
require_once('../head.php');
if($act=='add') {
$con = trim($_POST['con']);
mysql_query("INSERT INTO `count` SET `count`='" . $con . "';");
echo '<div class="link"><b>Sayğac uğurla əlavə edildi</b></div>';
}
if($act=='dell') {
@mysql_query("delete from `count` where `id`='$id'");
echo '<div class="link"><b>Sayğac uğurla silindi</b></div>';
}
echo '<div class="link"><form action="?act=add" method="post">
Sayğac kodu :<br/> <input type="text" name="con" maxlength="500" /><br/>
<input type="submit" value="Əlavə et"/></form></div>';
echo '<div class="title">Sayğaclar</div>';
$say = mysql_query("SELECT * FROM `count`");
while($sa = mysql_fetch_array($say)){
echo '<div class="link"> '.$sa['count'].' - <a href="?act=dell&id='.$sa['id'].'">Sil</a><br/></div>';
}
echo '<div class="link">';
echo '<a href="index.php">Admin Panel</a><br/>';
echo '</div>';
require_once('../foot.php');
?>