+ function is_appr()
+ {
+ return ($this->flags & USER_FLAG_TY_APPR);
+ }
+
+ function is_auth()
+ {
+ return ($this->flags & USER_FLAG_AUTH);
+ }
+
+ function is_cert()
+ {
+ return (($this->flags & USER_FLAG_AUTH) && ($this->flags & USER_FLAG_TY_CERT));
+ }
+
+ function is_empty()
+ {
+ return ($this->sess == "");
+ }
+
+ function is_active()
+ {
+ if ($this->sess != "" && !$this->the_end) // OK: is_active()
+ return TRUE;
+ return FALSE;
+ }
+
+ function flags_db_get($mask)
+ {
+ return ($this->flags_db & $mask);
+ }
+
+ function flags_db_set($flags_db, $mask)
+ {
+ $flags_db_old = $this->flags_db & (~$mask);
+ $this->flags_db = ($flags_db_old | ($flags_db & $mask));
+
+ return ($flags_db_old);
+ }
+
+ function flags_get($mask)
+ {
+ return ($this->flags & $mask);
+ }
+