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