if (preg_match("/data\/cust/", $_SERVER["DOCUMENT_ROOT"])) include("/system/gizam.jp/common/include/Mobile_module1.php"); else include("/system/gizam.jp/common/include/Mobile_module.php"); $mobile = detect_device(); $device = $mobile["device"]; if ($device == "iPhone") { $device_profile = &getMobileProfile($device); $b_width = $device_profile["b_width"]; $b_height = $device_profile["b_height"]; }else{ $b_width = 360; $b_height = 480; } ?>