]> git.wh0rd.org Git - tt-rss.git/blob - prefs.php
null output from update_feeds.php
[tt-rss.git] / prefs.php
1 <?
2         session_start();
3
4         require_once "sanity_check.php";
5         require_once "version.php"; 
6         require_once "config.php";
7         require_once "db-prefs.php";
8         require_once "functions.php"; 
9
10         $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); 
11
12         login_sequence($link);
13 ?>
14 <html>
15 <head>
16         <title>Tiny Tiny RSS : Preferences</title>
17         <link rel="stylesheet" href="tt-rss.css" type="text/css">
18
19         <?      $user_theme = $_SESSION["theme"];
20                 if ($user_theme) { ?>
21                 <link rel="stylesheet" type="text/css" href="themes/<?= $user_theme ?>/theme.css">
22         <? } ?>
23
24         <? $user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?>
25         <? if ($user_css_url) { ?>
26                 <link type="text/css" href="<?= $user_css_url ?>"/> 
27         <? } ?>
28
29         <? if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?>
30
31                 <link rel="stylesheet" href="tt-rss_compact.css" type="text/css">
32
33         <? } else { ?>
34
35                 <link title="Compact Stylesheet" rel="alternate stylesheet" 
36                         type="text/css" href="tt-rss_compact.css"/> 
37
38         <? } ?>
39
40         
41         <script type="text/javascript" src="functions.js"></script>
42         <script type="text/javascript" src="prefs.js"></script>
43
44         <!--[if gte IE 5.5000]>
45                 <script type="text/javascript" src="pngfix.js"></script>
46         <![endif]-->
47         <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
48 </head>
49
50 <body onload="init()">
51
52 <table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main">
53 <? if (get_pref($link, 'DISPLAY_HEADER')) { ?>
54 <tr>
55         <td colspan="2">
56                 <table cellspacing="0" cellpadding="0" width="100%"><tr>
57                         <td rowspan="2" class="header" valign="middle"> 
58                                 <img src="images/ttrss_logo.png" alt="logo">    
59                         </td>
60                         <td align="right" valign="top">
61                                 <div id="notify"><span id="notify_body"></div>
62                         </td>
63                 </tr><tr><td class="welcomePrompt">
64                         <? if (!SINGLE_USER_MODE) { ?>
65                                 Hello, <b><?= $_SESSION["name"] ?></b>
66                                 (<a href="logout.php">Logout</a>)
67                         <? } ?>
68                         </td>
69                 </tr></table>
70         </td>
71 </tr>
72 <? } else { ?>
73 <tr><td colspan="2" align="right">
74         <div id="notify"><span id="notify_body"></div>
75         <div id="userDlgShadow"><div id="userDlg">&nbsp;</div></div>
76 </td></tr>
77 <? } ?>
78 <tr>
79         <td class="prefsTabs" align="left" valign="bottom">
80                 <input id="genConfigTab" class="prefsTab" type="submit" value="Preferences"
81                         onclick="selectTab('genConfig')">
82                 <input id="feedConfigTab" class="prefsTab" type="submit" value="Feed Configuration"
83                         onclick="selectTab('feedConfig')">
84                 <input id="filterConfigTab" class="prefsTab" type="submit" value="Content Filtering"
85                         onclick="selectTab('filterConfig')">
86                 <? if (GLOBAL_ENABLE_LABELS && get_pref($link, 'ENABLE_LABELS')) { ?>
87                 <input id="labelConfigTab" class="prefsTab" type="submit" value="Label Editor"
88                         onclick="selectTab('labelConfig')">
89                 <? } ?>
90                 <? if ($_SESSION["access_level"] >= 10) { ?>
91                 <input id="userConfigTab" class="prefsTab" type="submit" value="User Manager"
92                         onclick="selectTab('userConfig')">
93                 <? } ?>         
94         </td>
95         <td class="prefsToolbar" valign="middle" align="right"> 
96                 <input type="submit" onclick="gotoMain()" class="button" value="Return to main">
97         </td>
98         </tr>
99 </tr>
100         <td id="prefContent" class="prefContent" valign="top" colspan="2">
101
102                 <p>Loading, please wait...</p>
103
104         </td>
105 </tr>
106 <? if (get_pref($link, 'DISPLAY_FOOTER')) { ?>
107 <tr>
108         <td class="footer" colspan="2">
109                 <a href="http://tt-rss.spb.ru/">Tiny-Tiny RSS</a> v<?= VERSION ?> &copy; 2005 Andrew Dolgov
110                 <? if (WEB_DEMO_MODE) { ?>
111                 <br>Running in demo mode, some functionality is disabled.
112                 <? } ?>
113         </td>
114 </td>
115 <? } ?>
116 </table>
117
118 <? db_close($link); ?>
119
120 </body>
121 </html>