X-Git-Url: https://git.wh0rd.org/?p=tt-rss.git;a=blobdiff_plain;f=index.php;h=9be7d5ccc35f25197911e50b289cbafe7ce31f12;hp=d8b58407194d8288faece81398b161e96b6d52f9;hb=HEAD;hpb=eefaa2df381686f771396baae2d0ae71b345c2e7 diff --git a/index.php b/index.php index d8b58407..9be7d5cc 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 @@