/? if(preg_match("/(iphone|samsung|lgtel|mobile)/i",$_SERVER[HTTP_USER_AGENT])){ @session_start(); if($_GET['md'] == 'pc'){ $_SESSION['md'] = 'pc'; } if($_SESSION['md'] != 'pc'){ @header("Location:/mobile/"); } } @header("Location:/mobile/"); ?>