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