jsdisabled = 1;
else
$this->jsdisabled = 0;
if(intval($_COOKIE['jsdisabled']))
$this->jsdisabled = 1;
else
$this->jsdisabled = 0;
if(! $this->jsdisabled) {
$page = urlencode(\App::$query_string);
if($test) {
logger('page=' . $page);
if($_COOKIE['jsdisabled'] == 0) {
\App::$page['htmlhead'] .= "\r\n" . '' . "\r\n";
/* emulate JS cookie if cookies are not accepted */
if ($_GET['jsdisabled'] == 0) {
$_COOKIE['jsdisabled'] = 0;
}
}
}
else {
\App::$page['htmlhead'] .= "\r\n" . '' . "\r\n";
}
}
}
function disabled() {
return self::$jsdisabled;
}
}