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 <?
if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?
>
22 <link rel
="stylesheet" href
="tt-rss_compact.css" type
="text/css">
26 <link title
="Compact Stylesheet" rel
="alternate stylesheet"
27 type
="text/css" href
="tt-rss_compact.css"/>
31 <script type
="text/javascript" src
="functions.js"></script
>
32 <script type
="text/javascript" src
="tt-rss.js"></script
>
33 <!--[if gte IE
5.5000]>
34 <script type
="text/javascript" src
="pngfix.js"></script
>
36 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
39 <body onload
="init()">
41 <?
if (get_pref($link, 'ENABLE_SPLASH')) { ?
>
43 <table width
='100%' height
='100%'><tr
>
44 <td
class="innerSplash" valign
="middle" align
="center">
45 <img src
="images/ttrss_logo.png" alt
="logo">
46 <p
>Loading
, please wait
...</p
>
51 <table width
="100%" height
="100%" cellspacing
="0" cellpadding
="0" class="main">
52 <?
if (get_pref($link, 'DISPLAY_HEADER')) { ?
>
55 <table cellspacing
="0" cellpadding
="0" width
="100%"><tr
>
56 <td rowspan
="2" class="header" valign
="middle">
57 <img src
="images/ttrss_logo.png" alt
="logo">
59 <td align
="right" valign
="top">
60 <div id
="notify"><span id
="notify_body"></div
>
63 <div id
="userDlg"> 
;</div
>
65 </tr
><tr
><td
class="welcomePrompt">
66 <?
if (!SINGLE_USER_MODE
) { ?
>
67 <?
if (USE_HTTP_AUTH
) { ?
>
68 <table align
="right"><tr
>
69 <td
class="httpWelcomePrompt">Hello
, <b
> <?
= $_SESSION["name"] ?
></b
></td
>
70 <td
><form action
="tt-rss.php" method
="POST">
71 <input type
="hidden" name
="ForceLogout" value
="yes">
72 <input type
="submit" class="button" value
="Logout">
76 Hello
, <b
><?
= $_SESSION["name"] ?
></b
>
77 (<a href
="logout.php">Logout
</a
>)
85 <div id
="userDlg"> 
;</div
>
88 <td valign
="top" rowspan
="3" class="feeds">
90 <!-- <div id
="feeds"> 
;</div
> -->
93 <a id
="dispSwitchPrompt" href
="javascript:toggleTags()">display tags
</a
>
96 <iframe frameborder
="0"
97 src
="backend.php?op=error&msg=Loading,%20please wait..."
98 id
="feeds-frame" name
="feeds-frame" class="feedsFrame"> </iframe
>
100 <?
if (get_pref($link, 'DISPLAY_FEEDLIST_ACTIONS')) { ?
>
102 <div align
="center">All feeds
:
104 <select id
="allFeedsChooser">
105 <option
>Update
</option
>
106 <option
>Mark
as read
</option
>
107 <option
>Show only unread
</option
>
110 <input type
="submit" class="button" onclick
="allFeedsMenuGo()" value
="Go">
117 <td valign
="top" class="headlinesToolbarBox">
118 <table width
="100%" cellpadding
="0" cellspacing
="0">
120 <tr
><td
class="headlinesToolbar" id
="headlinesToolbar">
121 <input id
="searchbox"
122 onblur
="javascript:enableHotkeys()" onfocus
="javascript:disableHotkeys()"
123 onchange
="javascript:search()">
124 <select id
="searchmodebox">
125 <option
>This feed
</option
>
126 <option
>All feeds
</option
>
130 class="button" onclick
="javascript:search()" value
="Search">
136 <select id
="viewbox" onchange
="javascript:viewCurrentFeed(0, '')">
137 <option
>All Articles
</option
>
138 <option
>Starred
</option
>
139 <option selected
>Unread
</option
>
140 <option
>Unread
or Starred
</option
>
141 <option
>Unread
or Updated
</option
>
146 <select id
="limitbox" onchange
="javascript:viewCurrentFeed(0, '')">
149 $limits = array(15 => 15, 30 => 30, 60 => 60);
151 $def_art_limit = get_pref($link, 'DEFAULT_ARTICLE_LIMIT');
153 print $def_art_limit;
155 if ($def_art_limit >= 0) {
156 $limits[$def_art_limit] = $def_art_limit;
161 array_push($limits, 0);
163 foreach ($limits as $key) {
165 if ($key == $def_art_limit) { print " selected"; }
168 if ($limits[$key] == 0) { print "All"; } else { print $limits[$key]; }
175  
;Feed
: <input
class="button" type
="submit"
176 onclick
="javascript:viewCurrentFeed(0, 'ForceUpdate')" value
="Update">
178 <input
class="button" type
="submit" id
="btnMarkFeedAsRead"
179 onclick
="javascript:viewCurrentFeed(0, 'MarkAllRead')" value
="Mark as read">
183 Actions
: <select id
="quickMenuChooser">
184 <option id
="qmcPrefs" selected
>Preferences
...</option
>
185 <option disabled
>--------</option
>
186 <option style
="color : #5050aa" disabled
>Feed actions
:</option
>
187 <option id
="qmcAddFeed"> 
; 
;Add
new feed
</option
>
188 <option id
="qmcRemoveFeed"> 
; 
;Remove this feed
</option
>
189 <!-- <option
>Edit this feed
</option
> -->
190 <option disabled
>--------</option
>
191 <option style
="color : #5050aa" disabled
>All feeds
:</option
>
192 <option id
="qmcUpdateFeeds"> 
; 
;Update
</option
>
193 <option id
="qmcCatchupAll"> 
; 
;Mark
as read
</option
>
194 <option id
="qmcShowOnlyUnread"> 
; 
;Show only unread
</option
>
196 <input type
="submit" class="button" onclick
="quickMenuGo()" value
="Go">
202 <td id
="headlines" class="headlines" valign
="top">
203 <iframe frameborder
="0" name
="headlines-frame"
204 id
="headlines-frame" class="headlinesFrame"
205 src
="backend.php?op=error&msg=No%20feed%20selected."></iframe
>
208 <td
class="content" id
="content" valign
="top">
209 <iframe frameborder
="0" name
="content-frame"
210 id
="content-frame" class="contentFrame"> </iframe
>
213 <?
if (get_pref($link, 'DISPLAY_FOOTER')) { ?
>
215 <td colspan
="2" class="footer">
216 <a href
="http://bah.spb.su/~fox/tt-rss/">Tiny
-Tiny RSS
</a
> v
<?
= VERSION ?
> ©
; 2005 Andrew Dolgov
217 <?
if (WEB_DEMO_MODE
) { ?
>
218 <br
>Running in demo mode
, some functionality is disabled
.
225 <?
db_close($link); ?
>