]>
Commit | Line | Data |
---|---|---|
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 | <html> | |
25 | <head> | |
26 | <title>Tiny Tiny RSS : Preferences</title> | |
27 | <link rel="stylesheet" type="text/css" href="tt-rss.css?<?php echo $dt_add ?>"/> | |
28 | ||
29 | <?php $user_theme = $_SESSION["theme"]; | |
30 | if ($user_theme) { ?> | |
31 | <link rel="stylesheet" type="text/css" href="themes/<?php echo $user_theme ?>/theme.css"/> | |
32 | <?php } ?> | |
33 | ||
34 | <?php if ($user_theme) { $theme_image_path = "themes/$user_theme/"; } ?> | |
35 | ||
36 | <?php $user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?> | |
37 | <?php if ($user_css_url) { ?> | |
38 | <link type="text/css" href="<?php echo $user_css_url ?>"/> | |
39 | <?php } ?> | |
40 | ||
41 | <link rel="shortcut icon" type="image/png" href="images/favicon.png"/> | |
42 | ||
43 | <script type="text/javascript" src="lib/prototype.js"></script> | |
44 | <script type="text/javascript" src="lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls"></script> | |
45 | ||
46 | <script type="text/javascript" charset="utf-8" src="localized_js.php?<?php echo $dt_add ?>"></script> | |
47 | ||
48 | <script type="text/javascript" charset="utf-8" src="functions.js?<?php echo $dt_add ?>"></script> | |
49 | <script type="text/javascript" charset="utf-8" src="prefs.js?<?php echo $dt_add ?>"></script> | |
50 | ||
51 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
52 | ||
53 | <script type="text/javascript"> | |
54 | Event.observe(window, 'load', function() { | |
55 | init(); | |
56 | }); | |
57 | </script> | |
58 | ||
59 | </head> | |
60 | ||
61 | <body id="ttrssPrefs"> | |
62 | ||
63 | <div id="overlay"> | |
64 | <div id="overlay_inner"> | |
65 | <?php echo __("Loading, please wait...") ?> | |
66 | ||
67 | <div id="l_progress_o"> | |
68 | <div id="l_progress_i"></div> | |
69 | </div> | |
70 | ||
71 | <noscript> | |
72 | <p><?php print_error(__("Your browser doesn't support Javascript, which is required | |
73 | for this application to function properly. Please check your | |
74 | browser settings.")) ?></p> | |
75 | </noscript> | |
76 | </div> | |
77 | </div> | |
78 | ||
79 | <div id="hotkey_help_overlay" style="display : none" onclick="Element.hide(this)"> | |
80 | <?php rounded_table_start("hho"); ?> | |
81 | <?php include "help/4.php" ?> | |
82 | <?php rounded_table_end(); ?> | |
83 | </div> | |
84 | ||
85 | <img id="piggie" src="images/piggie.png" style="display : none" alt="piggie"/> | |
86 | ||
87 | <ul id="debug_output" style='display : none'><li> </li></ul> | |
88 | ||
89 | <div id="prefHeader"> | |
90 | <div class="topLinks"> | |
91 | <?php if (!SINGLE_USER_MODE) { ?> | |
92 | <?php echo __('Hello,') ?> <b><?php echo $_SESSION["name"] ?></b> | | |
93 | <?php } ?> | |
94 | <a href="#" onclick="gotoMain()"><?php echo __('Exit preferences') ?></a> | |
95 | <?php if (!SINGLE_USER_MODE) { ?> | |
96 | | <a href="logout.php"><?php echo __('Logout') ?></a> | |
97 | <?php } ?> | |
98 | </div> | |
99 | <img src="<?php echo $theme_image_path ?>images/ttrss_logo.png" alt="Tiny Tiny RSS"/> | |
100 | </div> | |
101 | ||
102 | <div id="prefTabs"> | |
103 | <div class='prefKbdHelp'> | |
104 | <img src="images/small_question.png" alt="?"/> <a href='#' onclick="Effect.Appear('hotkey_help_overlay', {duration: 0.3})"><?php echo __("Keyboard shortcuts") ?></a> | |
105 | </div> | |
106 | ||
107 | <div class="firstTab"> </div> | |
108 | ||
109 | <div id="genConfigTab" class="prefsTab" | |
110 | onclick="selectTab('genConfig')"><?php echo __('Preferences') ?></div> | |
111 | <div id="feedConfigTab" class="prefsTab" | |
112 | onclick="selectTab('feedConfig')"><?php echo __('Feeds') ?></div> | |
113 | <div id="filterConfigTab" class="prefsTab" | |
114 | onclick="selectTab('filterConfig')"><?php echo __('Filters') ?></div> | |
115 | <div id="labelConfigTab" class="prefsTab" | |
116 | onclick="selectTab('labelConfig')"><?php echo __('Labels') ?></div> | |
117 | <?php if ($_SESSION["access_level"] >= 10) { ?> | |
118 | <div id="userConfigTab" class="prefsTab" | |
119 | onclick="selectTab('userConfig')"><?php echo __('Users') ?></div> | |
120 | <?php } ?> | |
121 | </div> | |
122 | ||
123 | <div id="prefContentOuter"> | |
124 | <div id="prefContent"> | |
125 | <p><?php echo __('Loading, please wait...') ?></p> | |
126 | <noscript> | |
127 | <div class="error"> | |
128 | <?php echo __("Your browser doesn't support Javascript, which is required | |
129 | for this application to function properly. Please check your | |
130 | browser settings.") ?></div> | |
131 | </noscript> | |
132 | </div> | |
133 | </div> | |
134 | ||
135 | <div id="notify" class="notify"><span id="notify_body"> </span></div> | |
136 | <div id="infoBoxShadow"><div id="infoBox">BAH</div></div> | |
137 | ||
138 | <div id="cmdline" style="display : none"></div> | |
139 | ||
140 | <div id="errorBoxShadow" style="display : none"> | |
141 | <div id="errorBox"> | |
142 | <div id="xebTitle"><?php echo __('Fatal Exception') ?></div><div id="xebContent"> </div> | |
143 | <div id="xebBtn" align='center'> | |
144 | <button onclick="closeErrorBox()"><?php echo __('Close this window') ?></button> | |
145 | </div> | |
146 | </div> | |
147 | </div> | |
148 | ||
149 | <div id="dialog_overlay" style="display : none"> </div> | |
150 | ||
151 | <div id="prefFooter"> | |
152 | <?php if (defined('_DEBUG_USER_SWITCH')) { ?> | |
153 | <select id="userSwitch" onchange="userSwitch()"> | |
154 | <?php | |
155 | foreach (array('admin', 'fox', 'test') as $u) { | |
156 | $op_sel = ($u == $_SESSION["name"]) ? "selected" : ""; | |
157 | print "<option $op_sel>$u</option>"; | |
158 | } | |
159 | ?> | |
160 | </select> | |
161 | <?php } ?> | |
162 | <a href="http://tt-rss.org/">Tiny Tiny RSS</a> | |
163 | <?php if (!defined('HIDE_VERSION')) { ?> | |
164 | v<?php echo VERSION ?> | |
165 | <?php } ?> | |
166 | © 2005–2010 <a href="http://bah.org.ru/">Andrew Dolgov</a> | |
167 | </div> | |
168 | ||
169 | <?php db_close($link); ?> | |
170 | ||
171 | </body> | |
172 | </html> |