<?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(2);
$title = 'Tesdiq Gozleyenler';
require_once('../head.php');
switch($act){
default:
$count = mysql_num_rows(mysql_query("SELECT * FROM `sait` WHERE `status` = '0'"));
if($count > 0){
$total=intval(($count-1)/$set['page_moderacia'])+1;
$page=abs(intval($_GET['page']));
if(empty($page) OR $page < 0)$page = 1;
if($page > $total) $page = $total;
$past=intval($count/$set['page_moderacia']);
$start=$page*$set['page_moderacia']-$set['page_moderacia'];
$moder = mysql_query("SELECT * FROM `sait` WHERE `status` = '0' ORDER BY `id` DESC LIMIT ".$start.",".$set['page_moderacia']."");
while($row = mysql_fetch_array($moder)){
$start++;
echo '<div class="link">'.$start.'. '.$row['name'].'<br/>';
echo '<a href="http://'.$row['url'].'">Adres: http://'.$row['url'].'</a><br/>';
if(mb_strlen($row['about']) > 50){
$text = mb_substr($row['about'], 0, 50, 'utf-8');
echo '<a href="/infos.php?id='.$row['id'].'">'.$text.'...</a><br/></div>';
}
else echo '<a href="/infos.php?id='.$row['id'].'">'.$row['about'].'</a></div>';
echo '<div class="text"><a href="moderacia.php?act=activate&id='.$row['id'].'">Aktiv Et</a> | <a href="platforms.php?act=edit_sait&id='.$row['id'].'">Deyiş</a> | <a href="platforms.php?act=ban&id='.$row['id'].'">Ban Et</a> | <a href="platforms.php?act=del_sait&id='.$row['id'].'">Sil</a></div>';
}
navigation($count,$set['page_moderacia'],$page,'moderacia.php?',$total);
}
else
echo '<div class="text">Tesdiq Gozleyen Saytlar Yoxdur!</div>';
break;
case 'activate':
$up = mysql_query("UPDATE `sait` SET `status` = '1', `id_mod` = '".$user_data["id"]."', `time_activ` = '".time()."' WHERE `id` = '".$id."'");
if($up){
echo '<div class="text">Sayt uğurla aktiv edildi</div>';
echo '<a class="link" href="moderacia.php">Tesdiq Gozleyenler</a>';
}
else{
echo '<div class="error">Sayt aktiv deyil</div>';
echo '<a class="link" href="moderacia.php">Tesdiq Gozleyenler</a>';
}
}
if($user_data['level'] == 3) echo '<a class="link" href="index.php">Admin Panel</a>';
require_once('../foot.php');
?>