]> git.wh0rd.org Git - tt-rss.git/blob - digest.php
fix merge conflict with master
[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
30         <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
31
32         <?php $user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?>
33         <?php if ($user_css_url) { ?>
34                 <link rel="stylesheet" type="text/css" href="<?php echo $user_css_url ?>"/> 
35         <?php } ?>
36
37         <link rel="shortcut icon" type="image/png" href="images/favicon.png"/>
38
39         <script type="text/javascript" src="lib/prototype.js"></script>
40         <script type="text/javascript" src="lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls"></script>
41         <script type="text/javascript" charset="utf-8" src="localized_js.php?<?php echo $dt_add ?>"></script>
42         <script type="text/javascript" charset="utf-8" src="functions.js?<?php echo $dt_add ?>"></script>
43
44         <script type="text/javascript" src="digest.js"></script>
45
46         <script type="text/javascript">
47                 Event.observe(window, 'load', function() {
48                         init();
49                 });
50         </script>
51 </head>
52 <body id="ttrssDigest">
53         <div id="overlay" style="display : block">
54                 <div id="overlay_inner">
55                 <noscript>
56                         <p>
57                         <?php print_error(__("Your browser doesn't support Javascript, which is required
58                         for this application to function properly. Please check your
59                         browser settings.")) ?></p>
60                 </noscript>
61
62                 <img src="images/indicator_white.gif"/>
63                         <?php echo __("Loading, please wait...") ?>
64                 </div>
65         </div> 
66
67         <div id="header">
68
69         <div class="links">
70
71         <?php if (!SINGLE_USER_MODE) { ?>
72                         <?php echo __('Hello,') ?> <b><?php echo $_SESSION["name"] ?></b> |
73         <?php } ?>
74
75         <?php if (!SINGLE_USER_MODE) { ?>
76                         <a href="logout.php"><?php echo __('Logout') ?></a>
77         <?php } ?>
78
79         </div>
80
81         <?php echo __('Tiny Tiny RSS') ?>
82
83         </div>
84         <div id="content">
85                 <!-- <div id="title">
86                         <div id="search">
87                                 <input name="search" type="search"></input>
88                                 <button>Search</button>
89                         </div>
90
91                 </div>
92
93                 <div id="latest">
94                         <h1>latest articles</h1>
95
96                         <em>TODO</em>
97
98                         <div id="latest-content"> </div>
99                 </div> -->
100
101                 <div id="feeds">
102                         <h1><?php echo __('feeds') ?></h1>
103
104                         <ul id="feeds-content"> </ul>
105                 </div>
106
107                 <div id="headlines">
108                         <h1><a href="#" onclick="viewfeed(-4)"><?php echo __('headlines') ?></a>: 
109                                 <span id="headlines-title"></span></h1>
110
111                         <ul id="headlines-content"> </ul>
112                 </div>
113
114                 <br clear="both">
115
116         </div>
117
118         <div id="footer">
119
120         <a href="http://tt-rss.org/">Tiny Tiny RSS</a>
121         <?php if (!defined('HIDE_VERSION')) { ?>
122                  v<?php echo VERSION ?> 
123         <?php } ?>
124         &copy; 2005&ndash;<?php echo date('Y') ?> 
125         <a href="http://fakecake.org/">Andrew Dolgov</a>
126         
127         <br/>
128
129         <a href="tt-rss.php">
130                 <?php echo __("You are viewing the digest page. Click to open full version.") ?></a>
131
132 </div>
133
134 </body>