erstelle eine designswitch.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | <?php defined ( 'main' ) or die ( 'no direct access' ); $designformobile = 'mobil' ; $designstandard = $allgAr [ 'gfx' ]; //-----------------------------------------------------------| function check_mobile() { $agents = array ( 'Windows CE' , 'Pocket' , 'Mobile' , 'Portable' , 'Smartphone' , 'SDA' , 'PDA' , 'Handheld' , 'Symbian' , 'WAP' , 'Palm' , 'Avantgo' , 'cHTML' , 'BlackBerry' , 'Opera Mini' , 'Nokia' , 'Vodafone' , 'T-Mobile' , 'Android' , 'PSP' , 'LG' , 'LGE' ); // Prüfen der Browserkennung for ( $i =0; $i < count ( $agents ); $i ++) { if (isset( $_SERVER [ "HTTP_USER_AGENT" ]) && strpos ( $_SERVER [ "HTTP_USER_AGENT" ], $agents [ $i ]) !== false) return true; } return false; } if (check_mobile() == true){ if ( $_SESSION [ 'authgfx' ] != $designformobile ){ $_SESSION [ 'authgfx' ] = $designformobile ; wd ( '' , '' , 0 ); } } else { if ( $_SESSION [ 'authgfx' ] != $designstandard ){ $_SESSION [ 'authgfx' ] = $designstandard ; wd ( '' , '' , 0 ); } } ?> |
lade sie auf ordner : /include/boxes
erstelle eine mobil.htm
1 2 3 4 5 6 7 8 9 10 11 | <! DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> < html > < head > < meta content = "text/html; charset=ISO-8859-1" http-equiv = "content-type" > < title >mobil</ title > </ head > < body > {_boxes_designswitch} </ body > </ html > |
lade sie in dein design ordner
und als letztes erstelle ein mobiles design im ordner : /include/designs/mobil
Fertig !!!!
ach ja noch ein vermerk in die design.ini
?mobil = "mobil.htm"
kannst auch versuchen ohne ?
verwendete ilch Version: 1.1 O
betroffene Homepage: facecomnews.de.to