Просмотр файла apanel/banlist.php

Размер файла: 2.05Kb
<?php
/*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\//
// Sitchi CMS - Mobile Content Management System //
// The author:  Nikoloz Sitchinava [sitchi]      //
// Link:        http://sitchicms.num.ge          //
// Skype:       SitchiCMS                        //
// License:     LICENSE.txt (see attached file)  //
// Version:     VERSION.txt (see attached file)  //
//\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
define('_SITCHICMS', 1);
$root_path='../';
require $root_path.'includes/db_connect.php';
require $root_path.'includes/start.php';
require $root_path.'includes/header.php';
require $root_path.'includes/functions.php';
require $root_path.'includes/head.php'; // თავი
$lng_a = load_lng('admin');
if($user['level']<2)
header("Location: index.php?".SID);
head(''.$lng['1_54'].' | '.$lng['1_25'].'');
echo'<div class="hdr"><b>'.$lng_a['1_25'].'</b></div>';
$k_post=mysql_result(mysql_query("SELECT COUNT(*) FROM `ban` WHERE `time` > '$time'"),0);
$k_page=k_page($k_post,$set['p_count']);
$page=page($k_page);
$start=$set['p_count']*$page-$set['p_count'];
$q=mysql_query("SELECT * FROM `ban` WHERE `time` > '$time' ORDER BY `id` DESC LIMIT $start, $set[p_count]");
if ($k_post==0)
{
echo'<div class="errmenu">';
echo''.$lng_a['1_26'].' )';
echo'</div>';
}
while ($ban = mysql_fetch_assoc($q))
{
$ank=mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE `id` = $ban[id_user] LIMIT 1"));
echo'<div class="egmenu">';
echo'<a href="/pages/info.php?id='.$ank['id'].'">'.$ank['login'].'</a>'.online($ank['id']).'<br/>';
$user_ban=mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE `id` = $ban[id_ban] LIMIT 1"));
echo''.$lng_a['1_27'].' '.timef($ban['time']).':<br/>';
if (isset($user) && $user['level']>2)
echo'<a href="/apanel/ban.php?id='.$ank['id'].'">'.$lng_a['1_28'].'</a><br/>';
echo'</div>';
}
if ($k_page>1)str("?",$k_page,$page); // გვერდების გამოტანა

echo'<a href="/apanel/">'.$lng['1_54'].'</a>';

require $root_path.'includes/end.php'; // დასასრული
?>