forked from DavidCarrington/dabr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
46 lines (39 loc) · 1.02 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
<?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';
// Twitter's API URL.
define('API_NEW','http://api.twitter.com/1.1/');
define('API_OLD','http://api.twitter.com/1/');
menu_register(array (
'about' => array (
'callback' => 'about_page',
),
'logout' => array (
'security' => true,
'callback' => 'logout_page',
),
));
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();
?>