/** * set_enabled * Changes the value of enabled * @param bool|null $value */ public static function set_enabled($value = null) { if (is_null($value)) { self::$enabled = self::$enabled ? false : true; } else { self::$enabled = make_bool($value); } $_SESSION['art_enabled'] = self::$enabled; //setcookie('art_enabled', self::$enabled, time() + 31536000, "/"); }