|
<?
require('../system/function.php');
if(isset($user['id'])){
$len = mysql_result(mysql_query("SELECT COUNT(id) FROM `lenta` WHERE `komy` = '".$user['id']."' and `readlen` = '0'"),0);
$reg_mod = mysql_result(mysql_query("SELECT COUNT(*) FROM `reg` WHERE `dop` = '3'"), 0);
$mes = mysql_result(mysql_query("SELECT COUNT(id) FROM `message` WHERE `komy` = '".$user['id']."' and `readlen` = '0'"),0);
$load_mod = mysql_result(mysql_query("SELECT COUNT(*) FROM `load_file` WHERE `mod` = '0'"), 0);
$cc = mysql_result(mysql_query("SELECT COUNT(*) FROM `codes_complaint` WHERE `adm` = '' "), 0);
$cf = mysql_result(mysql_query("SELECT COUNT(*) FROM `down_c` WHERE `adm` = '' "), 0);
$jal_mod = mysql_result(mysql_query("SELECT COUNT(*) FROM `post_jal` WHERE `adm` = ''"), 0);
$j_mod = mysql_result(mysql_query("SELECT COUNT(*) FROM `mes_st` WHERE `adm` = ''"), 0);
if($user['level'] != 0){
echo ''.($load_mod > 0 ? '<div class="podmenu">
<a href="'.$HOME.'/panel/load_mod">Модерация файлов <font color="red"><b>+' . $load_mod . '</b></font></a> </div>':'').'';
echo'' .($reg_mod > 0 ? '<div class="podmenu">
<a href="'.$HOME.'/panel/reg_mod">Модерация регистраций <font color="red"><b>+' . $reg_mod . '</b></font></a> </div>' : '').' ';
echo''.($cc > 0 ? '<div class="podmenu">
<a href="'.$HOME.'/panel/complcod">Модерация Жалоб на коды <font color="red"><b>+' . $cc . '</b></font></a> </div>' : '').' ';
echo''.($cf > 0 ? '<div class="podmenu">
<a href="'.$HOME.'/panel/complf">Модерация Жалоб на файлы <font color="red"><b>+' . $cf . '</b></font></a> </div>' : '').' ';
echo''.($jal_mod > 0 ? '<div class="podmenu">
<a href="'.$HOME.'/panel/jaloba">Модерация жалоб<font color="red"><b> +'.$jal_mod.'</b></font></a></div>' : '').'';
}
if($user['level'] == 4){
echo ' ' .($qp > 0 ? '<div class="podmenu">
<a href="'.$HOME.'/panel/qiwi_pay">Пополнения через QIWI<font color="red"><b> +' . $qp . '</b></font></a> </div>' : '').' ';
echo ' ' .($j_mod > 0 ? '<div class="podmenu">
<a href="'.$HOME.'/panel/no_SPAM">Жалобы в почте <font color="red"><b> +' . $j_mod . '</b></font></a> </div>' : '').' ';
}
}
?>