redirect mobile. Ticket #3364.
This commit is contained in:
parent
02ead6cb1d
commit
a75e416b8c
|
@ -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";
|
||||||
|
|
Loading…
Reference in New Issue