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 if (!SINGLE_USER_MODE
) {
14 if (!$_SESSION["uid"]) {
15 header("Location: login.php");
19 authenticate_user($link);
23 $_SESSION["name"] = "admin";
29 <title
>Tiny Tiny RSS
</title
>
31 <link rel
="stylesheet" type
="text/css" href
="tt-rss.css">
33 <?
if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?
>
35 <link rel
="stylesheet" href
="tt-rss_compact.css" type
="text/css">
39 <link title
="Compact Stylesheet" rel
="alternate stylesheet"
40 type
="text/css" href
="tt-rss_compact.css"/>
44 <script type
="text/javascript" src
="functions.js"></script
>
45 <script type
="text/javascript" src
="tt-rss.js"></script
>
46 <!--[if gte IE
5.5000]>
47 <script type
="text/javascript" src
="pngfix.js"></script
>
49 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
52 <body onload
="init()">
54 <?
if (get_pref($link, 'ENABLE_SPLASH')) { ?
>
56 <table width
='100%' height
='100%'><tr
>
57 <td
class="innerSplash" valign
="middle" align
="center">
58 <img src
="images/ttrss_logo.png" alt
="logo">
59 <p
>Loading
, please wait
...</p
>
64 <table width
="100%" height
="100%" cellspacing
="0" cellpadding
="0" class="main">
65 <?
if (get_pref($link, 'DISPLAY_HEADER')) { ?
>
68 <table cellspacing
="0" cellpadding
="0" width
="100%"><tr
>
69 <td rowspan
="2" class="header" valign
="middle">
70 <img src
="images/ttrss_logo.png" alt
="logo">
72 <td align
="right" valign
="top">
73 <div id
="notify"><span id
="notify_body"></div
>
75 </tr
><tr
><td
class="welcomePrompt">
76 <?
if (!SINGLE_USER_MODE
) { ?
>
77 Hello
, <b
><?
= $_SESSION["name"] ?
></b
> (<a href
="logout.php">Logout
</a
>)</td
>
84 <td valign
="top" rowspan
="3" class="feeds">
86 <!-- <div id
="feeds"> 
;</div
> -->
89 <a id
="dispSwitchPrompt" href
="javascript:toggleTags()">display tags
</a
>
92 <iframe frameborder
="0"
93 src
="backend.php?op=error&msg=Loading,%20please wait..."
94 id
="feeds-frame" name
="feeds-frame" class="feedsFrame"> </iframe
>
96 <?
if (get_pref($link, 'DISPLAY_FEEDLIST_ACTIONS')) { ?
>
98 <div align
="center">All feeds
:
100 <select id
="allFeedsChooser">
101 <option
>Update
</option
>
102 <option
>Mark
as read
</option
>
103 <option
>Show only unread
</option
>
106 <input type
="submit" class="button" onclick
="allFeedsMenuGo()" value
="Go">
113 <td valign
="top" class="headlinesToolbarBox">
114 <table width
="100%" cellpadding
="0" cellspacing
="0">
116 <tr
><td
class="headlinesToolbar" id
="headlinesToolbar">
117 <input id
="searchbox"
118 onblur
="javascript:enableHotkeys()" onfocus
="javascript:disableHotkeys()"
119 onchange
="javascript:search()">
120 <select id
="searchmodebox">
121 <option
>This feed
</option
>
122 <option
>All feeds
</option
>
126 class="button" onclick
="javascript:search()" value
="Search">
132 <select id
="viewbox" onchange
="javascript:viewCurrentFeed(0, '')">
133 <option
>All Articles
</option
>
134 <option
>Starred
</option
>
135 <option selected
>Unread
</option
>
136 <option
>Unread
or Starred
</option
>
137 <option
>Unread
or Updated
</option
>
142 <select id
="limitbox" onchange
="javascript:viewCurrentFeed(0, '')">
145 $limits = array(15 => 15, 30 => 30, 60 => 60);
147 $def_art_limit = get_pref($link, 'DEFAULT_ARTICLE_LIMIT');
149 print $def_art_limit;
151 if ($def_art_limit >= 0) {
152 $limits[$def_art_limit] = $def_art_limit;
157 array_push($limits, 0);
159 foreach ($limits as $key) {
161 if ($key == $def_art_limit) { print " selected"; }
164 if ($limits[$key] == 0) { print "All"; } else { print $limits[$key]; }
171  
;Feed
: <input
class="button" type
="submit"
172 onclick
="javascript:viewCurrentFeed(0, 'ForceUpdate')" value
="Update">
174 <input
class="button" type
="submit" id
="btnMarkFeedAsRead"
175 onclick
="javascript:viewCurrentFeed(0, 'MarkAllRead')" value
="Mark as read">
179 Actions
: <select id
="quickMenuChooser">
180 <option id
="qmcPrefs" selected
>Preferences
...</option
>
181 <option disabled
>--------</option
>
182 <option style
="color : #5050aa" disabled
>Feed actions
:</option
>
183 <option id
="qmcAddFeed"> 
; 
;Add
new feed
</option
>
184 <option id
="qmcRemoveFeed"> 
; 
;Remove this feed
</option
>
185 <!-- <option
>Edit this feed
</option
> -->
186 <option disabled
>--------</option
>
187 <option style
="color : #5050aa" disabled
>All feeds
:</option
>
188 <option id
="qmcUpdateFeeds"> 
; 
;Update
</option
>
189 <option id
="qmcCatchupAll"> 
; 
;Mark
as read
</option
>
190 <option id
="qmcShowOnlyUnread"> 
; 
;Show only unread
</option
>
192 <input type
="submit" class="button" onclick
="quickMenuGo()" value
="Go">
198 <td id
="headlines" class="headlines" valign
="top">
199 <iframe frameborder
="0" name
="headlines-frame"
200 id
="headlines-frame" class="headlinesFrame"
201 src
="backend.php?op=error&msg=No%20feed%20selected."></iframe
>
204 <td
class="content" id
="content" valign
="top">
205 <iframe frameborder
="0" name
="content-frame"
206 id
="content-frame" class="contentFrame"> </iframe
>
209 <?
if (get_pref($link, 'DISPLAY_FOOTER')) { ?
>
211 <td colspan
="2" class="footer">
212 <a href
="http://bah.spb.su/~fox/tt-rss/">Tiny
-Tiny RSS
</a
> v
<?
= VERSION ?
> ©
; 2005 Andrew Dolgov
213 <?
if (WEB_DEMO_MODE
) { ?
>
214 <br
>Running in demo mode
, some functionality is disabled
.
221 <?
db_close($link); ?
>