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