-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
54 lines (48 loc) · 1.15 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
45
46
47
48
49
50
51
52
53
54
<?php
$dabr_start = microtime(1);
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');
require 'config.php';
require 'common/browser.php';
require 'common/menu.php';
require 'common/user.php';
require 'common/theme.php';
require 'common/twitter.php';
require 'common/lists.php';
require 'common/settings.php';
menu_register(array (
//[+]online user
'online' => array (
'security' => true,
'callback' => 'online_page',
),
//[+]end
'about' => array (
'callback' => 'about_page',
),
'logout' => array (
'security' => true,
'callback' => 'logout_page',
),
));
//[+]online user
function online_page() {
require_once("online.php");
theme('page', 'Online Users', $content);
}
//[+]end
function logout_page() {
user_logout();
header("Location: " . BASE_URL); /* Redirect browser */
exit;
}
function about_page() {
$content = file_get_contents('about.html');
theme('page', 'About', $content);
}
browser_detect();
menu_execute_active_handler();
?>