erstelle eine designswitch.php
<?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
<!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

