1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php include 'config.php'; // Check if the user is logged in
if ((!isset($_SESSION['loginname'])) || ($loggin != '1')) { header("Location: login.php"); exit; }
// check webadmin user permission // call this before using grant() and grantMenu() try { Sec::getInstance()->check(); } catch (Exception $e) { $_code = $e->getCode(); include "error.php"; exit;
// backup: redirect header("Location: error.php?code=403"); exit; }
|