-
Notifications
You must be signed in to change notification settings - Fork 27
/
index.php
44 lines (36 loc) · 1.08 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
error_reporting(error_reporting() & ~E_NOTICE);
if (!file_exists('config.php')) {
$root .= ($directory = trim(dirname($_SERVER["SCRIPT_NAME"]), "/\,")) ? "/$directory/" : "/";
header('Location: '.$root.'setup.php');
exit;
}
require('config.php');
header('Expires: Sat, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . date('r'));
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Content-type: text/html; charset=utf-8');
require('languages/languages.php');
require('common/theme.php');
require('common/browser.php');
require('common/menu.php');
if (!function_exists('mcrypt_module_open')) require('common/class.xxtea.php');
require('common/user.php');
require('common/twitter.php');
require('common/settings.php');
menu_register(array(
'logout' => array(
'security' => true,
'callback' => 'logout_page',
'title' => __("Logout"),
),
));
function logout_page() {
user_logout();
header("Location: ".BASE_URL);
exit;
}
browser_detect();
menu_execute_active_handler();