]>
Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | set_include_path(get_include_path() . PATH_SEPARATOR . "include"); | |
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 | if (!init_connection($link)) return; | |
14 | ||
15 | login_sequence($link); | |
16 | ||
17 | $dt_add = time(); | |
18 | ||
19 | no_cache_incantation(); | |
20 | ||
21 | header('Content-Type: text/html; charset=utf-8'); | |
22 | ||
23 | ?> | |
24 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
25 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
26 | <html> | |
27 | <head> | |
28 | <title>Tiny Tiny RSS : Preferences</title> | |
29 | <link rel="stylesheet" type="text/css" href="lib/dijit/themes/claro/claro.css"/> | |
30 | <link rel="stylesheet" type="text/css" href="tt-rss.css?<?php echo $dt_add ?>"/> | |
31 | ||
32 | <?php print_theme_includes($link) ?> | |
33 | <?php print_user_stylesheet($link) ?> | |
34 | ||
35 | <link rel="shortcut icon" type="image/png" href="images/favicon.png"/> | |
36 | ||
37 | <script type="text/javascript" src="lib/prototype.js"></script> | |
38 | <script type="text/javascript" src="lib/position.js"></script> | |
39 | <script type="text/javascript" src="lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls"></script> | |
40 | <script type="text/javascript" src="lib/dojo/dojo.js"></script> | |
41 | <script type="text/javascript" src="lib/dijit/dijit.js"></script> | |
42 | <script type="text/javascript" src="lib/dojo/tt-rss-layer.js"></script> | |
43 | ||
44 | <script type="text/javascript" charset="utf-8" src="localized_js.php?<?php echo $dt_add ?>"></script> | |
45 | ||
46 | <script type="text/javascript" charset="utf-8" src="js/functions.js?<?php echo $dt_add ?>"></script> | |
47 | <script type="text/javascript" charset="utf-8" src="js/deprecated.js?<?php echo $dt_add ?>"></script> | |
48 | <script type="text/javascript" charset="utf-8" src="js/prefs.js?<?php echo $dt_add ?>"></script> | |
49 | ||
50 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
51 | ||
52 | <script type="text/javascript"> | |
53 | Event.observe(window, 'load', function() { | |
54 | init(); | |
55 | }); | |
56 | </script> | |
57 | ||
58 | </head> | |
59 | ||
60 | <body id="ttrssPrefs" class="claro"> | |
61 | ||
62 | <div id="notify" class="notify"><span id="notify_body"> </span></div> | |
63 | <div id="cmdline" style="display : none"></div> | |
64 | ||
65 | <div id="overlay"> | |
66 | <div id="overlay_inner"> | |
67 | <div class="insensitive"><?php echo __("Loading, please wait...") ?></div> | |
68 | <div dojoType="dijit.ProgressBar" places="0" style="width : 300px" id="loading_bar" | |
69 | progress="0" maximum="100"> | |
70 | </div> | |
71 | <noscript><br/><?php print_error('Javascript is disabled. Please enable it.') ?></noscript> | |
72 | </div> | |
73 | </div> | |
74 | ||
75 | <div id="hotkey_help_overlay" style="display : none" onclick="Element.hide(this)"> | |
76 | <?php include "help/4.php" ?> | |
77 | </div> | |
78 | ||
79 | <img id="piggie" src="images/piggie.png" style="display : none" alt="piggie"/> | |
80 | ||
81 | <div id="header" dojoType="dijit.layout.ContentPane" region="top"> | |
82 | <a href='#' onclick="Effect.Appear('hotkey_help_overlay', {duration: 0.3})"><?php echo __("Keyboard shortcuts") ?></a> | | |
83 | <a href="#" onclick="gotoMain()"><?php echo __('Exit preferences') ?></a> | |
84 | </div> | |
85 | ||
86 | <div id="main" dojoType="dijit.layout.BorderContainer"> | |
87 | ||
88 | <div dojoType="dijit.layout.TabContainer" region="center" id="pref-tabs"> | |
89 | <div id="genConfigTab" dojoType="dijit.layout.ContentPane" | |
90 | href="backend.php?op=pref-prefs" | |
91 | title="<?php echo __('Preferences') ?>"></div> | |
92 | <div id="feedConfigTab" dojoType="dijit.layout.ContentPane" | |
93 | href="backend.php?op=pref-feeds" | |
94 | title="<?php echo __('Feeds') ?>"></div> | |
95 | <div id="filterConfigTab" dojoType="dijit.layout.ContentPane" | |
96 | href="backend.php?op=pref-filters" | |
97 | title="<?php echo __('Filters') ?>"></div> | |
98 | <div id="labelConfigTab" dojoType="dijit.layout.ContentPane" | |
99 | href="backend.php?op=pref-labels" | |
100 | title="<?php echo __('Labels') ?>"></div> | |
101 | <?php if ($_SESSION["access_level"] >= 10) { ?> | |
102 | <div id="userConfigTab" dojoType="dijit.layout.ContentPane" | |
103 | href="backend.php?op=pref-users" | |
104 | title="<?php echo __('Users') ?>"></div> | |
105 | <?php } ?> | |
106 | <?php if ($_SESSION["access_level"] >= 10 || SINGLE_USER_MODE) { ?> | |
107 | <div id="instanceConfigTab" dojoType="dijit.layout.ContentPane" | |
108 | href="backend.php?op=pref-instances" | |
109 | title="<?php echo __('Linked') ?>"></div> | |
110 | <?php } ?> | |
111 | ||
112 | </div> | |
113 | ||
114 | <div id="footer" dojoType="dijit.layout.ContentPane" region="bottom"> | |
115 | <a class="insensitive" target="_blank" href="http://tt-rss.org/"> | |
116 | Tiny Tiny RSS</a> © 2005-<?php echo date('Y') ?> | |
117 | <a class="insensitive" target="_blank" | |
118 | href="http://fakecake.org/">Andrew Dolgov</a> | |
119 | </div> <!-- footer --> | |
120 | ||
121 | </div> | |
122 | ||
123 | <?php db_close($link); ?> | |
124 | ||
125 | </body> | |
126 | </html> |