From 310fa2ddef16793656315244c1c68fc6008a79a4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 29 Jun 2012 13:11:39 +0400 Subject: implement search in pref-filters --- index.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 1ecf1f9f5..53901ec6e 100644 --- a/index.php +++ b/index.php @@ -18,9 +18,14 @@ $mobile = new Mobile_Detect(); - if ($mobile->isMobile() && !$mobile->isTablet() && !$_REQUEST['mobile']) { - header('Location: mobile/index.php'); - exit; + if (!$_REQUEST['mobile']) { + if ($mobile->isTablet()) { + header('Location: digest.php'); + exit; + } else if ($mobile->isMobile()) { + header('Location: mobile/index.php'); + exit; + } } $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); -- cgit v1.2.3