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
>
109 <div align
="center">All feeds
:
111 <select id
="allFeedsChooser">
112 <option
>Update
</option
>
113 <option
>Mark
as read
</option
>
114 <option
>Show only unread
</option
>
117 <input type
="submit" class="button" onclick
="allFeedsMenuGo()" value
="Go">
123 <iframe frameborder
="0"
124 src
="backend.php?op=error&msg=Loading,%20please wait..."
125 id
="feeds-frame" name
="feeds-frame" class="feedsFrame"> </iframe
>
132 <td valign
="top" class="headlinesToolbarBox">
133 <table width
="100%" cellpadding
="0" cellspacing
="0">
135 <tr
><td
class="headlinesToolbar" id
="headlinesToolbar">
137 <?
if (get_pref($link, 'ENABLE_SEARCH_TOOLBAR')) { ?
>
139 <input id
="searchbox"
140 onblur
="javascript:enableHotkeys()" onfocus
="javascript:disableHotkeys()"
141 onchange
="javascript:search()">
142 <select id
="searchmodebox">
143 <option
>This feed
</option
>
144 <option
>All feeds
</option
>
148 class="button" onclick
="javascript:search()" value
="Search">
156 <select id
="viewbox" onchange
="javascript:viewCurrentFeed(0, '')">
157 <option selected
>Adaptive
</option
>
158 <option
>All Articles
</option
>
159 <option
>Starred
</option
>
160 <option
>Unread
</option
>
165 <select id
="limitbox" onchange
="javascript:viewCurrentFeed(0, '')">
168 $limits = array(15 => 15, 30 => 30, 60 => 60);
170 $def_art_limit = get_pref($link, 'DEFAULT_ARTICLE_LIMIT');
172 if ($def_art_limit >= 0 && !array_key_exists($def_art_limit, $limits)) {
173 $limits[$def_art_limit] = $def_art_limit;
177 array_push($limits, 0);
179 if (!$def_art_limit) {
183 foreach ($limits as $key) {
185 if ($key == $def_art_limit) { print " selected"; }
188 if ($limits[$key] == 0) { print "All"; } else { print $limits[$key]; }
195 <!--  
;Selection
:
197 <select id
="headopbox">
198 <option id
="hopToggleRead">Toggle (un
)read
</option
>
201 <input
class="button" type
="submit" onclick
="headopGo()" value
="Go"> -->
203  
;Feed
: <input
class="button" type
="submit"
204 onclick
="javascript:viewCurrentFeed(0, 'ForceUpdate')" value
="Update">
206 <input
class="button" type
="submit" id
="btnMarkFeedAsRead"
207 onclick
="javascript:viewCurrentFeed(0, 'MarkAllRead')" value
="Mark as read">
211 Actions
: <select id
="quickMenuChooser">
212 <option id
="qmcPrefs" selected
>Preferences
...</option
>
213 <option id
="qmcSearch">Search
...</option
>
214 <option disabled
>--------</option
>
215 <option style
="color : #5050aa" disabled
>Feed actions
:</option
>
216 <option id
="qmcAddFeed"> 
; 
;Add
new feed
...</option
>
217 <option id
="qmcRemoveFeed"> 
; 
;Remove this feed
...</option
>
218 <!-- <option
>Edit this feed
</option
> -->
219 <option disabled
>--------</option
>
220 <option style
="color : #5050aa" disabled
>All feeds
:</option
>
221 <option id
="qmcUpdateFeeds"> 
; 
;Update
</option
>
222 <option id
="qmcCatchupAll"> 
; 
;Mark
as read
</option
>
223 <option id
="qmcShowOnlyUnread"> 
; 
;Show only unread
</option
>
224 <option disabled
>--------</option
>
225 <option style
="color : #5050aa" disabled
>Other actions
:</option
>
226 <option id
="qmcAddFilter"> 
; 
;Add filter
...</option
>
228 <input type
="submit" class="button" onclick
="quickMenuGo()" value
="Go">
234 <?
if (get_pref($link, 'COMBINED_DISPLAY_MODE')) { ?
>
236 <td id
="headlines" class="headlines2" valign
="top">
237 <iframe frameborder
="0" name
="headlines-frame"
238 id
="headlines-frame" class="headlinesFrame"
239 src
="backend.php?op=error&msg=No%20feed%20selected."></iframe
>
244 <td id
="headlines" class="headlines" valign
="top">
245 <iframe frameborder
="0" name
="headlines-frame"
246 id
="headlines-frame" class="headlinesFrame"
247 src
="backend.php?op=error&msg=No%20feed%20selected."></iframe
>
250 <td
class="content" id
="content" valign
="top">
251 <iframe frameborder
="0" name
="content-frame"
252 id
="content-frame" class="contentFrame"> </iframe
>
256 <?
if (get_pref($link, 'DISPLAY_FOOTER')) { ?
>
258 <td colspan
="2" class="footer">
259 <a href
="http://tt-rss.spb.ru/">Tiny
-Tiny RSS
</a
> v
<?
= VERSION ?
> ©
; 2005 Andrew Dolgov
260 <?
if (WEB_DEMO_MODE
) { ?
>
261 <br
>Running in demo mode
, some functionality is disabled
.
268 <?
db_close($link); ?
>