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