Permalink
Browse files

Added mobile browser detection, to automatically redirect mobile brow…

…sers to the mobile version.
  • Loading branch information...
1 parent e5f48ec commit 2137f9d850bb715aac88ea539dff979e22b9db9b @Smenus Smenus committed Nov 25, 2010
Showing with 188 additions and 0 deletions.
  1. +10 −0 index.html → index.php
  2. +178 −0 m/mobile_device_detect.php
View
@@ -1,9 +1,19 @@
+<?php
+ // Redirect if on a mobile browser
+ require_once "m/mobile_device_detect.php";
+ if( mobile_device_detect(true,true,true,true,true,true,true,false,false) ) {
+ header('Location: m/');
+ exit();
+ }
+?>
+
<html>
<head>
<title>Media Center</title>
<link rel="shortcut icon" href="favicon.ico" />
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
</head>
+
<frameset rows='38, *' frameborder=0 border=0 framespacing=0>
<frame src=nav.php name=nav noresize scrolling='no'>
<frame src=mediafrontpage.php name=main noresize>
Oops, something went wrong.

0 comments on commit 2137f9d

Please sign in to comment.