summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-26 09:07:58 +0300
committerAndrew Dolgov <[email protected]>2018-12-26 09:07:58 +0300
commit2bd51c48d8c418f4bdc0d48164cef15ec9eefc72 (patch)
tree45006bbaa61578e80dc2d44f92f7a0b202009008 /index.php
parente70d42237abcb5e130ee85e8e58f87b832290447 (diff)
remove lib/mobile_detect
Diffstat (limited to 'index.php')
-rw-r--r--index.php16
1 files changed, 0 insertions, 16 deletions
diff --git a/index.php b/index.php
index b98a5d6b0..9dabdb7e0 100644
--- a/index.php
+++ b/index.php
@@ -26,25 +26,9 @@
require_once "version.php";
require_once "config.php";
require_once "db-prefs.php";
- require_once "lib/Mobile_Detect.php";
-
- $mobile = new Mobile_Detect();
if (!init_plugins()) return;
- if (!$_REQUEST['mobile']) {
- if ($mobile->isTablet() && PluginHost::getInstance()->get_plugin("digest")) {
- header('Location: backend.php?op=digest');
- exit;
- } 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();
header('Content-Type: text/html; charset=utf-8');