]>
Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | set_include_path(dirname(__FILE__) ."/include" . PATH_SEPARATOR . | |
3 | get_include_path()); | |
4 | ||
5 | require_once "functions.php"; | |
6 | require_once "sessions.php"; | |
7 | require_once "sanity_check.php"; | |
8 | require_once "version.php"; | |
9 | require_once "config.php"; | |
10 | require_once "db-prefs.php"; | |
11 | ||
12 | $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); | |
13 | ||
14 | login_sequence($link); | |
15 | ||
16 | $dt_add = time(); | |
17 | ||
18 | no_cache_incantation(); | |
19 | ||
20 | header('Content-Type: text/html; charset=utf-8'); | |
21 | ||
22 | ?> | |
23 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
24 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
25 | ||
26 | <html> | |
27 | <head> | |
28 | <title>Tiny Tiny RSS</title> | |
29 | ||
30 | <link rel="stylesheet" type="text/css" href="lib/dijit/themes/claro/claro.css"/> | |
31 | <link rel="stylesheet" type="text/css" href="digest.css?<?php echo $dt_add ?>"/> | |
32 | ||
33 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
34 | ||
35 | <?php print_user_stylesheet($link) ?> | |
36 | ||
37 | <link rel="shortcut icon" type="image/png" href="images/favicon.png"/> | |
38 | ||
39 | <script type="text/javascript" src="lib/dojo/dojo.js" djConfig="parseOnLoad: true"></script> | |
40 | <script type="text/javascript" src="lib/prototype.js"></script> | |
41 | <script type="text/javascript" src="lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls"></script> | |
42 | ||
43 | <script type="text/javascript" charset="utf-8" src="localized_js.php?<?php echo $dt_add ?>"></script> | |
44 | <script type="text/javascript" charset="utf-8" src="errors.php?mode=js"></script> | |
45 | <script type="text/javascript" charset="utf-8" src="js/functions.js?<?php echo $dt_add ?>"></script> | |
46 | <script type="text/javascript" src="js/digest.js"></script> | |
47 | ||
48 | <script type="text/javascript"> | |
49 | Event.observe(window, 'load', function() { | |
50 | init(); | |
51 | }); | |
52 | </script> | |
53 | </head> | |
54 | <body id="ttrssDigest" class="claro"> | |
55 | <div id="overlay" style="display : block"> | |
56 | <div id="overlay_inner"> | |
57 | <noscript> | |
58 | <p> | |
59 | <?php print_error(__("Your browser doesn't support Javascript, which is required | |
60 | for this application to function properly. Please check your | |
61 | browser settings.")) ?></p> | |
62 | </noscript> | |
63 | ||
64 | <img src="images/indicator_white.gif"/> | |
65 | <?php echo __("Loading, please wait...") ?> | |
66 | </div> | |
67 | </div> | |
68 | ||
69 | <div id="header"> | |
70 | <a style="float : left" href="#" onclick="close_article()"> | |
71 | <?php echo __("Back to feeds") ?></a> | |
72 | ||
73 | <div class="links"> | |
74 | ||
75 | <?php if (!$_SESSION["hide_hello"]) { ?> | |
76 | <?php echo __('Hello,') ?> <b><?php echo $_SESSION["name"] ?></b> | | |
77 | <?php } ?> | |
78 | <?php if (!$_SESSION["hide_logout"]) { ?> | |
79 | <a href="backend.php?op=logout"><?php echo __('Logout') ?></a> | | |
80 | <?php } ?> | |
81 | <a href='<?php echo get_self_url_prefix() ?>/index.php?mobile=false'> | |
82 | <?php echo __("Regular version") ?></a> | |
83 | ||
84 | </div> | |
85 | </div> | |
86 | ||
87 | <div id="article"><div id="article-content"> </div></div> | |
88 | ||
89 | <div id="content"> | |
90 | ||
91 | <div id="feeds"> | |
92 | <ul id="feeds-content"> </ul> | |
93 | </div> | |
94 | ||
95 | <div id="headlines"> | |
96 | <ul id="headlines-content"> </ul> | |
97 | </div> | |
98 | </div> | |
99 | ||
100 | </body> | |
101 | </html> |