session_start();
if(!isset($_SESSION['uid'])) { header('Location: ../index.php'); exit(); }
include('../config.php');
include('../functions.php');
$user ='';
if($user['klan'] == '') { header('Location: ../main.php'); exit(); }
if(!isset($_SESSION['razdel_panel'])) { $_SESSION['razdel_panel'] = 'main'; }
if($_GET['razdel']) {
switch ($_GET['razdel']) {
case "main": $_SESSION['razdel_panel'] = 'main'; break;
case "kazna": $_SESSION['razdel_panel'] = 'kazna'; break;
case "arsenal": $_SESSION['razdel_panel'] = 'arsenal'; break;
case "wars": $_SESSION['razdel_panel'] = 'wars'; break;
case "message": $_SESSION['razdel_panel'] = 'message'; break;
case "castle": $_SESSION['razdel_panel'] = 'castle'; break;
case "maintains": $_SESSION['razdel_panel'] = 'maintains'; break;
default: $_SESSION['razdel_panel'] = 'razdel_panel'; break;
}
}
?>
404