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 authenticate_user($link);
13 // $_SESSION["uid"] = PLACEHOLDER_UID; // FIXME: placeholder
14 // $_SESSION["name"] = PLACEHOLDER_NAME;
16 initialize_user_prefs($link, $_SESSION["uid"]);
17 // FIXME this needs to be moved somewhere after user creation
22 <title
>Tiny Tiny RSS
</title
>
24 <link rel
="stylesheet" type
="text/css" href
="tt-rss.css">
26 <?
if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?
>
28 <link rel
="stylesheet" href
="tt-rss_compact.css" type
="text/css">
32 <link title
="Compact Stylesheet" rel
="alternate stylesheet"
33 type
="text/css" href
="tt-rss_compact.css"/>
37 <script type
="text/javascript" src
="functions.js"></script
>
38 <script type
="text/javascript" src
="tt-rss.js"></script
>
39 <!--[if gte IE
5.5000]>
40 <script type
="text/javascript" src
="pngfix.js"></script
>
42 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
45 <body onload
="init()">
47 <?
if (get_pref($link, 'ENABLE_SPLASH')) { ?
>
49 <table width
='100%' height
='100%'><tr
>
50 <td
class="innerSplash" valign
="middle" align
="center">
51 <img src
="images/ttrss_logo.png" alt
="logo">
52 <p
>Loading
, please wait
...</p
>
57 <table width
="100%" height
="100%" cellspacing
="0" cellpadding
="0" class="main">
58 <?
if (get_pref($link, 'DISPLAY_HEADER')) { ?
>
61 <table cellspacing
="0" cellpadding
="0" width
="100%"><tr
>
62 <td rowspan
="2" class="header" valign
="middle">
63 <img src
="images/ttrss_logo.png" alt
="logo">
65 <td align
="right" valign
="top">
66 <div id
="notify"><span id
="notify_body"></div
>
68 </tr
><tr
><td
class="welcomePrompt">
69 Hello
, <b
><?
= $_SESSION["name"] ?
></b
> (<a href
="logout.php">Logout
</a
>)</td
>
75 <td valign
="top" rowspan
="3" class="feeds">
77 <!-- <div id
="feeds"> 
;</div
> -->
80 <a id
="dispSwitchPrompt" href
="javascript:toggleTags()">display tags
</a
>
83 <iframe frameborder
="0"
84 src
="backend.php?op=error&msg=Loading,%20please wait..."
85 id
="feeds-frame" name
="feeds-frame" class="feedsFrame"> </iframe
>
87 <?
if (get_pref($link, 'DISPLAY_FEEDLIST_ACTIONS')) { ?
>
89 <div align
="center">All feeds
:
91 <select id
="allFeedsChooser">
92 <option
>Update
</option
>
93 <option
>Mark
as read
</option
>
94 <option
>Show only unread
</option
>
97 <input type
="submit" class="button" onclick
="allFeedsMenuGo()" value
="Go">
104 <td valign
="top" class="headlinesToolbarBox">
105 <table width
="100%" cellpadding
="0" cellspacing
="0">
107 <tr
><td
class="headlinesToolbar" id
="headlinesToolbar">
108 <input id
="searchbox"
109 onblur
="javascript:enableHotkeys()" onfocus
="javascript:disableHotkeys()"
110 onchange
="javascript:search()">
111 <select id
="searchmodebox">
112 <option
>This feed
</option
>
113 <option
>All feeds
</option
>
117 class="button" onclick
="javascript:search()" value
="Search">
123 <select id
="viewbox" onchange
="javascript:viewCurrentFeed(0, '')">
124 <option
>All Articles
</option
>
125 <option
>Starred
</option
>
126 <option selected
>Unread
</option
>
127 <option
>Unread
or Starred
</option
>
128 <option
>Unread
or Updated
</option
>
133 <select id
="limitbox" onchange
="javascript:viewCurrentFeed(0, '')">
136 $limits = array(15 => 15, 30 => 30, 60 => 60);
138 $def_art_limit = get_pref($link, 'DEFAULT_ARTICLE_LIMIT');
140 print $def_art_limit;
142 if ($def_art_limit >= 0) {
143 $limits[$def_art_limit] = $def_art_limit;
148 array_push($limits, 0);
150 foreach ($limits as $key) {
152 if ($key == $def_art_limit) { print " selected"; }
155 if ($limits[$key] == 0) { print "All"; } else { print $limits[$key]; }
162  
;Feed
: <input
class="button" type
="submit"
163 onclick
="javascript:viewCurrentFeed(0, 'ForceUpdate')" value
="Update">
165 <input
class="button" type
="submit" id
="btnMarkFeedAsRead"
166 onclick
="javascript:viewCurrentFeed(0, 'MarkAllRead')" value
="Mark as read">
170 Actions
: <select id
="quickMenuChooser">
171 <option id
="qmcPrefs" selected
>Preferences
...</option
>
172 <option disabled
>--------</option
>
173 <option style
="color : #5050aa" disabled
>Feed actions
:</option
>
174 <option id
="qmcAddFeed"> 
; 
;Add
new feed
</option
>
175 <option id
="qmcRemoveFeed"> 
; 
;Remove this feed
</option
>
176 <!-- <option
>Edit this feed
</option
> -->
177 <option disabled
>--------</option
>
178 <option style
="color : #5050aa" disabled
>All feeds
:</option
>
179 <option id
="qmcUpdateFeeds"> 
; 
;Update
</option
>
180 <option id
="qmcCatchupAll"> 
; 
;Mark
as read
</option
>
181 <option id
="qmcShowOnlyUnread"> 
; 
;Show only unread
</option
>
183 <input type
="submit" class="button" onclick
="quickMenuGo()" value
="Go">
189 <td id
="headlines" class="headlines" valign
="top">
190 <iframe frameborder
="0" name
="headlines-frame"
191 id
="headlines-frame" class="headlinesFrame"
192 src
="backend.php?op=error&msg=No%20feed%20selected."></iframe
>
195 <td
class="content" id
="content" valign
="top">
196 <iframe frameborder
="0" name
="content-frame"
197 id
="content-frame" class="contentFrame"> </iframe
>
200 <?
if (get_pref($link, 'DISPLAY_FOOTER')) { ?
>
202 <td colspan
="2" class="footer">
203 <a href
="http://bah.spb.su/~fox/tt-rss/">Tiny
-Tiny RSS
</a
> v
<?
= VERSION ?
> ©
; 2005 Andrew Dolgov
204 <?
if (WEB_DEMO_MODE
) { ?
>
205 <br
>Running in demo mode
, some functionality is disabled
.
212 <?
db_close($link); ?
>