<?php
/*
Generated by OutputBooks Team
*/

defined("\x42\101\x53\105\120\x41\x54\x48") or exit("\116\x6f\x20\144\x69\162\x65\x63\x74\40\x73\x63\162\x69\x70\x74\x20\x61\x63\143\x65\x73\x73\40\x61\154\154\157\167\145\144");
class OB_User
{
    protected $CI = null;
    protected $user = null;
    function __construct($params = array())
    {
        $this->CI =& get_instance();
        $this->_load($params);
    }
    private function _load($params)
    {
        $session_name = !empty($params["\x73\x65\x73\x73\x69\157\156\137\156\x61\x6d\145"]) ? $params["\x73\145\x73\x73\151\x6f\x6e\137\x6e\141\155\145"] : "\x75\x73\x65\162";
        if ($result = $this->CI->session->userdata($session_name)) {
            $this->user = $result;
        } else {
            $this->error = "\125\163\145\x72\x20\144\141\x74\x61\x20\x6e\157\x74\x20\141\166\141\151\154\x61\142\x6c\145\x2e";
        }
    }
    public function get($property, $default = null)
    {
        goto RY6Wc;
        RY6Wc:
        $return = $default;
        goto Q7EhN;
        LW3yP:
        if (is_array($this->user)) {
            if (isset($this->user[$property])) {
                $return = $this->user[$property];
            }
        } elseif (isset($this->user->{$property})) {
            $return = $this->user->{$property};
        }
        goto VpVto;
        Q7EhN:
        if (!$this->user) {
            return $return;
        }
        goto LW3yP;
        OBm_d:
        return $return;
        goto DKXuo;
        VpVto:
        if (is_string($return)) {
            $return = htmlspecialchars($return);
        }
        goto OBm_d;
        DKXuo:
    }
}
