diff options
| author | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2012-06-29 13:11:39 +0400 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2012-06-29 13:11:39 +0400 |
| commit | 310fa2ddef16793656315244c1c68fc6008a79a4 (patch) | |
| tree | 21f9df9960986714a874436af164c511c69485a8 /index.php | |
| parent | 955d4f82eaa4bef245597ae9e95e8b1d2880af41 (diff) | |
implement search in pref-filters
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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); |