X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=prefs.php;h=9bf610a53ad1daa9508827184278c05fb3528b66;hb=1ffe3391f902c4baa984982f19e61a0e45de21ff;hp=9c59d6c4d6f651cc2fe1a54116b712a111e1bc33;hpb=96f19f11d741617b997b4533df50ff8a5b17f46b;p=tt-rss.git diff --git a/prefs.php b/prefs.php index 9c59d6c4..9bf610a5 100644 --- a/prefs.php +++ b/prefs.php @@ -1,7 +1,18 @@ Fatal Error: You forgot to copy + config.php-dist to config.php and edit it.\n"; + exit; + } + + require_once "autoload.php"; require_once "sessions.php"; require_once "functions.php"; require_once "sanity_check.php"; @@ -9,13 +20,9 @@ require_once "config.php"; require_once "db-prefs.php"; - $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); - - if (!init_connection($link)) return; + if (!init_plugins()) return; - login_sequence($link); - - no_cache_incantation(); + login_sequence(); header('Content-Type: text/html; charset=utf-8'); ?> @@ -23,12 +30,21 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <?php echo PAGE_TITLE ?> : <?php echo __("Preferences") ?> + Tiny Tiny RSS : <?php echo __("Preferences") ?> + + + - + @@ -38,8 +54,8 @@ "lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls", "lib/dojo/dojo.js", "lib/dijit/dijit.js", + "lib/CheckBoxTree.js", "lib/dojo/tt-rss-layer.js", - "localized_js.php", "errors.php?mode=js") as $jsfile) { echo javascript_tag($jsfile); @@ -50,16 +66,15 @@ get_plugins() as $n => $p) { + foreach (PluginHost::getInstance()->get_plugins() as $n => $p) { if (method_exists($p, "get_prefs_js")) { echo JShrink\Minifier::minify($p->get_prefs_js()); } } - print get_minified_js(array("functions", "deprecated", "prefs")); + print get_minified_js(array("functions", "deprecated", "prefs", "PrefFeedTree", "PrefFilterTree", "PrefLabelTree")); + init_js_translations(); ?> @@ -75,7 +90,7 @@ -
 
+
@@ -88,8 +103,6 @@
- - - -