$_REQUEST['fctOrg'] = $SITE['fctOrgBackup']; # $_REQUEST['fctContent']= $SITE['fctContentBackup']; $cookie = $cookieName . "lang"; wsSetcookie($cookie, $SITE['langBackup'], time() + 2); // cookie expires in 2 seconds to get rid of the other ones $cookie = $cookieName . "menu"; wsSetcookie($cookie, $SITE['menuPlaceBackup'], time() + 2); $cookie = $cookieName . "mood"; wsSetcookie($cookie, $SITE['colorBackup'], time() + 2); $cookie = $cookieName . "hdrSelect"; wsSetcookie($cookie, $SITE['headerBackup'], time() + 2); $cookie = $cookieName . "choice"; wsSetcookie($cookie, $SITE['noChoiceBackup'], time() + 2); $cookie = $cookieName . "uom"; wsSetcookie($cookie, 'x|x|x|x', time() + 2); $cookie = $cookieName . 'fctOrg'; wsSetcookie($cookie, $SITE['fctOrgBackup'], time() + 2); # $cookie = $cookieName.'fctContent'; # wsSetcookie($cookie, $SITE['fctContentBackup'], time()+2 ); $cookie = $cookieName . "allowed"; wsSetcookie($cookie, 'N', time() + 2); } function wsSetcookie($cookie, $doSomething, $time) { global $cookieAllowed; if ($cookieAllowed == true) { setcookie($cookie, $doSomething, $time); // cookie expires in 1 hour } return; }
break; } return $return; } # if (!isset($_COOKIE[$cookie])) { // mobile user was not here last hour or so $mobile = ws_check_mobi($which_script); if ($mobile) { // so this is a mobile user if (isset($_REQUEST['pcSite']) || isset($_SESSION['pcSite'])) { $mobi = false; // mobile user pressed "I want the main site" button $cookieAllowed = true; // if users returns in "60" min, the normal site will be used wsSetcookie($cookie, "skip", time() + $skip_time); } elseif (!isset($_REQUEST['mobi'])) { // is mobile user but did not request a mobile page $mobi = 10; $pathString .= '<!-- module ws_check_mobi.php (' . __LINE__ . '): loading mobi_site_start.php -->' . PHP_EOL; include $mobi_site_start; exit; // user goes to mobile site, exit processing for main site. } } } if (isset($_REQUEST['p'])) { // the page a pc user wants to go to $pnr = trim($_REQUEST['p']); if ($pnr == $mobi_link) { // does he request to go mobile,