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