]> git.wh0rd.org - tt-rss.git/blob - digest.php
Merge branch 'master' of madoka.volgo-balt.ru:public_html/testbox/tt-rss
[tt-rss.git] / digest.php
1 <?php
2 error_reporting(E_ERROR | E_WARNING | E_PARSE);
3
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";
10
11 $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
12
13 login_sequence($link);
14
15 $dt_add = get_script_dt_add();
16
17 no_cache_incantation();
18
19 header('Content-Type: text/html; charset=utf-8');
20
21 ?>
22 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
23 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
24
25 <html>
26 <head>
27 <title>Tiny Tiny RSS</title>
28 <link rel="stylesheet" type="text/css" href="digest.css?<?php echo $dt_add ?>"/>
29 <link rel="stylesheet" type="text/css" href="infobox.css?<?php echo $dt_add ?>"/>
30
31 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
32
33 <?php $user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?>
34 <?php if ($user_css_url) { ?>
35 <link rel="stylesheet" type="text/css" href="<?php echo $user_css_url ?>"/>
36 <?php } ?>
37
38 <link rel="shortcut icon" type="image/png" href="images/favicon.png"/>
39
40 <script type="text/javascript" src="lib/prototype.js"></script>
41 <script type="text/javascript" src="lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls"></script>
42 <script type="text/javascript" charset="utf-8" src="localized_js.php?<?php echo $dt_add ?>"></script>
43 <script type="text/javascript" charset="utf-8" src="functions.js?<?php echo $dt_add ?>"></script>
44
45 <script type="text/javascript" src="digest.js"></script>
46
47 <script type="text/javascript">
48 Event.observe(window, 'load', function() {
49 init();
50 });
51 </script>
52 </head>
53 <body id="ttrssDigest">
54 <div id="overlay" style="display : block">
55 <div id="overlay_inner">
56 <noscript>
57 <p>
58 <?php print_error(__("Your browser doesn't support Javascript, which is required
59 for this application to function properly. Please check your
60 browser settings.")) ?></p>
61 </noscript>
62
63 <img src="images/indicator_white.gif"/>
64 <?php echo __("Loading, please wait...") ?>
65 </div>
66 </div>
67
68 <div id="dialog_overlay" style="display : none"> </div>
69
70 <div id="errorBoxShadow" style="display : none">
71 <div id="errorBox">
72 <div id="xebTitle"><?php echo __('Fatal Exception') ?></div><div id="xebContent">&nbsp;</div>
73 <div id="xebBtn" align='center'>
74 <button onclick="closeErrorBox()"><?php echo __('Close this window') ?></button>
75 </div>
76 </div>
77 </div>
78
79 <div id="header">
80
81 <div class="links">
82
83 <?php if (!SINGLE_USER_MODE) { ?>
84 <?php echo __('Hello,') ?> <b><?php echo $_SESSION["name"] ?></b> |
85 <?php } ?>
86
87 <?php if (!SINGLE_USER_MODE) { ?>
88 <a href="logout.php"><?php echo __('Logout') ?></a>
89 <?php } ?>
90
91 </div>
92
93 <?php echo __('Tiny Tiny RSS') ?>
94
95 </div>
96 <div id="content">
97 <!-- <div id="title">
98 <div id="search">
99 <input name="search" type="search"></input>
100 <button>Search</button>
101 </div>
102
103 </div>
104
105 <div id="latest">
106 <h1>latest articles</h1>
107
108 <em>TODO</em>
109
110 <div id="latest-content"> </div>
111 </div> -->
112
113 <div id="feeds">
114 <h1><?php echo __('feeds') ?></h1>
115
116 <ul id="feeds-content"> </ul>
117 </div>
118
119 <div id="headlines">
120 <h1><a href="#" onclick="viewfeed(-4)"><?php echo __('headlines') ?></a>:
121 <span id="headlines-title"></span></h1>
122
123 <ul id="headlines-content"> </ul>
124 </div>
125
126 <br clear="both">
127
128 </div>
129
130 <div id="footer">
131
132 <a href="http://tt-rss.org/">Tiny Tiny RSS</a>
133 <?php if (!defined('HIDE_VERSION')) { ?>
134 v<?php echo VERSION ?>
135 <?php } ?>
136 &copy; 2005&ndash;<?php echo date('Y') ?>
137 <a href="http://fakecake.org/">Andrew Dolgov</a>
138
139 <br/>
140
141 <a href="tt-rss.php">
142 <?php echo __("You are viewing the digest page. Click to open full version.") ?></a>
143
144 </div>
145
146 </body>