Ejemplo n.º 1
0
 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"]);
     }
 }
Ejemplo n.º 2
0
function htmlchars($str, $decode = true)
{
    if (!$decode) {
        $str = utf8_encode($str);
    }
    return htmlspecialchars(strdecode($str, $decode));
}