X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=index.php;h=6a34be5e8022e7bfd9c0bd7d88277824d053dcce;hb=8ceea119a8287568439a2a9d167b333f74a47e21;hp=66e236dae28664e781243d8603f767b831d0a2fe;hpb=404e2e3603c852a3f82a21c14b8888005e2b3f99;p=tt-rss.git diff --git a/index.php b/index.php index 66e236da..6a34be5e 100644 --- a/index.php +++ b/index.php @@ -30,26 +30,22 @@ $mobile = new Mobile_Detect(); - $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); - - if (!init_plugins($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() && $pluginhost->get_plugin("mobile")) { + } else if ($mobile->isMobile() && PluginHost::getInstance()->get_plugin("mobile")) { header('Location: backend.php?op=mobile'); exit; - } else if ($mobile->isMobile() && $pluginhost->get_plugin("digest")) { + } else if ($mobile->isMobile() && PluginHost::getInstance()->get_plugin("digest")) { header('Location: backend.php?op=digest'); exit; } } - login_sequence($link); + login_sequence(); header('Content-Type: text/html; charset=utf-8'); @@ -65,18 +61,18 @@ - +