session_start(); include ('../init.php'); include ('../func/fn_common.php'); checkUserSession(); loadLanguage($gsValues['LANGUAGE']); // set mobile app cookie if (isset($_GET['app'])) { $expire = time() + 2592000; setcookie('app', $_GET['app'], $expire, '/'); $_SESSION['app'] = $_GET['app']; } else { // get mobile app cookie if (isset($_COOKIE['app'])) { $_SESSION['app'] = $_COOKIE['app']; } else { $_SESSION['app'] = 'false'; } } ?>