]>
git.wh0rd.org - tt-rss.git/blob - tt-rss.php
2 require_once "functions.php";
3 require_once "sessions.php";
4 require_once "sanity_check.php";
5 require_once "version.php";
6 require_once "config.php";
7 require_once "db-prefs.php";
9 $link = db_connect(DB_HOST
, DB_USER
, DB_PASS
, DB_NAME
);
11 init_connection($link);
13 login_sequence($link);
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
="cdm.css?<?php echo $dt_add ?>"/>
31 <link rel
="stylesheet" type
="text/css" href
="lib/dijit/themes/claro/claro.css"/>
33 <?php
print_theme_includes($link) ?
>
35 <?php
$user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?
>
36 <?php
if ($user_css_url) { ?
>
37 <link rel
="stylesheet" type
="text/css" href
="<?php echo $user_css_url ?>"/>
40 <link rel
="shortcut icon" type
="image/png" href
="images/favicon.png"/>
42 <script type
="text/javascript" src
="lib/prototype.js"></script
>
43 <script type
="text/javascript" src
="lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls"></script
>
44 <script type
="text/javascript" src
="lib/dojo/dojo.js" djConfig
="parseOnLoad: true"></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
>
51 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8"/>
53 <script type
="text/javascript">
54 Event
.observe(window
, 'load', function() {
60 <body id
="ttrssMain" class="claro">
62 <div id
="overlay" style
="display : block">
63 <div id
="overlay_inner">
64 <div
class="insensitive"><?php
echo __("Loading, please wait...") ?
></div
>
65 <div dojoType
="dijit.ProgressBar" places
="0" style
="width : 300px" id
="loading_bar"
66 progress
="0" maximum
="100">
70 <?php
print_error(__("Your browser doesn't support Javascript, which is required
71 for this application to function properly. Please check your
72 browser settings.")) ?
></p
>
77 <div id
="hotkey_help_overlay" style
="display : none" onclick
="Element.hide(this)">
78 <?php
rounded_table_start("hho"); ?
>
79 <?php
include "help/3.php" ?
>
80 <?php
rounded_table_end(); ?
>
83 <div id
="notify" class="notify"><span id
="notify_body"> 
;</span
></div
>
84 <div id
="cmdline" style
="display : none"></div
>
85 <div id
="auxDlg" style
="display : none"></div
>
87 <div id
="main" dojoType
="dijit.layout.BorderContainer">
89 <div id
="header" dojoType
="dijit.layout.ContentPane" region
="top">
90 <div
class="topLinks" id
="topLinks">
92 <?php
if (!SINGLE_USER_MODE
) { ?
>
93 <?php
echo __('Hello,') ?
> <b
><?php
echo $_SESSION["name"] ?
></b
> |
95 <a href
="prefs.php"><?php
echo __('Preferences') ?
></a
>
97 <?php
if (defined('FEEDBACK_URL') && FEEDBACK_URL
) { ?
>
98 |
<a target
="_blank" class="feedback" href
="<?php echo FEEDBACK_URL ?>">
99 <?php
echo __('Comments?') ?
></a
>
102 <?php
if (!SINGLE_USER_MODE
) { ?
>
103 |
<a href
="logout.php"><?php
echo __('Logout') ?
></a
>
106 <img id
="newVersionIcon" style
="display:none;" onclick
="javascript:explainError(2)"
107 width
="13" height
="13"
108 src
="<?php echo theme_image($link, 'images/new_version.png') ?>"
109 title
="<?php echo __('New version of Tiny Tiny RSS is available!') ?>"
110 alt
="new_version_icon"/>
114 <img src
="<?php echo theme_image($link, 'images/ttrss_logo.png') ?>" alt
="Tiny Tiny RSS"/>
117 <div id
="feeds-holder" dojoType
="dijit.layout.ContentPane" region
="leading" style
="width : 20%" splitter
="true">
118 <div id
="feedlistLoading">
119 <img src
='images/indicator_tiny.gif'>
120 <?php
echo __("Loading, please wait..."); ?
></div
>
121 <div id
="feedTree"></div
>
124 <div dojoType
="dijit.layout.TabContainer" region
="center" id
="content-tabs">
125 <div dojoType
="dijit.layout.BorderContainer" region
="center" id
="content-wrap"
128 <div id
="toolbar" dojoType
="dijit.layout.ContentPane" region
="top">
130 <div id
="main-toolbar" dojoType
="dijit.Toolbar">
132 <form id
="main_toolbar_form" action
="" onsubmit
='return false'>
134 <button id
="collapse_feeds_btn" onclick
="collapse_feedlist()"
135 title
="<?php echo __('Collapse feedlist') ?>" style
="display : inline">
138 <select name
="view_mode" title
="<?php echo __('Show articles') ?>"
139 onchange
="viewModeChanged()">
140 <option selected
="selected" value
="adaptive"><?php
echo __('Adaptive') ?
></option
>
141 <option value
="all_articles"><?php
echo __('All Articles') ?
></option
>
142 <option value
="marked"><?php
echo __('Starred') ?
></option
>
143 <option value
="published"><?php
echo __('Published') ?
></option
>
144 <option value
="unread"><?php
echo __('Unread') ?
></option
>
145 <!-- <option value
="noscores"><?php
echo __('Ignore Scoring') ?
></option
> -->
146 <option value
="updated"><?php
echo __('Updated') ?
></option
>
149 <select title
="<?php echo __('Sort articles') ?>"
150 name
="order_by" onchange
="viewModeChanged()">
151 <option selected
="selected" value
="default"><?php
echo __('Default') ?
></option
>
152 <option value
="date"><?php
echo __('Date') ?
></option
>
153 <option value
="title"><?php
echo __('Title') ?
></option
>
154 <option value
="score"><?php
echo __('Score') ?
></option
>
157 <button name
="update" onclick
="return scheduleFeedUpdate()">
158 <?php
echo __('Update') ?
></button
>
160 <button onclick
="return catchupCurrentFeed()">
161 <?php
echo __('Mark as read') ?
></button
>
165 <div
class="actionChooser">
166 <select id
="quickMenuChooser" onchange
="quickMenuChange()">
167 <option value
="qmcDefault" selected
="selected"><?php
echo __('Actions...') ?
></option
>
168 <option value
="qmcSearch"><?php
echo __('Search...') ?
></option
>
169 <optgroup label
="<?php echo __('Feed actions:') ?>">
170 <option value
="qmcAddFeed"><?php
echo __('Subscribe to feed...') ?
></option
>
171 <option value
="qmcEditFeed"><?php
echo __('Edit this feed...') ?
></option
>
172 <option value
="qmcRescoreFeed"><?php
echo __('Rescore feed') ?
></option
>
173 <option value
="qmcRemoveFeed"><?php
echo __('Unsubscribe') ?
></option
>
175 <optgroup label
="<?php echo __('All feeds:') ?>">
176 <option value
="qmcCatchupAll"><?php
echo __('Mark as read') ?
></option
>
177 <option value
="qmcShowOnlyUnread"><?php
echo __('(Un)hide read feeds') ?
></option
>
180 <optgroup label
="<?php echo __('Other actions:') ?>">
182 <option value
="qmcTagCloud"><?php
echo __('Show tag cloud...') ?
></option
>
183 <option value
="qmcAddLabel"><?php
echo __('Create label...') ?
></option
>
184 <option value
="qmcAddFilter"><?php
echo __('Create filter...') ?
></option
>
185 <option value
="qmcHKhelp"><?php
echo __('Keyboard shortcuts help') ?
></option
>
195 <div id
="headlines-wrap-inner" dojoType
="dijit.layout.BorderContainer" region
="center">
197 <div id
="headlines-toolbar" dojoType
="dijit.layout.ContentPane" region
="top">
200 <div id
="headlines-frame" dojoType
="dijit.layout.ContentPane"
201 onscroll
="headlines_scroll_handler(this)" region
="center">
202 <div id
="headlinesInnerContainer">
203 <div
class="whiteBox"><?php
echo __('Loading, please wait...') ?
></div
>
207 <?php
if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) { ?
>
208 <div id
="content-insert" dojoType
="dijit.layout.ContentPane" region
="bottom"
209 style
="height : 50%" splitter
="true"></div
>
216 <!-- <div id
="footer" dojoType
="dijit.layout.ContentPane" region
="bottom">
217 <a href
="http://tt-rss.org/">Tiny Tiny RSS
</a
>
218 <?php
if (!defined('HIDE_VERSION')) { ?
>
219 v
<?php
echo VERSION ?
>
221 ©
; 2005&ndash
;<?php
echo date('Y') ?
> <a href
="http://fakecake.org/">Andrew Dolgov
</a
>
226 <?php
db_close($link); ?
>