]>
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 | <!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 : <?php echo __("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"> | |
47 | <?php | |
48 | require 'lib/jsmin.php'; | |
49 | ||
50 | global $pluginhost; | |
51 | ||
52 | foreach ($pluginhost->get_plugins() as $n => $p) { | |
53 | if (method_exists($p, "get_prefs_js")) { | |
54 | echo JSMin::minify($p->get_prefs_js()); | |
55 | } | |
56 | } | |
57 | ||
58 | foreach (array("functions", "deprecated", "prefs") as $js) { | |
59 | if (!isset($_GET['debug'])) { | |
60 | echo JSMin::minify(file_get_contents("js/$js.js")); | |
61 | } else { | |
62 | echo file_get_contents("js/$js.js"); | |
63 | } | |
64 | } | |
65 | ?> | |
66 | </script> | |
67 | ||
68 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
69 | ||
70 | <script type="text/javascript"> | |
71 | Event.observe(window, 'load', function() { | |
72 | init(); | |
73 | }); | |
74 | </script> | |
75 | ||
76 | </head> | |
77 | ||
78 | <body id="ttrssPrefs" class="claro"> | |
79 | ||
80 | <div id="notify" class="notify"><span id="notify_body"> </span></div> | |
81 | <div id="cmdline" style="display : none"></div> | |
82 | ||
83 | <div id="overlay"> | |
84 | <div id="overlay_inner"> | |
85 | <div class="insensitive"><?php echo __("Loading, please wait...") ?></div> | |
86 | <div dojoType="dijit.ProgressBar" places="0" style="width : 300px" id="loading_bar" | |
87 | progress="0" maximum="100"> | |
88 | </div> | |
89 | <noscript><br/><?php print_error('Javascript is disabled. Please enable it.') ?></noscript> | |
90 | </div> | |
91 | </div> | |
92 | ||
93 | <div id="hotkey_help_overlay" style="display : none" onclick="Element.hide(this)"></div> | |
94 | ||
95 | <img id="piggie" src="images/piggie.png" style="display : none" alt="piggie"/> | |
96 | ||
97 | <div id="header" dojoType="dijit.layout.ContentPane" region="top"> | |
98 | <a href='#' onclick="showHelp()"><?php echo __("Keyboard shortcuts") ?></a> | | |
99 | <a href="#" onclick="gotoMain()"><?php echo __('Exit preferences') ?></a> | |
100 | </div> | |
101 | ||
102 | <div id="main" dojoType="dijit.layout.BorderContainer"> | |
103 | ||
104 | <div dojoType="dijit.layout.TabContainer" region="center" id="pref-tabs"> | |
105 | <div id="genConfigTab" dojoType="dijit.layout.ContentPane" | |
106 | href="backend.php?op=pref-prefs" | |
107 | title="<?php echo __('Preferences') ?>"></div> | |
108 | <div id="feedConfigTab" dojoType="dijit.layout.ContentPane" | |
109 | href="backend.php?op=pref-feeds" | |
110 | title="<?php echo __('Feeds') ?>"></div> | |
111 | <div id="filterConfigTab" dojoType="dijit.layout.ContentPane" | |
112 | href="backend.php?op=pref-filters" | |
113 | title="<?php echo __('Filters') ?>"></div> | |
114 | <div id="labelConfigTab" dojoType="dijit.layout.ContentPane" | |
115 | href="backend.php?op=pref-labels" | |
116 | title="<?php echo __('Labels') ?>"></div> | |
117 | <?php if ($_SESSION["access_level"] >= 10) { ?> | |
118 | <div id="userConfigTab" dojoType="dijit.layout.ContentPane" | |
119 | href="backend.php?op=pref-users" | |
120 | title="<?php echo __('Users') ?>"></div> | |
121 | <?php } ?> | |
122 | <?php | |
123 | $pluginhost->run_hooks($pluginhost::HOOK_PREFS_TABS, | |
124 | "hook_prefs_tabs", false); | |
125 | ?> | |
126 | </div> | |
127 | ||
128 | <div id="footer" dojoType="dijit.layout.ContentPane" region="bottom"> | |
129 | <a class="insensitive" target="_blank" href="http://tt-rss.org/"> | |
130 | Tiny Tiny RSS</a> © 2005-<?php echo date('Y') ?> | |
131 | <a class="insensitive" target="_blank" | |
132 | href="http://fakecake.org/">Andrew Dolgov</a> | |
133 | </div> <!-- footer --> | |
134 | ||
135 | </div> | |
136 | ||
137 | <?php db_close($link); ?> | |
138 | ||
139 | </body> | |
140 | </html> |