X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=index.php;h=79d4ad58df25010fba89e39331c20c6c8a90e4a3;hb=9b1e591854b3b1baf7cced3757edefcf0f78e85d;hp=4cbd756a39af09de856c00cd7c934485ef47c2f7;hpb=d1e0f35c3e11b44fb8ed0e5af58fa3b71873c4c7;p=tt-rss.git diff --git a/index.php b/index.php index 4cbd756a..79d4ad58 100644 --- a/index.php +++ b/index.php @@ -1,4 +1,8 @@ Fatal Error: You forgot to copy config.php-dist to config.php and edit it.\n"; @@ -15,6 +19,7 @@ set_include_path(dirname(__FILE__) ."/include" . PATH_SEPARATOR . get_include_path()); + require_once "autoload.php"; require_once "sessions.php"; require_once "functions.php"; require_once "sanity_check.php"; @@ -25,26 +30,22 @@ $mobile = new Mobile_Detect(); - $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); - - if (!init_connection($link)) return; - - global $pluginhost; + if (!init_plugins()) return; if (!$_REQUEST['mobile']) { - if ($mobile->isTablet() && $pluginhost->get_plugin("digest")) { + if ($mobile->isTablet() && PluginHost::getInstance()->get_plugin("digest")) { header('Location: backend.php?op=digest'); exit; - } else if ($mobile->isMobile()) { - header('Location: mobile/index.php'); + } else if ($mobile->isMobile() && PluginHost::getInstance()->get_plugin("mobile")) { + header('Location: backend.php?op=mobile'); + exit; + } else if ($mobile->isMobile() && PluginHost::getInstance()->get_plugin("digest")) { + header('Location: backend.php?op=digest'); exit; } } - - login_sequence($link); - - no_cache_incantation(); + login_sequence(); header('Content-Type: text/html; charset=utf-8'); @@ -55,15 +56,28 @@ Tiny Tiny RSS + + - - + + + - + + @@ -125,21 +138,8 @@ - - -
 
+ -
@@ -157,11 +157,15 @@
+
+ +
+
- - - - +
+ +
+
+ +
+
+ +
+
+ +
+
+
+ get_hooks(PluginHost::HOOK_TOOLBAR_BUTTON) as $p) { + echo $p->hook_toolbar_button(); + } + ?> +
- -