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 ?>"/>
30 <?php
$user_theme = get_user_theme_path($link);
32 <link rel
="stylesheet" type
="text/css" href
="themes/<?php echo $user_theme ?>/theme.css?<?php echo $dt_add ?>">
35 <?php
if ($user_theme) { $theme_image_path = "themes/$user_theme/"; } ?
>
37 <?php
$user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?
>
38 <?php
if ($user_css_url) { ?
>
39 <link rel
="stylesheet" type
="text/css" href
="<?php echo $user_css_url ?>"/>
42 <link rel
="shortcut icon" type
="image/png" href
="images/favicon.png"/>
44 <script type
="text/javascript" src
="lib/prototype.js"></script
>
45 <script type
="text/javascript" src
="lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls"></script
>
46 <script type
="text/javascript" charset
="utf-8" src
="localized_js.php?<?php echo $dt_add ?>"></script
>
47 <script type
="text/javascript" charset
="utf-8" src
="tt-rss.js?<?php echo $dt_add ?>"></script
>
48 <script type
="text/javascript" charset
="utf-8" src
="functions.js?<?php echo $dt_add ?>"></script
>
49 <script type
="text/javascript" charset
="utf-8" src
="feedlist.js?<?php echo $dt_add ?>"></script
>
50 <script type
="text/javascript" charset
="utf-8" src
="viewfeed.js?<?php echo $dt_add ?>"></script
>
51 <script type
="text/javascript" charset
="utf-8" src
="offline.js?<?php echo $dt_add ?>"></script
>
53 <script type
="text/javascript" src
="gears_init.js"></script
>
54 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8"/>
56 <script type
="text/javascript">
57 Event
.observe(window
, 'load', function() {
65 <div id
="overlay" style
="display : block">
66 <div id
="overlay_inner">
67 <?php
echo __("Loading, please wait...") ?
>
69 <div id
="l_progress_o">
70 <div id
="l_progress_i"></div
>
75 <?php
print_error(__("Your browser doesn't support Javascript, which is required
76 for this application to function properly. Please check your
77 browser settings.")) ?
></p
>
82 <div id
="hotkey_help_overlay" style
="display : none" onclick
="Element.hide(this)">
83 <?php
rounded_table_start("hho"); ?
>
84 <?php
include "help/3.php" ?
>
85 <?php
rounded_table_end(); ?
>
88 <div id
="notify" class="notify"><span id
="notify_body"> 
;</span
></div
>
90 <div id
="dialog_overlay" style
="display : none"> </div
>
92 <ul id
="debug_output" style
='display : none'><li
> 
;</li
></ul
>
94 <div id
="infoBoxShadow" style
="display : none"><div id
="infoBox"> 
;</div
></div
>
96 <div id
="cmdline" style
="display : none"></div
>
97 <div id
="auxDlg" style
="display : none"></div
>
99 <div id
="errorBoxShadow" style
="display : none">
101 <div id
="xebTitle"><?php
echo __('Fatal Exception') ?
></div
><div id
="xebContent"> 
;</div
>
102 <div id
="xebBtn" align
='center'>
103 <button onclick
="closeErrorBox()"><?php
echo __('Close this window') ?
></button
>
109 <div
class="topLinks" id
="topLinks">
111 <span id
="topLinksOnline">
113 <?php
if (!SINGLE_USER_MODE
) { ?
>
114 <?php
echo __('Hello,') ?
> <b
><?php
echo $_SESSION["name"] ?
></b
> |
116 <a href
="prefs.php"><?php
echo __('Preferences') ?
></a
>
118 <?php
if (defined('FEEDBACK_URL') && FEEDBACK_URL
) { ?
>
119 |
<a target
="_blank" class="feedback" href
="<?php echo FEEDBACK_URL ?>">
120 <?php
echo __('Comments?') ?
></a
>
123 <?php
if (!SINGLE_USER_MODE
) { ?
>
124 |
<a href
="logout.php"><?php
echo __('Logout') ?
></a
>
127 <img id
="offlineModePic"
128 onmouseover
="enable_selection(false)"
129 onmouseout
="enable_selection(true)"
130 onclick
="toggleOfflineModeInfo()"
131 src
="images/offline.png" style
="display:none"
132 width
="16" height
="16"
133 title
="<?php echo __('Offline reading') ?>"/>
135 <div id
="offlineModeDrop" style
="display : none">
136 <div id
="offlineModeSyncMsg">---</div
>
138 <div
class="showWhenSyncing" style
="display : none">
139 <a href
="javascript:offlineDownloadStop()">
140 <?php
echo __('Cancel synchronization') ?
></a
></div
>
141 <div
class="hideWhenSyncing">
142 <a href
="javascript:offlineDownloadStart()">
143 <?php
echo __('Synchronize') ?
></a
></div
>
144 <div
class="hideWhenSyncing"><a href
="javascript:offlineClearData()">
145 <?php
echo __('Remove stored data') ?
></a
></div
>
146 <div
><a href
="javascript:gotoOffline()">
147 <?php
echo __('Go offline') ?
></a
></div
>
150 <img id
="newVersionIcon" style
="display:none;" onclick
="javascript:explainError(2)"
151 width
="13" height
="13" src
="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_path ?>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
="qmcClearFeed"><?php
echo __('Clear articles') ?
></option
> -->
185 <option value
="qmcRescoreFeed"><?php
echo __('Rescore feed') ?
></option
>
186 <option value
="qmcRemoveFeed"><?php
echo __('Unsubscribe') ?
></option
>
188 <optgroup label
="<?php echo __('All feeds:') ?>">
189 <option value
="qmcCatchupAll"><?php
echo __('Mark as read') ?
></option
>
190 <option value
="qmcShowOnlyUnread"><?php
echo __('(Un)hide read feeds') ?
></option
>
192 <optgroup label
="<?php echo __('Other actions:') ?>">
194 <option value
="qmcAddLabel"><?php
echo __('Create label...') ?
></option
>
195 <option value
="qmcAddFilter"><?php
echo __('Create filter...') ?
></option
>
196 <option value
="qmcResetUI"><?php
echo __('Reset UI layout') ?
></option
>
197 <option value
="qmcResetCats"><?php
echo __('Reset category order') ?
></option
>
198 <option value
="qmcHKhelp"><?php
echo __('Keyboard shortcuts') ?
></option
>
204 <form id
="main_toolbar_form" action
="" onsubmit
='return false'>
206 <button id
="collapse_feeds_btn" onclick
="collapse_feedlist()"
207 title
="<?php echo __('Collapse feedlist') ?>" style
="display : none">
210 <select name
="view_mode" title
="<?php echo __('Show articles') ?>"
211 onchange
="viewModeChanged()">
212 <option selected
="selected" value
="adaptive"><?php
echo __('Adaptive') ?
></option
>
213 <option value
="all_articles"><?php
echo __('All Articles') ?
></option
>
214 <option value
="marked"><?php
echo __('Starred') ?
></option
>
215 <option value
="unread"><?php
echo __('Unread') ?
></option
>
216 <!-- <option value
="noscores"><?php
echo __('Ignore Scoring') ?
></option
> -->
217 <option value
="updated"><?php
echo __('Updated') ?
></option
>
220 <select title
="<?php echo __('Sort articles') ?>"
221 name
="order_by" onchange
="viewModeChanged()">
222 <option selected
="selected" value
="default"><?php
echo __('Default') ?
></option
>
223 <option value
="date"><?php
echo __('Date') ?
></option
>
224 <option value
="title"><?php
echo __('Title') ?
></option
>
225 <option value
="score"><?php
echo __('Score') ?
></option
>
228 <button onclick
="return viewCurrentFeed('ForceUpdate')">
229 <?php
echo __('Update') ?
></button
>
231 <button onclick
="return catchupCurrentFeed()">
232 <?php
echo __('Mark as read') ?
></button
>
238 <?php
if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) { ?
>
239 <div id
="headlines-frame" class="headlines_normal">
240 <div
class="whiteBox"><?php
echo __('No feed selected.') ?
></div
></div
>
241 <div id
="content-frame">
242 <div id
="resize-grabber"
243 onmouseover
="enable_resize(true)" onmouseout
="enable_resize(false)"
244 title
="<?php echo __('Drag me to resize panels') ?>">
245 <img src
="images/resize_handle_horiz.png" id
="resize-handle"
246 onmouseover
="enable_resize(true)" onmouseout
="enable_resize(false)"
249 <div id
="content-insert"> 
;</div
>
250 <!-- <div
class="whiteBox"> 
;</div
> --> </div
>
252 <div id
="headlines-frame" class="headlines_cdm">
253 <div
class="whiteBox"><?php
echo __('No feed selected.') ?
></div
></div
>
257 <a href
="http://tt-rss.org/">Tiny Tiny RSS
</a
>
258 <?php
if (!defined('HIDE_VERSION')) { ?
>
259 v
<?php
echo VERSION ?
>
261 ©
; 2005&ndash
;2010 <a href
="http://bah.org.ru/">Andrew Dolgov
</a
>
264 <?php
db_close($link); ?
>