2 $dabr_start = microtime(1);
4 // I18N support information here
6 putenv("LANG=" . $language);
7 setlocale(LC_ALL, $language);
9 // Set the text domain as "messages"
11 bindtextdomain($domain, "i/Locale");
12 bind_textdomain_codeset($domain, 'UTF-8');
15 header('Expires: Sat, 26 Jul 1997 05:00:00 GMT');
16 header('Last-Modified: ' . date('r'));
17 header('Cache-Control: no-store, no-cache, must-revalidate');
18 header('Cache-Control: post-check=0, pre-check=0', false);
19 header('Pragma: no-cache');
20 header('Content-Type: text/html; charset=utf-8');
23 require 'i/common/menu.php';
24 require 'i/common/user.php';
25 require 'i/common/theme.php';
26 require 'i/common/twitter.php';
27 require 'i/common/settings.php';
28 require 'i/common/codebird.php';
29 require 'i/common/css.php';
31 // Initial menu items to show even when not logged in.
34 'callback' => 'about_page',
35 'display' => '🛈' // Perhaps ℹ http://www.fileformat.info/info/unicode/char/1f6c8/index.htm
39 'callback' => 'logout_page',
43 'callback' => 'user_oauth',
52 function logout_page() {
54 header("Location: " . BASE_URL); /* Redirect browser */
58 function about_page() {
59 theme('page', 'About', theme('about'));
63 menu_execute_active_handler();