<?php 

if (    strstr($_SERVER['HTTP_USER_AGENT'], 'Mobile') &&
        (
            !isset($_COOKIE['mobile_check']) ||
            $_COOKIE['mobile_check'] == '' 
        )
   ) {
    include '../m/view.php';
} else {
    include 'pc_view.php';
}
?>