2 error_reporting(E_ERROR | E_WARNING | E_PARSE
);
4 require_once "functions.php";
5 require_once "sessions.php";
6 require_once "sanity_check.php";
7 require_once "version.php";
8 require_once "config.php";
9 require_once "db-prefs.php";
11 $link = db_connect(DB_HOST
, DB_USER
, DB_PASS
, DB_NAME
);
13 login_sequence($link);
15 $dt_add = get_script_dt_add();
17 no_cache_incantation();
19 header('Content-Type: text/html; charset=utf-8');
22 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
23 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
26 <title
>Tiny Tiny RSS
</title
>
28 <link rel
="stylesheet" type
="text/css" href
="tt-rss.css?<?php echo $dt_add ?>"/>
29 <link rel
="stylesheet" type
="text/css" href
="infobox.css?<?php echo $dt_add ?>"/>
31 <?php
$user_theme = get_user_theme_path($link);
33 <link rel
="stylesheet" type
="text/css" href
="<?php echo $user_theme ?>/theme.css?<?php echo $dt_add ?>">
36 <?php
$user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?
>
37 <?php
if ($user_css_url) { ?
>
38 <link rel
="stylesheet" type
="text/css" href
="<?php echo $user_css_url ?>"/>
41 <link rel
="shortcut icon" type
="image/png" href
="images/favicon.png"/>
43 <script type
="text/javascript" src
="lib/prototype.js"></script
>
44 <script type
="text/javascript" src
="lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls"></script
>
45 <script type
="text/javascript" charset
="utf-8" src
="localized_js.php?<?php echo $dt_add ?>"></script
>
46 <script type
="text/javascript" charset
="utf-8" src
="tt-rss.js?<?php echo $dt_add ?>"></script
>
47 <script type
="text/javascript" charset
="utf-8" src
="functions.js?<?php echo $dt_add ?>"></script
>
48 <script type
="text/javascript" charset
="utf-8" src
="feedlist.js?<?php echo $dt_add ?>"></script
>
49 <script type
="text/javascript" charset
="utf-8" src
="viewfeed.js?<?php echo $dt_add ?>"></script
>
50 <script type
="text/javascript" charset
="utf-8" src
="offline.js?<?php echo $dt_add ?>"></script
>
52 <script type
="text/javascript" src
="gears_init.js"></script
>
53 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8"/>
55 <script type
="text/javascript">
56 Event
.observe(window
, 'load', function() {
64 <div id
="overlay" style
="display : block">
65 <div id
="overlay_inner">
66 <?php
echo __("Loading, please wait...") ?
>
68 <div id
="l_progress_o">
69 <div id
="l_progress_i"></div
>
74 <?php
print_error(__("Your browser doesn't support Javascript, which is required
75 for this application to function properly. Please check your
76 browser settings.")) ?
></p
>
81 <div id
="hotkey_help_overlay" style
="display : none" onclick
="Element.hide(this)">
82 <?php
rounded_table_start("hho"); ?
>
83 <?php
include "help/3.php" ?
>
84 <?php
rounded_table_end(); ?
>
87 <div id
="notify" class="notify"><span id
="notify_body"> 
;</span
></div
>
89 <div id
="dialog_overlay" style
="display : none"> </div
>
91 <ul id
="debug_output" style
='display : none'><li
> 
;</li
></ul
>
93 <div id
="infoBoxShadow" style
="display : none"><div id
="infoBox"> 
;</div
></div
>
95 <div id
="cmdline" style
="display : none"></div
>
96 <div id
="auxDlg" style
="display : none"></div
>
98 <div id
="errorBoxShadow" style
="display : none">
100 <div id
="xebTitle"><?php
echo __('Fatal Exception') ?
></div
><div id
="xebContent"> 
;</div
>
101 <div id
="xebBtn" align
='center'>
102 <button onclick
="closeErrorBox()"><?php
echo __('Close this window') ?
></button
>
108 <div
class="topLinks" id
="topLinks">
110 <span id
="topLinksOnline">
112 <?php
if (!SINGLE_USER_MODE
) { ?
>
113 <?php
echo __('Hello,') ?
> <b
><?php
echo $_SESSION["name"] ?
></b
> |
115 <a href
="prefs.php"><?php
echo __('Preferences') ?
></a
>
117 <?php
if (defined('FEEDBACK_URL') && FEEDBACK_URL
) { ?
>
118 |
<a target
="_blank" class="feedback" href
="<?php echo FEEDBACK_URL ?>">
119 <?php
echo __('Comments?') ?
></a
>
122 <?php
if (!SINGLE_USER_MODE
) { ?
>
123 |
<a href
="logout.php"><?php
echo __('Logout') ?
></a
>
126 <img id
="offlineModePic"
127 onmouseover
="enable_selection(false)"
128 onmouseout
="enable_selection(true)"
129 onclick
="toggleOfflineModeInfo()"
130 src
="images/offline.png" style
="display:none"
131 width
="16" height
="16"
132 title
="<?php echo __('Offline reading') ?>"/>
134 <div id
="offlineModeDrop" style
="display : none">
135 <div id
="offlineModeSyncMsg">---</div
>
137 <div
class="showWhenSyncing" style
="display : none">
138 <a href
="javascript:offlineDownloadStop()">
139 <?php
echo __('Cancel synchronization') ?
></a
></div
>
140 <div
class="hideWhenSyncing">
141 <a href
="javascript:offlineDownloadStart()">
142 <?php
echo __('Synchronize') ?
></a
></div
>
143 <div
class="hideWhenSyncing"><a href
="javascript:offlineClearData()">
144 <?php
echo __('Remove stored data') ?
></a
></div
>
145 <div
><a href
="javascript:gotoOffline()">
146 <?php
echo __('Go offline') ?
></a
></div
>
149 <img id
="newVersionIcon" style
="display:none;" onclick
="javascript:explainError(2)"
150 width
="13" height
="13"
151 src
="<?php echo theme_image($link, 'images/new_version.png') ?>"
152 title
="<?php echo __('New version of Tiny Tiny RSS is available!') ?>"
153 alt
="new_version_icon"/>
157 <span id
="topLinksOffline" style
="display : none">
158 <img id
="restartOnlinePic" src
="images/online.png"
159 height
="13" width
="13" onclick
="gotoOnline()" title
="<?php echo __('Go online') ?>"/>
164 <img src
="<?php echo theme_image($link, 'images/ttrss_logo.png') ?>" alt
="Tiny Tiny RSS"/>
167 <div id
="feeds-holder">
168 <div id
="dispSwitch">
169 <a id
="dispSwitchPrompt"
170 href
="javascript:toggleTags()"><?php
echo __("tag cloud") ?
></a
>
172 <div id
="feeds-frame"> 
;</div
>
177 <div
class="actionChooser">
178 <select id
="quickMenuChooser" onchange
="quickMenuChange()">
179 <option value
="qmcDefault" selected
="selected"><?php
echo __('Actions...') ?
></option
>
180 <option value
="qmcSearch"><?php
echo __('Search...') ?
></option
>
181 <optgroup label
="<?php echo __('Feed actions:') ?>">
182 <option value
="qmcAddFeed"><?php
echo __('Subscribe to feed...') ?
></option
>
183 <option value
="qmcEditFeed"><?php
echo __('Edit this feed...') ?
></option
>
184 <option value
="qmcRescoreFeed"><?php
echo __('Rescore feed') ?
></option
>
185 <option value
="qmcRemoveFeed"><?php
echo __('Unsubscribe') ?
></option
>
187 <optgroup label
="<?php echo __('All feeds:') ?>">
188 <option value
="qmcCatchupAll"><?php
echo __('Mark as read') ?
></option
>
189 <option value
="qmcShowOnlyUnread"><?php
echo __('(Un)hide read feeds') ?
></option
>
191 <optgroup label
="<?php echo __('Categories:') ?>">
193 <option value
="qmcToggleReorder"><?php
echo __('Toggle reordering mode') ?
></option
>
194 <option value
="qmcResetCats"><?php
echo __('Reset order') ?
></option
>
197 <optgroup label
="<?php echo __('Other actions:') ?>">
199 <option value
="qmcAddLabel"><?php
echo __('Create label...') ?
></option
>
200 <option value
="qmcAddFilter"><?php
echo __('Create filter...') ?
></option
>
201 <option value
="qmcResetUI"><?php
echo __('Reset UI layout') ?
></option
>
202 <option value
="qmcHKhelp"><?php
echo __('Keyboard shortcuts help') ?
></option
>
208 <form id
="main_toolbar_form" action
="" onsubmit
='return false'>
210 <button id
="collapse_feeds_btn" onclick
="collapse_feedlist()"
211 title
="<?php echo __('Collapse feedlist') ?>" style
="display : none">
214 <select name
="view_mode" title
="<?php echo __('Show articles') ?>"
215 onchange
="viewModeChanged()">
216 <option selected
="selected" value
="adaptive"><?php
echo __('Adaptive') ?
></option
>
217 <option value
="all_articles"><?php
echo __('All Articles') ?
></option
>
218 <option value
="marked"><?php
echo __('Starred') ?
></option
>
219 <option value
="published"><?php
echo __('Published') ?
></option
>
220 <option value
="unread"><?php
echo __('Unread') ?
></option
>
221 <!-- <option value
="noscores"><?php
echo __('Ignore Scoring') ?
></option
> -->
222 <option value
="updated"><?php
echo __('Updated') ?
></option
>
225 <select title
="<?php echo __('Sort articles') ?>"
226 name
="order_by" onchange
="viewModeChanged()">
227 <option selected
="selected" value
="default"><?php
echo __('Default') ?
></option
>
228 <option value
="date"><?php
echo __('Date') ?
></option
>
229 <option value
="title"><?php
echo __('Title') ?
></option
>
230 <option value
="score"><?php
echo __('Score') ?
></option
>
233 <button name
="update" onclick
="return viewCurrentFeed('ForceUpdate')">
234 <?php
echo __('Update') ?
></button
>
236 <button onclick
="return catchupCurrentFeed()">
237 <?php
echo __('Mark as read') ?
></button
>
243 <?php
if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) { ?
>
244 <div id
="headlines-frame" class="headlines_normal">
245 <div
class="whiteBox"><?php
echo __('Loading, please wait...') ?
></div
></div
>
246 <div id
="content-frame">
247 <div id
="resize-grabber"
248 onmouseover
="enable_resize(true)" onmouseout
="enable_resize(false)"
249 title
="<?php echo __('Drag me to resize panels') ?>">
250 <img src
="<?php echo theme_image($link,
251 'images/resize_handle_horiz.png') ?>" id
="resize-handle"
252 onmouseover
="enable_resize(true)" onmouseout
="enable_resize(false)"
255 <div id
="content-insert"> 
;</div
>
256 <!-- <div
class="whiteBox"> 
;</div
> --> </div
>
258 <div id
="headlines-frame" class="headlines_cdm">
259 <div
class="whiteBox"><?php
echo __('Loading, please wait...') ?
></div
></div
>
263 <a href
="http://tt-rss.org/">Tiny Tiny RSS
</a
>
264 <?php
if (!defined('HIDE_VERSION')) { ?
>
265 v
<?php
echo VERSION ?
>
267 ©
; 2005&ndash
;<?php
echo date('Y') ?
> <a href
="http://fakecake.org/">Andrew Dolgov
</a
>
270 <?php
db_close($link); ?
>