4 require_once "sanity_check.php";
5 require_once "version.php";
6 require_once "config.php";
7 require_once "db-prefs.php";
8 require_once "functions.php";
10 $link = db_connect(DB_HOST
, DB_USER
, DB_PASS
, DB_NAME
);
12 login_sequence($link);
17 <title
>Tiny Tiny RSS
</title
>
19 <link rel
="stylesheet" type
="text/css" href
="tt-rss.css">
21 <?
$user_theme = $_SESSION["theme"];
23 <link rel
="stylesheet" type
="text/css" href
="themes/<?= $user_theme ?>/theme.css">
26 <?
$user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?
>
27 <?
if ($user_css_url) { ?
>
28 <link type
="text/css" href
="<?= $user_css_url ?>"/>
31 <?
if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?
>
33 <link rel
="stylesheet" href
="tt-rss_compact.css" type
="text/css">
37 <link title
="Compact Stylesheet" rel
="alternate stylesheet"
38 type
="text/css" href
="tt-rss_compact.css"/>
42 <script type
="text/javascript" src
="functions.js"></script
>
43 <script type
="text/javascript" src
="tt-rss.js"></script
>
44 <!--[if gte IE
5.5000]>
45 <script type
="text/javascript" src
="pngfix.js"></script
>
47 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
50 <body onload
="init()">
52 <table width
="100%" height
="100%" cellspacing
="0" cellpadding
="0" class="main">
53 <?
if (get_pref($link, 'DISPLAY_HEADER')) { ?
>
55 <td colspan
="2" class="headerBox">
56 <table cellspacing
="0" cellpadding
="0" width
="100%"><tr
>
57 <td rowspan
="2" class="header" valign
="middle">
58 <img src
="images/ttrss_logo.png" alt
="logo">
60 <td align
="right" valign
="top">
61 <div id
="notify"><span id
="notify_body"></div
>
64 <div id
="userDlgShadow"><div id
="userDlg"> 
;</div
></div
>
66 </tr
><tr
><td
class="welcomePrompt">
67 <?
if (!SINGLE_USER_MODE
) { ?
>
68 Hello
, <b
><?
= $_SESSION["name"] ?
></b
>
69 (<a href
="logout.php">Logout
</a
>)
76 <tr
><td align
="right" colspan
="2">
77 <div id
="notify"><span id
="notify_body"></div
>
78 <div id
="userDlgShadow"><div id
="userDlg"> 
;</div
></div
>
82 <td valign
="top" rowspan
="3" class="feeds">
83 <table
class="innerFeedTable"
84 cellspacing
="0" cellpadding
="0" height
="100%" width
="100%">
87 <a id
="dispSwitchPrompt" href
="javascript:toggleTags()">display tags
</a
>
90 <tr
><td height
="100%" width
="100%" valign
="top">
92 <!-- <div id
="feeds"> 
;</div
> -->
95 <iframe frameborder
="0"
96 src
="backend.php?op=error&msg=Loading,%20please wait..."
97 id
="feeds-frame" name
="feeds-frame" class="feedsFrame"> </iframe
>
101 <?
if (get_pref($link, 'DISPLAY_FEEDLIST_ACTIONS')) { ?
>
103 <div align
="center">All feeds
:
105 <select id
="allFeedsChooser">
106 <option
>Update
</option
>
107 <option
>Mark
as read
</option
>
108 <option
>Show only unread
</option
>
111 <input type
="submit" class="button" onclick
="allFeedsMenuGo()" value
="Go">
119 <td valign
="top" class="headlinesToolbarBox">
120 <table width
="100%" cellpadding
="0" cellspacing
="0">
122 <tr
><td
class="headlinesToolbar" id
="headlinesToolbar">
123 <input id
="searchbox"
124 onblur
="javascript:enableHotkeys()" onfocus
="javascript:disableHotkeys()"
125 onchange
="javascript:search()">
126 <select id
="searchmodebox">
127 <option
>This feed
</option
>
128 <option
>All feeds
</option
>
132 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 <!--  
;Selection
:
177 <select id
="headopbox">
178 <option id
="hopToggleRead">Toggle (un
)read
</option
>
181 <input
class="button" type
="submit" onclick
="headopGo()" value
="Go"> -->
183  
;Feed
: <input
class="button" type
="submit"
184 onclick
="javascript:viewCurrentFeed(0, 'ForceUpdate')" value
="Update">
186 <input
class="button" type
="submit" id
="btnMarkFeedAsRead"
187 onclick
="javascript:viewCurrentFeed(0, 'MarkAllRead')" value
="Mark as read">
191 Actions
: <select id
="quickMenuChooser">
192 <option id
="qmcPrefs" selected
>Preferences
...</option
>
193 <option disabled
>--------</option
>
194 <option style
="color : #5050aa" disabled
>Feed actions
:</option
>
195 <option id
="qmcAddFeed"> 
; 
;Add
new feed
</option
>
196 <option id
="qmcRemoveFeed"> 
; 
;Remove this feed
</option
>
197 <!-- <option
>Edit this feed
</option
> -->
198 <option disabled
>--------</option
>
199 <option style
="color : #5050aa" disabled
>All feeds
:</option
>
200 <option id
="qmcUpdateFeeds"> 
; 
;Update
</option
>
201 <option id
="qmcCatchupAll"> 
; 
;Mark
as read
</option
>
202 <option id
="qmcShowOnlyUnread"> 
; 
;Show only unread
</option
>
204 <input type
="submit" class="button" onclick
="quickMenuGo()" value
="Go">
210 <td id
="headlines" class="headlines" valign
="top">
211 <iframe frameborder
="0" name
="headlines-frame"
212 id
="headlines-frame" class="headlinesFrame"
213 src
="backend.php?op=error&msg=No%20feed%20selected."></iframe
>
216 <td
class="content" id
="content" valign
="top">
217 <iframe frameborder
="0" name
="content-frame"
218 id
="content-frame" class="contentFrame"> </iframe
>
221 <?
if (get_pref($link, 'DISPLAY_FOOTER')) { ?
>
223 <td colspan
="2" class="footer">
224 <a href
="http://tt-rss.spb.ru/">Tiny
-Tiny RSS
</a
> v
<?
= VERSION ?
> ©
; 2005 Andrew Dolgov
225 <?
if (WEB_DEMO_MODE
) { ?
>
226 <br
>Running in demo mode
, some functionality is disabled
.
233 <?
db_close($link); ?
>