4 require_once "version.php";
5 require_once "config.php";
6 require_once "db-prefs.php";
7 require_once "functions.php";
9 $link = db_connect(DB_HOST
, DB_USER
, DB_PASS
, DB_NAME
);
11 login_sequence($link);
16 <title
>Tiny Tiny RSS
</title
>
18 <link rel
="stylesheet" type
="text/css" href
="tt-rss.css">
20 <?
$user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?
>
21 <?
if ($user_css_url) { ?
>
22 <link type
="text/css" href
="<?= $user_css_url ?>"/>
25 <?
if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?
>
27 <link rel
="stylesheet" href
="tt-rss_compact.css" type
="text/css">
31 <link title
="Compact Stylesheet" rel
="alternate stylesheet"
32 type
="text/css" href
="tt-rss_compact.css"/>
36 <script type
="text/javascript" src
="functions.js"></script
>
37 <script type
="text/javascript" src
="tt-rss.js"></script
>
38 <!--[if gte IE
5.5000]>
39 <script type
="text/javascript" src
="pngfix.js"></script
>
41 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
44 <body onload
="init()">
46 <?
if (get_pref($link, 'ENABLE_SPLASH')) { ?
>
48 <table width
='100%' height
='100%'><tr
>
49 <td
class="innerSplash" valign
="middle" align
="center">
50 <img src
="images/ttrss_logo.png" alt
="logo">
51 <p
>Loading
, please wait
...</p
>
56 <table width
="100%" height
="100%" cellspacing
="0" cellpadding
="0" class="main">
57 <?
if (get_pref($link, 'DISPLAY_HEADER')) { ?
>
60 <table cellspacing
="0" cellpadding
="0" width
="100%"><tr
>
61 <td rowspan
="2" class="header" valign
="middle">
62 <img src
="images/ttrss_logo.png" alt
="logo">
64 <td align
="right" valign
="top">
65 <div id
="notify"><span id
="notify_body"></div
>
68 <div id
="userDlg"> 
;</div
>
70 </tr
><tr
><td
class="welcomePrompt">
71 <?
if (!SINGLE_USER_MODE
) { ?
>
72 Hello
, <b
><?
= $_SESSION["name"] ?
></b
>
73 (<a href
="logout.php">Logout
</a
>)
80 <div id
="userDlg"> 
;</div
>
83 <td valign
="top" rowspan
="3" class="feeds">
85 <!-- <div id
="feeds"> 
;</div
> -->
88 <a id
="dispSwitchPrompt" href
="javascript:toggleTags()">display tags
</a
>
91 <iframe frameborder
="0"
92 src
="backend.php?op=error&msg=Loading,%20please wait..."
93 id
="feeds-frame" name
="feeds-frame" class="feedsFrame"> </iframe
>
95 <?
if (get_pref($link, 'DISPLAY_FEEDLIST_ACTIONS')) { ?
>
97 <div align
="center">All feeds
:
99 <select id
="allFeedsChooser">
100 <option
>Update
</option
>
101 <option
>Mark
as read
</option
>
102 <option
>Show only unread
</option
>
105 <input type
="submit" class="button" onclick
="allFeedsMenuGo()" value
="Go">
112 <td valign
="top" class="headlinesToolbarBox">
113 <table width
="100%" cellpadding
="0" cellspacing
="0">
115 <tr
><td
class="headlinesToolbar" id
="headlinesToolbar">
116 <input id
="searchbox"
117 onblur
="javascript:enableHotkeys()" onfocus
="javascript:disableHotkeys()"
118 onchange
="javascript:search()">
119 <select id
="searchmodebox">
120 <option
>This feed
</option
>
121 <option
>All feeds
</option
>
125 class="button" onclick
="javascript:search()" value
="Search">
131 <select id
="viewbox" onchange
="javascript:viewCurrentFeed(0, '')">
132 <option
>All Articles
</option
>
133 <option
>Starred
</option
>
134 <option selected
>Unread
</option
>
135 <option
>Unread
or Starred
</option
>
136 <option
>Unread
or Updated
</option
>
141 <select id
="limitbox" onchange
="javascript:viewCurrentFeed(0, '')">
144 $limits = array(15 => 15, 30 => 30, 60 => 60);
146 $def_art_limit = get_pref($link, 'DEFAULT_ARTICLE_LIMIT');
148 print $def_art_limit;
150 if ($def_art_limit >= 0) {
151 $limits[$def_art_limit] = $def_art_limit;
156 array_push($limits, 0);
158 foreach ($limits as $key) {
160 if ($key == $def_art_limit) { print " selected"; }
163 if ($limits[$key] == 0) { print "All"; } else { print $limits[$key]; }
170  
;Feed
: <input
class="button" type
="submit"
171 onclick
="javascript:viewCurrentFeed(0, 'ForceUpdate')" value
="Update">
173 <input
class="button" type
="submit" id
="btnMarkFeedAsRead"
174 onclick
="javascript:viewCurrentFeed(0, 'MarkAllRead')" value
="Mark as read">
178 Actions
: <select id
="quickMenuChooser">
179 <option id
="qmcPrefs" selected
>Preferences
...</option
>
180 <option disabled
>--------</option
>
181 <option style
="color : #5050aa" disabled
>Feed actions
:</option
>
182 <option id
="qmcAddFeed"> 
; 
;Add
new feed
</option
>
183 <option id
="qmcRemoveFeed"> 
; 
;Remove this feed
</option
>
184 <!-- <option
>Edit this feed
</option
> -->
185 <option disabled
>--------</option
>
186 <option style
="color : #5050aa" disabled
>All feeds
:</option
>
187 <option id
="qmcUpdateFeeds"> 
; 
;Update
</option
>
188 <option id
="qmcCatchupAll"> 
; 
;Mark
as read
</option
>
189 <option id
="qmcShowOnlyUnread"> 
; 
;Show only unread
</option
>
191 <input type
="submit" class="button" onclick
="quickMenuGo()" value
="Go">
197 <td id
="headlines" class="headlines" valign
="top">
198 <iframe frameborder
="0" name
="headlines-frame"
199 id
="headlines-frame" class="headlinesFrame"
200 src
="backend.php?op=error&msg=No%20feed%20selected."></iframe
>
203 <td
class="content" id
="content" valign
="top">
204 <iframe frameborder
="0" name
="content-frame"
205 id
="content-frame" class="contentFrame"> </iframe
>
208 <?
if (get_pref($link, 'DISPLAY_FOOTER')) { ?
>
210 <td colspan
="2" class="footer">
211 <a href
="http://tt-rss.spb.ru/">Tiny
-Tiny RSS
</a
> v
<?
= VERSION ?
> ©
; 2005 Andrew Dolgov
212 <?
if (WEB_DEMO_MODE
) { ?
>
213 <br
>Running in demo mode
, some functionality is disabled
.
220 <?
db_close($link); ?
>