X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=index.php;h=3b0962f02e20cac66cace1d782672757ce14852b;hb=e2b8c9273e09091c235959c25d8e4d8122aa6ca8;hp=d8b58407194d8288faece81398b161e96b6d52f9;hpb=eefaa2df381686f771396baae2d0ae71b345c2e7;p=tt-rss.git diff --git a/index.php b/index.php index d8b58407..3b0962f0 100644 --- a/index.php +++ b/index.php @@ -11,8 +11,8 @@ // we need a separate check here because functions.php might get parsed // incorrectly before 5.3 because of :: syntax. - if (version_compare(PHP_VERSION, '5.3.0', '<')) { - print "Fatal Error: PHP version 5.3.0 or newer required.\n"; + if (version_compare(PHP_VERSION, '5.6.0', '<')) { + print "Fatal Error: PHP version 5.6.0 or newer required. You're using " . PHP_VERSION . ".\n"; exit; } @@ -32,16 +32,14 @@ if (!init_plugins()) return; - global $pluginhost; - 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; } @@ -57,15 +55,20 @@ Tiny Tiny RSS + + + - - @@ -74,7 +77,7 @@