session_start(); include ('../init.php'); include ('../func/fn_common.php'); checkUserSession(); loadLanguage($gsValues['LANGUAGE']); if (isset($gsValues['SERVER_ENABLED'])) { if ($gsValues['SERVER_ENABLED'] == 'false') { echo 'Access to this server currently disabled.'; die; } } // 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'; } } // push notifications cookie $expire = time() + 2592000; setcookie('push_notify_identifier', '', $expire, '/'); setcookie('push_notify_mobile', 'false', $expire, '/'); setcookie('push_notify_mobile_interval', '', $expire, '/'); ?>