View file pages/err.php

File size: 2.04Kb
<?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='../';
$site=$_SERVER['HTTP_HOST'];
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_err = load_lng('err');
head(''.$lng_err['1_1'].''); 
echo'<div class="hdr"><b>'.$lng_err['1_1'].'</b></div>';
switch (@$_GET['err']) 
{
case 400:
echo'<b><div class="menu"><b>'.$lng_err['1_61'].' - '.$lng['1_61'].' 400 Bad Request</b></div>'; 
break;
case 401:
echo'<b><div class="menu"><b>'.$lng_err['1_61'].' - '.$lng['1_61'].' 401 Unauthorized</b></div>'; 
break;
case 402:
echo'<div class="menu"><b>'.$lng_err['1_61'].' - '.$lng['1_61'].' 402 Payment required</b></div>'; 
break;
case 403:
echo'<div class="menu"><b>'.$lng_err['1_6'].' - '.$lng['1_61'].' 403 Forbidden</b><br/></div>'; 
break;
case 404:
echo'<div class="menu"><div class="gemenu"><b>'.$lng_err['1_6'].' - '.$lng['1_61'].' 404 Not Found</b><br/>
'.$lng_err['1_7'].'</div>'; 
break;
case 500:
echo'<div class="menu"><div class="gemenu"><b>'.$lng_err['1_6'].' - '.$lng['1_61'].' 500 Internal Server Error</b></div>'; 
break;
case 502:
echo'<div class="menu"><div class="gemenu"><b>'.$lng_err['1_6'].' - '.$lng['1_61'].' Bad Gateway</b></div>'; 
break;
default:
echo'<div class="menu"><b>'.$lng_err['1_2'].'</b></div>';
break;
}
echo'</div><div class="hdr"><small>*'.$lng_err['1_3'].' <a href="http://'.$site.'/1">'.$lng_err['1_4'].'</a>. '.$lng_err['1_5'].'</small></div>';
require $root_path.'includes/end.php'; // დასასრული
?>