<?php
/*[_X3T4_N!CK_] Muellifdir Silenin Anasin Sikim*/
define('MKTOP', 1);
$title = 'Admin Panel';
require_once('../system/connect.php');
require_once('../system/core.php');
require_once('../system/function.php');
level(3);
require_once('../head.php');
$plaforms_no_moder = mysql_num_rows(mysql_query("SELECT * FROM `sait` WHERE `status` = '0'"));
$plaforms_all = mysql_num_rows(mysql_query("SELECT * FROM `sait`"));
$users_all = mysql_num_rows(mysql_query("SELECT * FROM `users`"));
$cat_all = mysql_num_rows(mysql_query("SELECT * FROM `cat`"));
$news_all = mysql_num_rows(mysql_query("SELECT * FROM `news`"));
$kr_add_no_moder = mysql_num_rows(mysql_query("SELECT * FROM `kr_add` WHERE `status` = '0'"));
$rekl_no_moder = mysql_num_rows(mysql_query("SELECT * FROM `eko_rek` WHERE `status` = '0'"));
$rekl_moder = mysql_num_rows(mysql_query("SELECT * FROM `eko_rek` WHERE `status` = '1'"));
$rand_no_moder = mysql_num_rows(mysql_query("SELECT * FROM `rand_site` WHERE `status` = '0'"));
$rand_moder = mysql_num_rows(mysql_query("SELECT * FROM `rand_site` WHERE `status` = '1'"));
$reklam_all = mysql_num_rows(mysql_query("SELECT * FROM `reklam`"));
$sms_all = mysql_num_rows(mysql_query("SELECT * FROM `sms`"));
echo '<a class="link" href="moderacia.php"><img src="/img/dir.png"> Tesdiq gözleyenler <span class="stat">'.$plaforms_no_moder.'</span></img></a>';
echo '<a class="link" href="category.php"><img src="/img/dir.png"> Kategoriya panel <span class="stat">'.$cat_all.'</span></a></img>';
echo '<a class="link" href="settings.php"><img src="/img/dir.png"> Sayt qurğulari</img></a>';
echo '<a class="link" href="poisk.php"><img src="/img/dir.png"> Sayt axtar</a>';
echo '<a class="link" href="mail.php"><img src="/img/dir.png"> E-mail message system</a>';
if(isset($user_data) AND $user_data['level'] >= 4){
echo '<a class="link" href="xetanick.php"><img src="/img/dir.png"> mySQL User\'s Bot</img></a>';
echo '<a class="link" href="saygac.php"><img src="/img/dir.png"> Sayğac Panel</img></a>';
echo '<a class="link" href="add_kr.php"><img src="/img/dir.png"> Bal hesab panel <span class="stat">'.$kr_add_no_moder.'</span></img></a>';
}
echo '<a class="link" href="rekl.php"><img src="/img/dir.png"> Reklam panel <span class="stat">'.$rekl_no_moder.'/'.$rekl_moder.'</span></img></a>';
echo '<a class="link" href="rand.php"><img src="/img/dir.png"> Ferqli saytlar <span class="stat">'.$rand_no_moder.'/'.$rand_moder.'</span></img></a>';
echo '<a class="link" href="/gb.php"><img src="/img/dir.png"> Şikayet ve Teklifler<span class="stat">'.$sms_all.'</span></img></a>';
echo '<a class="link" href="news.php"><img src="/img/dir.png"> Xeber panel <span class="stat">'.$news_all.'</span></img></a>';
echo '<a class="link" href="users.php"><img src="/img/dir.png"> İstifadəçi idarə etme <span class="stat">'.$users_all.'</span></img></a>';
echo '<a class="link" href="platforms.php"><img src="/img/dir.png"> Saytlari idarə etme <span class="stat">'.$plaforms_all.'</span></img></a>';
echo '<a class="link" href="/office.php"><img src="/img/dir.png"> Kabinet</img></a>';
require_once('../foot.php');
?>