2 require_once "version.php";
3 require_once "config.php";
4 require_once "db-prefs.php";
6 $link = db_connect(DB_HOST
, DB_USER
, DB_PASS
, DB_NAME
);
10 <title
>Tiny Tiny RSS
</title
>
12 <link rel
="stylesheet" type
="text/css" href
="tt-rss.css">
14 <?
if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?
>
16 <link rel
="stylesheet" href
="tt-rss_compact.css" type
="text/css">
20 <link title
="Compact Stylesheet" rel
="alternate stylesheet"
21 type
="text/css" href
="tt-rss_compact.css"/>
25 <script type
="text/javascript" src
="functions.js"></script
>
26 <script type
="text/javascript" src
="tt-rss.js"></script
>
27 <!--[if gte IE
5.5000]>
28 <script type
="text/javascript" src
="pngfix.js"></script
>
30 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
33 <body onload
="init()">
35 <?
if (get_pref($link, 'ENABLE_SPLASH')) { ?
>
37 <table width
='100%' height
='100%'><tr
>
38 <td
class="innerSplash" valign
="middle" align
="center">
39 <img src
="images/ttrss_logo.png" alt
="logo">
40 <p
>Loading
, please wait
...</p
>
45 <table width
="100%" height
="100%" cellspacing
="0" cellpadding
="0" class="main">
46 <?
if (get_pref($link, 'DISPLAY_HEADER')) { ?
>
48 <td colspan
="2" class="headerBox">
49 <table cellspacing
="0" cellpadding
="0" width
="100%"><tr
>
50 <td
class="header" valign
="middle">
51 <img src
="images/ttrss_logo.png" alt
="logo">
53 <td align
="right" valign
="top">
54 <div id
="notify"><span id
="notify_body"></div
>
58 <div id
="userDlg"> 
;</div
>
64 <td valign
="top" rowspan
="3" class="feeds">
66 <!-- <div id
="feeds"> 
;</div
> -->
69 <a id
="dispSwitchPrompt" href
="javascript:toggleTags()">display tags
</a
>
72 <iframe frameborder
="0"
73 src
="backend.php?op=error&msg=Loading,%20please wait..."
74 id
="feeds-frame" name
="feeds-frame" class="feedsFrame"> </iframe
>
76 <?
if (get_pref($link, 'DISPLAY_FEEDLIST_ACTIONS')) { ?
>
78 <div align
="center">All feeds
:
80 <select id
="allFeedsChooser">
81 <option
>Update
</option
>
82 <option
>Mark
as read
</option
>
83 <option
>Show only unread
</option
>
86 <input type
="submit" class="button" onclick
="allFeedsMenuGo()" value
="Go">
93 <td valign
="top" class="headlinesToolbarBox">
94 <table width
="100%" cellpadding
="0" cellspacing
="0">
96 <tr
><td
class="headlinesToolbar" id
="headlinesToolbar">
98 onblur
="javascript:enableHotkeys()" onfocus
="javascript:disableHotkeys()"
99 onchange
="javascript:search()">
100 <select id
="searchmodebox">
101 <option
>This feed
</option
>
102 <option
>All feeds
</option
>
106 class="button" onclick
="javascript:search()" value
="Search">
112 <select id
="viewbox" onchange
="javascript:viewCurrentFeed(0, '')">
113 <option
>All Articles
</option
>
114 <option
>Starred
</option
>
115 <option selected
>Unread
</option
>
116 <option
>Unread
or Starred
</option
>
117 <option
>Unread
or Updated
</option
>
122 <select id
="limitbox" onchange
="javascript:viewCurrentFeed(0, '')">
125 $limits = array(15 => 15, 30 => 30, 60 => 60);
127 $def_art_limit = get_pref($link, 'DEFAULT_ARTICLE_LIMIT');
129 print $def_art_limit;
131 if ($def_art_limit >= 0) {
132 $limits[$def_art_limit] = $def_art_limit;
137 array_push($limits, 0);
139 foreach ($limits as $key) {
141 if ($key == $def_art_limit) { print " selected"; }
144 if ($limits[$key] == 0) { print "All"; } else { print $limits[$key]; }
151  
;Feed
: <input
class="button" type
="submit"
152 onclick
="javascript:viewCurrentFeed(0, 'ForceUpdate')" value
="Update">
154 <input
class="button" type
="submit" id
="btnMarkFeedAsRead"
155 onclick
="javascript:viewCurrentFeed(0, 'MarkAllRead')" value
="Mark as read">
159 Actions
: <select id
="quickMenuChooser">
160 <option id
="qmcPrefs" selected
>Preferences
...</option
>
161 <option disabled
>--------</option
>
162 <option style
="color : #5050aa" disabled
>Feed actions
:</option
>
163 <option id
="qmcAddFeed"> 
; 
;Add
new feed
</option
>
164 <option id
="qmcRemoveFeed"> 
; 
;Remove this feed
</option
>
165 <!-- <option
>Edit this feed
</option
> -->
166 <option disabled
>--------</option
>
167 <option style
="color : #5050aa" disabled
>All feeds
:</option
>
168 <option id
="qmcUpdateFeeds"> 
; 
;Update
</option
>
169 <option id
="qmcCatchupAll"> 
; 
;Mark
as read
</option
>
170 <option id
="qmcShowOnlyUnread"> 
; 
;Show only unread
</option
>
172 <input type
="submit" class="button" onclick
="quickMenuGo()" value
="Go">
178 <td id
="headlines" class="headlines" valign
="top">
179 <iframe frameborder
="0" name
="headlines-frame"
180 id
="headlines-frame" class="headlinesFrame"
181 src
="backend.php?op=error&msg=No%20feed%20selected."></iframe
>
184 <td
class="content" id
="content" valign
="top">
185 <iframe frameborder
="0" name
="content-frame"
186 id
="content-frame" class="contentFrame"> </iframe
>
189 <?
if (get_pref($link, 'DISPLAY_FOOTER')) { ?
>
191 <td colspan
="2" class="footer">
192 <a href
="http://bah.spb.su/~fox/tt-rss/">Tiny
-Tiny RSS
</a
> v
<?
= VERSION ?
> ©
; 2005 Andrew Dolgov
193 <?
if (WEB_DEMO_MODE
) { ?
>
194 <br
>Running in demo mode
, some functionality is disabled
.
201 <?
db_close($link); ?
>