X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=index.php;h=cb95b96f0219afdc4fe7e359e3a0a41597588611;hb=6322ac79a020ab584d412d782d62b2ee77d7c6cf;hp=d92c2fc1ce3770c071b02103bee9eca5d8b97e19;hpb=a4d4bceb978e828aa21950c8eb2b1bd2be79726b;p=tt-rss.git diff --git a/index.php b/index.php index d92c2fc1..cb95b96f 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"; @@ -27,7 +32,7 @@ $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); - if (!init_connection($link)) return; + if (!init_plugins()) return; global $pluginhost; @@ -35,13 +40,16 @@ if ($mobile->isTablet() && $pluginhost->get_plugin("digest")) { header('Location: backend.php?op=digest'); exit; + } else if ($mobile->isMobile() && $pluginhost->get_plugin("mobile")) { + header('Location: backend.php?op=mobile'); + exit; + } else if ($mobile->isMobile() && $pluginhost->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'); @@ -56,7 +64,15 @@ - + + +