]>
Commit | Line | Data |
---|---|---|
4062022e | 1 | <? |
0cc89acb | 2 | session_start(); |
66581886 AD |
3 | |
4 | require_once "sanity_check.php"; | |
4062022e AD |
5 | require_once "version.php"; |
6 | require_once "config.php"; | |
7 | require_once "db-prefs.php"; | |
ff485f1d | 8 | require_once "functions.php"; |
da5d0d09 | 9 | |
4062022e | 10 | $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); |
c93f38c4 | 11 | |
b8aa49bc | 12 | login_sequence($link); |
ff485f1d | 13 | |
4062022e | 14 | ?> |
1cd17194 AD |
15 | <html> |
16 | <head> | |
17 | <title>Tiny Tiny RSS</title> | |
da5d0d09 | 18 | |
430bf183 AD |
19 | <link rel="stylesheet" type="text/css" href="tt-rss.css"> |
20 | ||
386d7b5b AD |
21 | <? $user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?> |
22 | <? if ($user_css_url) { ?> | |
23 | <link type="text/css" href="<?= $user_css_url ?>"/> | |
24 | <? } ?> | |
25 | ||
4062022e | 26 | <? if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?> |
da5d0d09 | 27 | |
430bf183 | 28 | <link rel="stylesheet" href="tt-rss_compact.css" type="text/css"> |
da5d0d09 AD |
29 | |
30 | <? } else { ?> | |
31 | ||
430bf183 AD |
32 | <link title="Compact Stylesheet" rel="alternate stylesheet" |
33 | type="text/css" href="tt-rss_compact.css"/> | |
da5d0d09 AD |
34 | |
35 | <? } ?> | |
628eb1bd | 36 | |
331900c6 | 37 | <script type="text/javascript" src="functions.js"></script> |
1cd17194 | 38 | <script type="text/javascript" src="tt-rss.js"></script> |
d5224f0d AD |
39 | <!--[if gte IE 5.5000]> |
40 | <script type="text/javascript" src="pngfix.js"></script> | |
41 | <![endif]--> | |
d76a3b03 | 42 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
1cd17194 AD |
43 | </head> |
44 | ||
45 | <body onload="init()"> | |
46 | ||
4062022e | 47 | <? if (get_pref($link, 'ENABLE_SPLASH')) { ?> |
2f587484 AD |
48 | <div id="splash"> |
49 | <table width='100%' height='100%'><tr> | |
50 | <td class="innerSplash" valign="middle" align="center"> | |
51 | <img src="images/ttrss_logo.png" alt="logo"> | |
52 | <p>Loading, please wait...</p> | |
53 | </td></tr></table> | |
54 | </div> | |
55 | <? } ?> | |
56 | ||
828a8ecc | 57 | <table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main"> |
4062022e | 58 | <? if (get_pref($link, 'DISPLAY_HEADER')) { ?> |
1cd17194 | 59 | <tr> |
c93f38c4 | 60 | <td colspan="2"> |
828a8ecc | 61 | <table cellspacing="0" cellpadding="0" width="100%"><tr> |
c93f38c4 | 62 | <td rowspan="2" class="header" valign="middle"> |
828a8ecc AD |
63 | <img src="images/ttrss_logo.png" alt="logo"> |
64 | </td> | |
65 | <td align="right" valign="top"> | |
66 | <div id="notify"><span id="notify_body"></div> | |
67 | </td> | |
69919a24 AD |
68 | |
69 | <div id="userDlg"> </div> | |
70 | ||
c93f38c4 | 71 | </tr><tr><td class="welcomePrompt"> |
7d4c898a | 72 | <? if (!SINGLE_USER_MODE) { ?> |
9f78104c AD |
73 | Hello, <b><?= $_SESSION["name"] ?></b> |
74 | (<a href="logout.php">Logout</a>) | |
8cb74804 AD |
75 | <? } ?> |
76 | </td> | |
828a8ecc | 77 | </tr></table> |
2c1dd701 AD |
78 | </td> |
79 | </tr> | |
69919a24 AD |
80 | <? } else { ?> |
81 | <div id="userDlg"> </div> | |
da5d0d09 | 82 | <? } ?> |
1cd17194 | 83 | <tr> |
f0601b87 | 84 | <td valign="top" rowspan="3" class="feeds"> |
28fa9253 AD |
85 | <table class="innerFeedTable" |
86 | cellspacing="0" cellpadding="0" height="100%" width="100%"> | |
87 | <tr><td> | |
88 | <div id="dispSwitch"> | |
89 | <a id="dispSwitchPrompt" href="javascript:toggleTags()">display tags</a> | |
90 | </div> | |
91 | </td></tr> | |
92 | <tr><td height="100%" width="100%" valign="top"> | |
caa4e57f | 93 | |
1a66d16e AD |
94 | <!-- <div id="feeds"> </div> --> |
95 | ||
8143ae1f | 96 | |
5bfef089 | 97 | <iframe frameborder="0" |
6adbdbee | 98 | src="backend.php?op=error&msg=Loading,%20please wait..." |
5bfef089 | 99 | id="feeds-frame" name="feeds-frame" class="feedsFrame"> </iframe> |
7a991cac | 100 | |
28fa9253 AD |
101 | </td></tr></table> |
102 | ||
4062022e | 103 | <? if (get_pref($link, 'DISPLAY_FEEDLIST_ACTIONS')) { ?> |
7a991cac | 104 | |
3745788e | 105 | <div align="center">All feeds: |
caa4e57f | 106 | |
3745788e AD |
107 | <select id="allFeedsChooser"> |
108 | <option>Update</option> | |
109 | <option>Mark as read</option> | |
cbe45fa8 | 110 | <option>Show only unread</option> |
3745788e AD |
111 | </select> |
112 | ||
113 | <input type="submit" class="button" onclick="allFeedsMenuGo()" value="Go"> | |
27be66c3 | 114 | |
3745788e | 115 | </div> |
28fa9253 | 116 | |
caa4e57f | 117 | |
7a991cac AD |
118 | <? } ?> |
119 | ||
1cd17194 | 120 | </td> |
f0601b87 | 121 | <td valign="top" class="headlinesToolbarBox"> |
e828e31e | 122 | <table width="100%" cellpadding="0" cellspacing="0"> |
ac43eba1 | 123 | |
ac43eba1 | 124 | <tr><td class="headlinesToolbar" id="headlinesToolbar"> |
4ce19859 | 125 | <input id="searchbox" |
f0601b87 AD |
126 | onblur="javascript:enableHotkeys()" onfocus="javascript:disableHotkeys()" |
127 | onchange="javascript:search()"> | |
52b51244 AD |
128 | <select id="searchmodebox"> |
129 | <option>This feed</option> | |
130 | <option>All feeds</option> | |
131 | </select> | |
132 | ||
ac43eba1 | 133 | <input type="submit" |
4ce19859 | 134 | class="button" onclick="javascript:search()" value="Search"> |
f0601b87 | 135 | |
033e47e0 AD |
136 | |
137 | ||
138 | View: | |
f0601b87 AD |
139 | |
140 | <select id="viewbox" onchange="javascript:viewCurrentFeed(0, '')"> | |
d6f55ce8 | 141 | <option>All Articles</option> |
f0601b87 | 142 | <option>Starred</option> |
ac43eba1 | 143 | <option selected>Unread</option> |
b5aa95e7 | 144 | <option>Unread or Starred</option> |
bdd01d3f | 145 | <option>Unread or Updated</option> |
f0601b87 AD |
146 | </select> |
147 | ||
cb1083a1 AD |
148 | Limit: |
149 | ||
150 | <select id="limitbox" onchange="javascript:viewCurrentFeed(0, '')"> | |
f1b9a8ee AD |
151 | |
152 | <? | |
153 | $limits = array(15 => 15, 30 => 30, 60 => 60); | |
154 | ||
4062022e AD |
155 | $def_art_limit = get_pref($link, 'DEFAULT_ARTICLE_LIMIT'); |
156 | ||
157 | print $def_art_limit; | |
158 | ||
159 | if ($def_art_limit >= 0) { | |
160 | $limits[$def_art_limit] = $def_art_limit; | |
f1b9a8ee AD |
161 | } |
162 | ||
163 | asort($limits); | |
164 | ||
165 | array_push($limits, 0); | |
166 | ||
167 | foreach ($limits as $key) { | |
168 | print "<option"; | |
4062022e | 169 | if ($key == $def_art_limit) { print " selected"; } |
f1b9a8ee AD |
170 | print ">"; |
171 | ||
172 | if ($limits[$key] == 0) { print "All"; } else { print $limits[$key]; } | |
173 | ||
174 | print "</option>"; | |
175 | } ?> | |
4062022e | 176 | |
cb1083a1 AD |
177 | </select> |
178 | ||
ac43eba1 AD |
179 | Feed: <input class="button" type="submit" |
180 | onclick="javascript:viewCurrentFeed(0, 'ForceUpdate')" value="Update"> | |
f0601b87 | 181 | |
a7de14fc | 182 | <input class="button" type="submit" id="btnMarkFeedAsRead" |
ac43eba1 | 183 | onclick="javascript:viewCurrentFeed(0, 'MarkAllRead')" value="Mark as read"> |
f0601b87 | 184 | |
a14f82f2 AD |
185 | </td> |
186 | <td align="right"> | |
6de5d056 | 187 | Actions: <select id="quickMenuChooser"> |
cbe45fa8 | 188 | <option id="qmcPrefs" selected>Preferences...</option> |
7a991cac AD |
189 | <option disabled>--------</option> |
190 | <option style="color : #5050aa" disabled>Feed actions:</option> | |
cbe45fa8 AD |
191 | <option id="qmcAddFeed"> Add new feed</option> |
192 | <option id="qmcRemoveFeed"> Remove this feed</option> | |
e2f8f7b4 | 193 | <!-- <option>Edit this feed</option> --> |
7a991cac AD |
194 | <option disabled>--------</option> |
195 | <option style="color : #5050aa" disabled>All feeds:</option> | |
cbe45fa8 AD |
196 | <option id="qmcUpdateFeeds"> Update</option> |
197 | <option id="qmcCatchupAll"> Mark as read</option> | |
198 | <option id="qmcShowOnlyUnread"> Show only unread</option> | |
e2f8f7b4 AD |
199 | </select> |
200 | <input type="submit" class="button" onclick="quickMenuGo()" value="Go"> | |
a14f82f2 AD |
201 | </td> |
202 | </tr> | |
f0601b87 AD |
203 | </table> |
204 | </td> | |
205 | </tr><tr> | |
1cd17194 | 206 | <td id="headlines" class="headlines" valign="top"> |
5bfef089 | 207 | <iframe frameborder="0" name="headlines-frame" |
e828e31e AD |
208 | id="headlines-frame" class="headlinesFrame" |
209 | src="backend.php?op=error&msg=No%20feed%20selected."></iframe> | |
1cd17194 | 210 | </td> |
bb7cface | 211 | </tr><tr> |
1cd17194 | 212 | <td class="content" id="content" valign="top"> |
5bfef089 AD |
213 | <iframe frameborder="0" name="content-frame" |
214 | id="content-frame" class="contentFrame"> </iframe> | |
1cd17194 AD |
215 | </td> |
216 | </tr> | |
4062022e | 217 | <? if (get_pref($link, 'DISPLAY_FOOTER')) { ?> |
1cd17194 | 218 | <tr> |
e828e31e | 219 | <td colspan="2" class="footer"> |
7325509d | 220 | <a href="http://tt-rss.spb.ru/">Tiny-Tiny RSS</a> v<?= VERSION ?> © 2005 Andrew Dolgov |
0b615681 AD |
221 | <? if (WEB_DEMO_MODE) { ?> |
222 | <br>Running in demo mode, some functionality is disabled. | |
223 | <? } ?> | |
1cd17194 AD |
224 | </td> |
225 | </td> | |
da5d0d09 | 226 | <? } ?> |
1cd17194 AD |
227 | </table> |
228 | ||
ab49d368 | 229 | <? db_close($link); ?> |
1cd17194 AD |
230 | |
231 | </body> | |
232 | </html> |