public function __construct($rs = false) { if ($rs) { $this->id = encrypt(strdecode($rs["id"])); $this->username = strdecode($rs["username"]); $this->email = strdecode($rs["email"]); $this->nivel = strdecode($rs["nivel"]); } }
function htmlchars($str, $decode = true) { if (!$decode) { $str = utf8_encode($str); } return htmlspecialchars(strdecode($str, $decode)); }