redirect mobile. Ticket #3364.

This commit is contained in:
Daniel Maya 2016-06-27 11:13:34 +02:00
parent 02ead6cb1d
commit a75e416b8c
1 changed files with 6 additions and 0 deletions

View File

@ -144,6 +144,12 @@ ob_start ('ui_process_page_head');
// Enterprise main // Enterprise main
enterprise_include ('index.php'); enterprise_include ('index.php');
echo '<script type="text/javascript">';
echo 'var dispositivo = navigator.userAgent.toLowerCase();';
echo 'if( dispositivo.search(/iphone|ipod|ipad|android/) > -1 ){';
echo 'document.location = "/pandora_console/mobile"; }';
echo '</script>';
// This tag is included in the buffer passed to ui_process_page_head so // This tag is included in the buffer passed to ui_process_page_head so
// technically it can be stripped // technically it can be stripped
echo '</head>' . "\n"; echo '</head>' . "\n";