4 require_once "sanity_check.php";
5 require_once "version.php";
6 require_once "config.php";
7 require_once "db-prefs.php";
8 require_once "functions.php";
10 $link = db_connect(DB_HOST
, DB_USER
, DB_PASS
, DB_NAME
);
12 login_sequence($link);
17 <title
>Tiny Tiny RSS
</title
>
19 <link rel
="stylesheet" type
="text/css" href
="tt-rss.css">
21 <?
$user_theme = $_SESSION["theme"];
23 <link rel
="stylesheet" type
="text/css" href
="themes/<?= $user_theme ?>/theme.css">
26 <?
$user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?
>
27 <?
if ($user_css_url) { ?
>
28 <link type
="text/css" href
="<?= $user_css_url ?>"/>
31 <?
if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?
>
33 <link rel
="stylesheet" href
="tt-rss_compact.css" type
="text/css">
37 <link title
="Compact Stylesheet" rel
="alternate stylesheet"
38 type
="text/css" href
="tt-rss_compact.css"/>
42 <script type
="text/javascript" src
="functions.js"></script
>
43 <script type
="text/javascript" src
="tt-rss.js"></script
>
44 <!--[if gte IE
5.5000]>
45 <script type
="text/javascript" src
="pngfix.js"></script
>
46 <link rel
="stylesheet" type
="text/css" href
="tt-rss-ie.css">
48 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
51 <body onload
="init()">
53 <table width
="100%" height
="100%" cellspacing
="0" cellpadding
="0" class="main">
54 <?
if (get_pref($link, 'DISPLAY_HEADER')) { ?
>
56 <td colspan
="2" class="headerBox">
57 <table cellspacing
="0" cellpadding
="0" width
="100%"><tr
>
58 <td rowspan
="2" class="header" valign
="middle">
59 <img src
="images/ttrss_logo.png" alt
="logo">
61 <td valign
="top" class="notifyBox">
62 <div id
="notify"><span id
="notify_body"> 
;</span
></div
>
65 <div id
="userDlgShadow"><div id
="userDlg"> 
;</div
></div
>
67 </tr
><tr
><td
class="welcomePrompt">
68 <?
if (!SINGLE_USER_MODE
) { ?
>
69 Hello
, <b
><?
= $_SESSION["name"] ?
></b
>
70 (<a href
="logout.php">Logout
</a
>)
79 <div id
="notify"><span id
="notify_body"> 
;</span
></div
>
80 <div id
="userDlgShadow"><div id
="userDlg"> 
;</div
></div
>
81 </td
><td
class="welcomePrompt">
82 <?
if (!SINGLE_USER_MODE
) { ?
>
83 Hello
, <b
><?
= $_SESSION["name"] ?
></b
>
84 (<a href
="logout.php">Logout
</a
>)
89 <?
if (get_pref($link, 'COMBINED_DISPLAY_MODE'))
92 $feeds_rowspan = 3; ?
>
93 <td valign
="top" rowspan
="<?= $feeds_rowspan ?>" class="feeds">
94 <table
class="innerFeedTable"
95 cellspacing
="0" cellpadding
="0" height
="100%" width
="100%">
98 <a id
="dispSwitchPrompt" href
="javascript:toggleTags()">display tags
</a
>
101 <tr
><td height
="100%" width
="100%" valign
="top">
103 <?
if (get_pref($link, 'DISPLAY_FEEDLIST_ACTIONS')) { ?
>
105 <iframe frameborder
="0"
106 src
="backend.php?op=error&msg=Loading,%20please wait..."
107 id
="feeds-frame" name
="feeds-frame" class="feedsFrameWithActions"> </iframe
>
111 <select id
="allFeedsChooser" onchange
="allFeedsMenuChange()">
112 <option selected
>All feeds
...</option
>
113 <?
if (!ENABLE_UPDATE_DAEMON
) { ?
>
114 <option
>Update
</option
>
116 <option
>Mark
as read
</option
>
117 <option
>Show only unread
</option
>
124 <iframe frameborder
="0"
125 src
="backend.php?op=error&msg=Loading,%20please wait..."
126 id
="feeds-frame" name
="feeds-frame" class="feedsFrame"> </iframe
>
133 <td valign
="top" class="headlinesToolbarBox">
134 <table width
="100%" cellpadding
="0" cellspacing
="0">
136 <tr
><td
class="headlinesToolbar" id
="headlinesToolbar">
138 <?
if (get_pref($link, 'ENABLE_SEARCH_TOOLBAR')) { ?
>
140 <input id
="searchbox"
141 onblur
="javascript:enableHotkeys()" onfocus
="javascript:disableHotkeys()"
142 onchange
="javascript:search()">
143 <select id
="searchmodebox">
144 <option
>This feed
</option
>
145 <option
>All feeds
</option
>
149 class="button" onclick
="javascript:search()" value
="Search">
157 <select id
="viewbox" onchange
="javascript:viewCurrentFeed(0, '')">
158 <option selected
>Adaptive
</option
>
159 <option
>All Articles
</option
>
160 <option
>Starred
</option
>
161 <option
>Unread
</option
>
166 <select id
="limitbox" onchange
="javascript:viewCurrentFeed(0, '')">
169 $limits = array(15 => 15, 30 => 30, 60 => 60);
171 $def_art_limit = get_pref($link, 'DEFAULT_ARTICLE_LIMIT');
173 if ($def_art_limit >= 0 && !array_key_exists($def_art_limit, $limits)) {
174 $limits[$def_art_limit] = $def_art_limit;
178 array_push($limits, 0);
180 if (!$def_art_limit) {
184 foreach ($limits as $key) {
186 if ($key == $def_art_limit) { print " selected"; }
189 if ($limits[$key] == 0) { print "All"; } else { print $limits[$key]; }
196 <!--  
;Selection
:
198 <select id
="headopbox">
199 <option id
="hopToggleRead">Toggle (un
)read
</option
>
202 <input
class="button" type
="submit" onclick
="headopGo()" value
="Go"> -->
204  
;Feed
: <input
class="button" type
="submit"
205 onclick
="javascript:viewCurrentFeed(0, 'ForceUpdate')" value
="Update">
207 <input
class="button" type
="submit" id
="btnMarkFeedAsRead"
208 onclick
="javascript:viewCurrentFeed(0, 'MarkAllRead')" value
="Mark as read">
212 <select id
="quickMenuChooser" onchange
="quickMenuChange()">
213 <option id
="qmcDefault" selected
>Actions
...</option
>
214 <option id
="qmcPrefs">Preferences
</option
>
215 <option id
="qmcSearch">Search
</option
>
216 <option disabled
>--------</option
>
217 <option style
="color : #5050aa" disabled
>Feed actions
:</option
>
218 <option id
="qmcAddFeed"> 
; 
;Add
new feed
</option
>
219 <option id
="qmcRemoveFeed"> 
; 
;Remove this feed
</option
>
220 <!-- <option
>Edit this feed
</option
> -->
221 <option disabled
>--------</option
>
222 <option style
="color : #5050aa" disabled
>All feeds
:</option
>
223 <?
if (!ENABLE_UPDATE_DAEMON
) { ?
>
224 <option id
="qmcUpdateFeeds"> 
; 
;Update
</option
>
226 <option id
="qmcCatchupAll"> 
; 
;Mark
as read
</option
>
227 <option id
="qmcShowOnlyUnread"> 
; 
;Show only unread
</option
>
228 <option disabled
>--------</option
>
229 <option style
="color : #5050aa" disabled
>Other actions
:</option
>
230 <option id
="qmcAddFilter"> 
; 
;Add filter
</option
>
237 <?
if (get_pref($link, 'COMBINED_DISPLAY_MODE')) { ?
>
239 <td id
="headlines" class="headlines2" valign
="top">
240 <iframe frameborder
="0" name
="headlines-frame"
241 id
="headlines-frame" class="headlinesFrame"
242 src
="backend.php?op=error&msg=No%20feed%20selected."></iframe
>
247 <td id
="headlines" class="headlines" valign
="top">
248 <iframe frameborder
="0" name
="headlines-frame"
249 id
="headlines-frame" class="headlinesFrame"
250 src
="backend.php?op=error&msg=No%20feed%20selected."></iframe
>
253 <td
class="content" id
="content" valign
="top">
254 <iframe frameborder
="0" name
="content-frame"
255 id
="content-frame" class="contentFrame"> </iframe
>
259 <?
if (get_pref($link, 'DISPLAY_FOOTER')) { ?
>
261 <td colspan
="2" class="footer">
262 <a href
="http://tt-rss.spb.ru/">Tiny
-Tiny RSS
</a
> v
<?
= VERSION ?
> ©
; 2005 Andrew Dolgov
263 <?
if (WEB_DEMO_MODE
) { ?
>
264 <br
>Running in demo mode
, some functionality is disabled
.
271 <?
db_close($link); ?
>