View file pages/ban_ip.php

File size: 1.19Kb
<?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='../';
$banpage=true;
$ban_ip_page=true;
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_ban = load_lng('ban');
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `ban_ip` WHERE `min` <= '$ip' AND `max` >= '$ip'"), 0)==0)
{
header("Location: /");
exit;
}
head(''.$lng_ban['1_3'].'');
$err='<h1>'.$lng_ban['1_4'].' ( '.$_SERVER[REMOTE_ADDR].' ) '.$lng_ban['1_5'].'</h1>';
err();
echo'<h2>'.$lng_ban['1_6'].':</h2>
1) '.$lng_ban['1_7'].'<br/>
2) '.$lng_ban['1_8'].'<br/>';
require $root_path.'includes/end.php'; // დასასრული
?>