Browse Source

remove lib/mobile_detect

Andrew Dolgov 9 months ago
parent
commit
2bd51c48d8
2 changed files with 0 additions and 1474 deletions
  1. 0 16
      index.php
  2. 0 1458
      lib/Mobile_Detect.php

+ 0 - 16
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');

File diff suppressed because it is too large
+ 0 - 1458
lib/Mobile_Detect.php