]>
Commit | Line | Data |
---|---|---|
c01f40f4 AD |
1 | <?php |
2 | error_reporting(E_ERROR | E_WARNING | E_PARSE); | |
3 | ||
4 | require_once "functions.php"; | |
5 | require_once "sessions.php"; | |
6 | require_once "sanity_check.php"; | |
7 | require_once "version.php"; | |
8 | require_once "config.php"; | |
9 | require_once "db-prefs.php"; | |
10 | ||
11 | $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); | |
12 | ||
13 | login_sequence($link); | |
14 | ||
15 | $dt_add = get_script_dt_add(); | |
16 | ||
17 | no_cache_incantation(); | |
18 | ||
19 | header('Content-Type: text/html; charset=utf-8'); | |
20 | ||
21 | ?> | |
22 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
23 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
24 | ||
25 | <html> | |
26 | <head> | |
4311cc7e | 27 | <title>Tiny Tiny RSS</title> |
c01f40f4 | 28 | <link rel="stylesheet" type="text/css" href="digest.css?<?php echo $dt_add ?>"/> |
c5325e09 | 29 | <link rel="stylesheet" type="text/css" href="infobox.css?<?php echo $dt_add ?>"/> |
c01f40f4 AD |
30 | |
31 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
32 | ||
33 | <?php $user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?> | |
34 | <?php if ($user_css_url) { ?> | |
35 | <link rel="stylesheet" type="text/css" href="<?php echo $user_css_url ?>"/> | |
36 | <?php } ?> | |
37 | ||
38 | <link rel="shortcut icon" type="image/png" href="images/favicon.png"/> | |
39 | ||
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 | <script type="text/javascript" charset="utf-8" src="localized_js.php?<?php echo $dt_add ?>"></script> | |
c01f40f4 AD |
43 | <script type="text/javascript" charset="utf-8" src="functions.js?<?php echo $dt_add ?>"></script> |
44 | ||
45 | <script type="text/javascript" src="digest.js"></script> | |
46 | ||
47 | <script type="text/javascript"> | |
48 | Event.observe(window, 'load', function() { | |
d5d56329 | 49 | init(); |
c01f40f4 AD |
50 | }); |
51 | </script> | |
52 | </head> | |
53 | <body id="ttrssDigest"> | |
c7a5c8a5 AD |
54 | <div id="overlay" style="display : block"> |
55 | <div id="overlay_inner"> | |
56 | <noscript> | |
57 | <p> | |
58 | <?php print_error(__("Your browser doesn't support Javascript, which is required | |
59 | for this application to function properly. Please check your | |
60 | browser settings.")) ?></p> | |
61 | </noscript> | |
62 | ||
63 | <img src="images/indicator_white.gif"/> | |
64 | <?php echo __("Loading, please wait...") ?> | |
65 | </div> | |
66 | </div> | |
67 | ||
c5325e09 AD |
68 | <div id="dialog_overlay" style="display : none"> </div> |
69 | ||
70 | <div id="errorBoxShadow" style="display : none"> | |
71 | <div id="errorBox"> | |
72 | <div id="xebTitle"><?php echo __('Fatal Exception') ?></div><div id="xebContent"> </div> | |
73 | <div id="xebBtn" align='center'> | |
74 | <button onclick="closeErrorBox()"><?php echo __('Close this window') ?></button> | |
75 | </div> | |
76 | </div> | |
77 | </div> | |
78 | ||
c01f40f4 AD |
79 | <div id="header"> |
80 | ||
81 | <div class="links"> | |
82 | ||
83 | <?php if (!SINGLE_USER_MODE) { ?> | |
84 | <?php echo __('Hello,') ?> <b><?php echo $_SESSION["name"] ?></b> | | |
85 | <?php } ?> | |
86 | ||
87 | <?php if (!SINGLE_USER_MODE) { ?> | |
88 | <a href="logout.php"><?php echo __('Logout') ?></a> | |
89 | <?php } ?> | |
90 | ||
91 | </div> | |
92 | ||
c524d7e6 | 93 | <?php echo __('Tiny Tiny RSS') ?> |
c01f40f4 AD |
94 | |
95 | </div> | |
96 | <div id="content"> | |
c524d7e6 | 97 | <!-- <div id="title"> |
c01f40f4 AD |
98 | <div id="search"> |
99 | <input name="search" type="search"></input> | |
100 | <button>Search</button> | |
101 | </div> | |
102 | ||
103 | </div> | |
104 | ||
105 | <div id="latest"> | |
106 | <h1>latest articles</h1> | |
107 | ||
108 | <em>TODO</em> | |
109 | ||
110 | <div id="latest-content"> </div> | |
c524d7e6 | 111 | </div> --> |
c01f40f4 AD |
112 | |
113 | <div id="feeds"> | |
c524d7e6 | 114 | <h1><?php echo __('feeds') ?></h1> |
c01f40f4 AD |
115 | |
116 | <ul id="feeds-content"> </ul> | |
117 | </div> | |
118 | ||
119 | <div id="headlines"> | |
78ac6caf AD |
120 | <h1><a href="#" onclick="viewfeed(-4)"><?php echo __('headlines') ?></a>: |
121 | <span id="headlines-title"></span></h1> | |
c01f40f4 AD |
122 | |
123 | <ul id="headlines-content"> </ul> | |
124 | </div> | |
125 | ||
126 | <br clear="both"> | |
127 | ||
128 | </div> | |
129 | ||
130 | <div id="footer"> | |
131 | ||
132 | <a href="http://tt-rss.org/">Tiny Tiny RSS</a> | |
133 | <?php if (!defined('HIDE_VERSION')) { ?> | |
134 | v<?php echo VERSION ?> | |
135 | <?php } ?> | |
136 | © 2005–<?php echo date('Y') ?> | |
78ac6caf AD |
137 | <a href="http://fakecake.org/">Andrew Dolgov</a> |
138 | ||
139 | <br/> | |
140 | ||
141 | <a href="tt-rss.php"> | |
142 | <?php echo __("You are viewing the digest page. Click to open full version.") ?></a> | |
143 | ||
144 | </div> | |
c01f40f4 AD |
145 | |
146 | </body> |