Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /* Generated by OutputBooks Team */ defined("\102\101\x53\105\120\x41\124\110"..

Decoded Output download

<?php 
/* 
Generated by OutputBooks Team 
*/ 
 
defined("BASEPATH") or exit("No direct script access allowed"); 
class User extends MY_Controller 
{ 
    public function __construct() 
    { 
        goto YfoT9; 
        rya6h: 
        $this->load->helper("form"); 
        goto Q3ljP; 
        Q3ljP: 
        $this->load->library("form_validation"); 
        goto YQcqi; 
        CAEzI: 
        $this->load->helper("cookie"); 
        goto kmCq9; 
        YQcqi: 
        $this->load->model("users"); 
        goto CAEzI; 
        YfoT9: 
        parent::__construct(); 
        goto rya6h; 
        kmCq9: 
    } 
    public function index() 
    { 
        $this->load->page("home"); 
    } 
    public function authorized() 
    { 
        goto LsI2l; 
        ncsSy: 
        if (get_user_data("isAdmin") && !empty($data["approve_pin"])) { 
            $this->form_validation->set_rules("approve_pin", "Pin", "trim|required|min_length[4]"); 
            if ($this->form_validation->run()) { 
                $auth_device = $this->users->save_device($data); 
            } 
        } 
        goto qVlQx; 
        eFE02: 
        if (!$auth_device && get_company("isDeviceApprove", true)) { 
            goto DZPhC; 
            DZPhC: 
            $this->session->set_flashdata("error", $this->users->message); 
            goto hFns0; 
            hFns0: 
            $this->load->page("authorized"); 
            goto ldXTW; 
            ldXTW: 
            return; 
            goto l6n7R; 
            l6n7R: 
        } 
        goto FwJ4M; 
        qGT0P: 
        $data = $this->input->post(); 
        goto ncsSy; 
        FwJ4M: 
        redirect("home"); 
        goto eVMen; 
        qVlQx: 
        if ($this->input->is_ajax_request()) { 
            goto ULoe1; 
            OU6BY: 
            return $auth_device; 
            goto fkNgn; 
            AnRQu: 
            $this->response->write(); 
            goto OU6BY; 
            ULoe1: 
            if ($auth_device) { 
                $this->response->success(); 
            } else { 
                $this->response->error($this->users->message); 
            } 
            goto AnRQu; 
            fkNgn: 
        } 
        goto eFE02; 
        LsI2l: 
        $auth_device = false; 
        goto qGT0P; 
        eVMen: 
    } 
    public function _remap($method, $params = array()) 
    { 
        goto pgqS6; 
        qX1hQ: 
        if (!isCloud() && in_array($method, $cloudOnlyFns)) { 
            redirect(site_url("home")); 
            return; 
        } 
        goto PTVzW; 
        pgqS6: 
        $primeUserFns = array("listing", "roles"); 
        goto iGHes; 
        iGHes: 
        if (in_array($method, $primeUserFns) && get_user_data("roleCode") != "A") { 
            $this->response->write(); 
            return; 
        } 
        goto FfBkk; 
        FfBkk: 
        $cloudOnlyFns = array("signup", "register", "signup_post"); 
        goto qX1hQ; 
        PTVzW: 
        return call_user_func_array(array($this, $method), $params); 
        goto IHciK; 
        IHciK: 
    } 
    public function signup($data = array()) 
    { 
        goto TbNsD; 
        TbNsD: 
        if (!is_array($data)) { 
            $data = array(); 
        } 
        goto GGhjc; 
        SWkz2: 
        $this->load->page("signup", $data); 
        goto ESXY7; 
        GGhjc: 
        $data["onpremises"] = true; 
        goto nqD_P; 
        nqD_P: 
        $data["captcha"] = $this->_captcha(); 
        goto SWkz2; 
        ESXY7: 
    } 
    public function register($data = array()) 
    { 
        goto m9vix; 
        m9vix: 
        if (!is_array($data)) { 
            $data = array(); 
        } 
        goto wDy20; 
        JLSI8: 
        $this->load->page("signup", $data); 
        goto qy4Ft; 
        wDy20: 
        $data["onpremises"] = true; 
        goto eohWX; 
        eohWX: 
        $data["captcha"] = $this->_captcha(); 
        goto JLSI8; 
        qy4Ft: 
    } 
    public function login() 
    { 
        goto tQPcC; 
        aFbi1: 
        if ($this->session->flashdata("show_captcha")) { 
            $captcha = $this->_captcha(); 
            if (!$captcha) { 
                $this->session->set_flashdata("show_captcha", null); 
            } 
        } 
        goto ID7Qz; 
        ID7Qz: 
        $this->load->page("login", array("captcha" => $captcha)); 
        goto v9rP0; 
        tQPcC: 
        $captcha = ''; 
        goto aFbi1; 
        v9rP0: 
    } 
    public function forgotpassword() 
    { 
        $this->load->page("forgotpassword"); 
    } 
    public function logout() 
    { 
        goto bP_wB; 
        bP_wB: 
        $this->users->logout(); 
        goto nbRRx; 
        nbRRx: 
        if ($this->input->is_ajax_request()) { 
            goto x37TY; 
            x37TY: 
            $this->response->success(); 
            goto cI2V7; 
            cI2V7: 
            $this->response->write(); 
            goto oqtIY; 
            oqtIY: 
            return true; 
            goto IssW8; 
            IssW8: 
        } 
        goto VlURL; 
        VlURL: 
        redirect("login"); 
        goto pY4pA; 
        pY4pA: 
    } 
    private function _is_junk($data = array()) 
    { 
        goto OwG_9; 
        kI4CO: 
        $data["email"]; 
        goto Qp6D6; 
        Qp6D6: 
        $data["phone"]; 
        goto wNiLE; 
        OwG_9: 
        if (!empty($data["force"])) { 
            return false; 
        } 
        goto Vw3IJ; 
        K8zou: 
        return false; 
        goto RjhRi; 
        HYpLZ: 
        $data["company_name"]; 
        goto kI4CO; 
        wNiLE: 
        if (preg_match("/(\w)\1{3,}/", $data["name"]) || preg_match("/(\w)\1{3,}/", $data["company_name"]) || preg_match("/(\w)\1{3,}/", $data["email"]) || preg_match("/(\w)\1{5,}/", $data["phone"])) { 
            return true; 
        } 
        goto K8zou; 
        Vw3IJ: 
        $data["name"]; 
        goto HYpLZ; 
        RjhRi: 
    } 
    public function signup_post() 
    { 
        goto hqEhP; 
        mFtjQ: 
        $this->form_validation->set_rules("phone", "Phone", "trim|required"); 
        goto NAjMh; 
        NAjMh: 
        $this->form_validation->set_rules("captcha", "Captcha", "trim|required|min_length[5]"); 
        goto ibj_A; 
        D0G_m: 
        $page = empty($data["onpremises"]) ? "signup" : "register"; 
        goto jUfgk; 
        I0xSv: 
        $this->form_validation->set_rules("email", "Email", "trim|required|valid_email"); 
        goto mFtjQ; 
        hqEhP: 
        $this->form_validation->set_rules("company_name", "Company Name", "trim|required"); 
        goto I0xSv; 
        jUfgk: 
        if ($this->form_validation->run() == FALSE) { 
            $this->{$page}($data); 
        } else { 
            goto sm8aP; 
            XihNy: 
            if (!($retData = $this->users->signup($data))) { 
                goto RqBsK; 
                RqBsK: 
                $this->session->set_flashdata("error", $this->users->message); 
                goto so9KQ; 
                zPtAN: 
                return; 
                goto zsb6z; 
                so9KQ: 
                $this->{$page}($data); 
                goto zPtAN; 
                zsb6z: 
            } 
            goto a05U_; 
            eE7NF: 
            $this->load->library("email"); 
            goto HDwUW; 
            QCkjG: 
            if (!empty($data["onpremises"])) { 
                goto s4DPM; 
                s4DPM: 
                $licenseKey = $retData["licenseKey"]; 
                goto zjg3V; 
                fGp58: 
                $content = sprintf(lang("ON_PRE_COMP_REGISTER_TEMPLATE"), $data["name"], $data["name"], $licenseKey, $downloadLinkTag); 
                goto rcfu_; 
                zjg3V: 
                $downloadLink = "https://cp.outputbooks.com/index.php/home/download/" . $retData["encId"]; 
                goto Rq35z; 
                Rq35z: 
                $downloadLinkTag = "<a href="" . $downloadLink . "" target="_blank">" . $downloadLink . "</a>"; 
                goto EC4Yj; 
                EC4Yj: 
                $subject = sprintf(lang("ON_PRE_COMP_REGISTERED"), $data["name"]); 
                goto fGp58; 
                rcfu_: 
            } else { 
                goto Vp3ZR; 
                EykIn: 
                $subject = sprintf(lang("CLOUD_COMP_REGISTERED"), $data["name"]); 
                goto YuDRa; 
                ody_P: 
                $url = "<a href="" . $url . "" target="_blank">" . $url . "</a>"; 
                goto EykIn; 
                YuDRa: 
                $content = sprintf(lang("CLOUD_COMP_REGISTER_TEMPLATE"), $data["name"], $data["name"], $url, $data["email"]); 
                goto MFNPu; 
                Vp3ZR: 
                $url = site_url(); 
                goto ody_P; 
                MFNPu: 
            } 
            goto y9WvE; 
            HDwUW: 
            $this->email->to($data["email"]); 
            goto QCkjG; 
            JMhz6: 
            $this->_post_odCrm($data); 
            goto lfORP; 
            VwRaJ: 
            $this->_post_espoCrm($data); 
            goto JMhz6; 
            lYDIl: 
            if (!$this->email->send()) { 
            } 
            goto HRpoZ; 
            sm8aP: 
            $result = $this->_check_captcha($data["captcha"]); 
            goto UvQNO; 
            a05U_: 
            $data["id"] = $retData["id"]; 
            goto eE7NF; 
            UvQNO: 
            if (!$result) { 
                goto RyAMo; 
                RyAMo: 
                @file_put_contents("junk.txt", "Captcha Failed\x9	" . date("d-m-Y h:i:s a") . "
IP : " . $_SERVER["REMOTE_ADDR"] . "
DATA : " . print_R($data, true) . "
----------------------
", FILE_APPEND); 
                goto gvjN1; 
                gvjN1: 
                $this->{$page}($data); 
                goto A0K7g; 
                A0K7g: 
                return; 
                goto blzP_; 
                blzP_: 
            } 
            goto XihNy; 
            HRpoZ: 
            $this->session->set_flashdata("success", $this->users->message); 
            goto VwRaJ; 
            lfORP: 
            redirect("//outputbooks.com/thank-you/?tenant=" . $retData["id"] . "&download=" . base64_encode(gzcompress($downloadLink))); 
            goto Wockg; 
            y9WvE: 
            $this->email->subject($subject); 
            goto RVH04; 
            RVH04: 
            $this->email->message(nl2br($content)); 
            goto lYDIl; 
            Wockg: 
        } 
        goto mlA79; 
        xtYDC: 
        $data["password"] = substr(str_shuffle("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@#$%&*^!?:;{}[]+=-_|"), 0, 8); 
        goto D0G_m; 
        bUt8l: 
        if ($this->_is_junk($data)) { 
            goto Kvv5j; 
            Kvv5j: 
            @file_put_contents("junk.txt", "Junk		" . date("d-m-Y h:i:s a") . "\xaIP : " . $_SERVER["REMOTE_ADDR"] . "\xaDATA : " . print_R($data, true) . "
----------------------
", FILE_APPEND); 
            goto xKidx; 
            xKidx: 
            redirect("//outputbooks.com/thank-you/"); 
            goto LHIrW; 
            LHIrW: 
            return false; 
            goto KVxxL; 
            KVxxL: 
        } 
        goto xtYDC; 
        ibj_A: 
        $data = $this->input->post(); 
        goto WYqWg; 
        WYqWg: 
        $data = $this->security->xss_clean($data); 
        goto bUt8l; 
        mlA79: 
    } 
    public function postcrm($rawData = array()) 
    { 
        print_R($this->_post_odCrm(array("name" => "Test Name", "company_name" => "Test company_name", "phone" => "9698987388", "email" => "[email protected]"))); 
    } 
    private function _post_odCrm($rawData = array()) 
    { 
        goto dLUMJ; 
        bOyU6: 
        $srcId = !empty($_GET["ob_source_id"]) ? $_GET["ob_source_id"] : (!empty($rawData["ob_source_id"]) ? $rawData["ob_source_id"] : $src); 
        goto tr0u2; 
        b_2QY: 
        $srcId = ''; 
        goto yMImh; 
        tr0u2: 
        return post_od_crm("create/leads", array("name" => $rawData["name"], "company" => $rawData["company_name"], "phone" => $rawData["phone"], "email" => $rawData["email"], "product" => "Output Books", "source_info" => array("source" => $src, "src_clid" => $srcId, "useragent" => $_SERVER["HTTP_USER_AGENT"], "ip" => $ip, "uId" => $rawData["id"]))); 
        goto qgouB; 
        dLUMJ: 
        $ip = ''; 
        goto pthed; 
        yMImh: 
        $src = !empty($_GET["ob_source"]) ? $_GET["ob_source"] : (!empty($rawData["ob_source"]) ? $rawData["ob_source"] : $src); 
        goto bOyU6; 
        p2nye: 
        $src = ''; 
        goto b_2QY; 
        pthed: 
        if (!empty($_SERVER["HTTP_CLIENT_IP"])) { 
            $ip = $_SERVER["HTTP_CLIENT_IP"]; 
        } elseif (!empty($_SERVER["HTTP_X_FORWARDED_FOR"])) { 
            $ip = $_SERVER["HTTP_X_FORWARDED_FOR"]; 
        } else { 
            $ip = $_SERVER["REMOTE_ADDR"]; 
        } 
        goto p2nye; 
        qgouB: 
    } 
    private function _post_espoCrm($rawData = array()) 
    { 
        goto eukIS; 
        sRPSs: 
        $url = "http://crm.srimax.com/api/v1/LeadCapture/5c5c0263ac0dececf"; 
        goto dAHSx; 
        bM8L6: 
        $response = curl_exec($ch); 
        goto qxC19; 
        EBKPo: 
        $ch = curl_init($url); 
        goto TSX60; 
        eukIS: 
        $data = array("firstName" => $rawData["name"], "lastName" => $rawData["company_name"], "phoneNumber" => $rawData["phone"], "emailAddress" => $rawData["email"]); 
        goto sRPSs; 
        LGCnt: 
        curl_setopt($ch, CURLOPT_POST, true); 
        goto AWLVW; 
        AWLVW: 
        curl_setopt($ch, CURLOPT_POSTFIELDS, $data); 
        goto xgKMj; 
        j8ZPx: 
        return $response; 
        goto mK6MO; 
        dAHSx: 
        $data = json_encode($data); 
        goto EBKPo; 
        CZFX0: 
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
        goto LGCnt; 
        qxC19: 
        curl_close($ch); 
        goto j8ZPx; 
        xgKMj: 
        curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", "Content-Length: " . strlen($data))); 
        goto bM8L6; 
        TSX60: 
        curl_setopt($ch, CURLOPT_URL, $url); 
        goto CZFX0; 
        mK6MO: 
    } 
    public function login_post() 
    { 
        goto Bi_5D; 
        Bi_5D: 
        $_POST = $data = $this->input->post(); 
        goto l4Daz; 
        L2koW: 
        if ($this->form_validation->run() == FALSE) { 
            if ($this->input->is_ajax_request()) { 
                goto feu0Z; 
                feu0Z: 
                $this->response->error(validation_errors()); 
                goto I0w_2; 
                I0w_2: 
                $this->response->write(); 
                goto b_PNl; 
                b_PNl: 
                return false; 
                goto bJyZg; 
                bJyZg: 
            } 
            $this->load->page("login"); 
        } else { 
            goto ZBkz_; 
            RFv0a: 
            $roleCode = get_user_data("roleCode"); 
            goto uEYMe; 
            G2O4S: 
            $retData = $this->users->login($data); 
            goto EU905; 
            ZmJsj: 
            echo "</script>"; 
            goto z57Lh; 
            uEYMe: 
            echo "<script>"; 
            goto PIl1T; 
            ceau4: 
            if ($this->input->is_ajax_request()) { 
                goto LLlcS; 
                D96c5: 
                $this->response->write(); 
                goto ucq4K; 
                ucq4K: 
                return true; 
                goto zBrDO; 
                LLlcS: 
                $this->response->set_data($retData); 
                goto D96c5; 
                zBrDO: 
            } 
            goto RFv0a; 
            fgOxD: 
            if (empty($auth_token)) { 
                $captcha = true; 
                if (isset($data["captcha"]) && !$this->_check_captcha($data["captcha"])) { 
                    goto N9tvJ; 
                    Tt0jY: 
                    redirect("login"); 
                    goto cRWbF; 
                    N9tvJ: 
                    $this->session->set_flashdata("show_captcha", true); 
                    goto Tt0jY; 
                    cRWbF: 
                    return; 
                    goto b4HQo; 
                    b4HQo: 
                } 
            } 
            goto G2O4S; 
            EU905: 
            $this->users->access_log($retData ? $retData : $data); 
            goto cBaZO; 
            nGhDn: 
            $auth_token = stripslashes($auth_token ? $auth_token : ''); 
            goto fgOxD; 
            hQ2WL: 
            echo "let cur_email \x9= '" . $retData["email"] . "';\xd\xa			\x9let acc = localStorage.getItem('device_accounts') || '';\xd\xa\x9	\x9	acc = acc.split(',');
\xa			\x9if (acc.indexOf(cur_email)==-1) {
\xa	\x9\x9\x9\x9acc.push(cur_email);\xd\xa\x9\x9\x9	}
\x9\x9\x9\x9localStorage.setItem('device_accounts',acc.join(','));
		\x9\x9window.location.href = '" . ($roleCode != "E" ? site_url("home") : site_url("ecom/config")) . "';"; 
            goto ZmJsj; 
            PIl1T: 
            if (!empty($retData["dCode"])) { 
                echo "let dCode = localStorage.getItem('dCode');
	\x9\x9\x9\x9let cur_dCode \x9= '" . $retData["dCode"] . "';	\x9		\xd
		\x9	\x9if (dCode!=cur_dCode) {\xd
\x9\x9		\x9\x9localStorage.setItem('device_accounts','');\xd\xa\x9			\x9\x9localStorage.setItem('dCode',cur_dCode);\xd
		\x9	\x9}"; 
            } 
            goto hQ2WL; 
            z57Lh: 
            exit; 
            goto TZz8V; 
            cBaZO: 
            if (!$retData || !$retData["id"]) { 
                goto a6YSq; 
                zH35U: 
                if ($this->input->is_ajax_request()) { 
                    goto zACV1; 
                    bwj9d: 
                    return false; 
                    goto Gzd9E; 
                    zACV1: 
                    if ($err == "DEVICE_ERROR") { 
                        set_status_header(401); 
                    } else { 
                        $this->response->error($err); 
                    } 
                    goto wmGwE; 
                    wmGwE: 
                    $this->response->write(); 
                    goto bwj9d; 
                    Gzd9E: 
                } 
                goto Pm3vf; 
                a6YSq: 
                $err = empty($this->users->message) ? lang("UNKOWN_ERROR") : $this->users->message; 
                goto zH35U; 
                Pm3vf: 
                if ($err != "DEVICE_ERROR") { 
                    goto H5X0i; 
                    nqXAI: 
                    redirect("login"); 
                    goto iHnBg; 
                    H5X0i: 
                    $this->session->set_flashdata("error", lang($err)); 
                    goto nqXAI; 
                    iHnBg: 
                    return; 
                    goto Z8jMb; 
                    Z8jMb: 
                } else { 
                    echo "<script>\xd
\x9		\x9	localStorage.setItem('dCode','');
\xa	\x9		\x9window.location.href = '" . site_url("login") . "';
\xa\x9			\x9</script>"; 
                    exit; 
                } 
                goto N0jwN; 
                N0jwN: 
            } 
            goto ceau4; 
            ZBkz_: 
            $auth_token = $this->input->get_request_header("auth-token", TRUE); 
            goto nGhDn; 
            TZz8V: 
        } 
        goto FUQ1H; 
        QMDHz: 
        if (isset($data["captcha"])) { 
            $this->form_validation->set_rules("captcha", "Captcha", "trim|required"); 
        } 
        goto L2koW; 
        YguOi: 
        $this->form_validation->set_rules("password", "Password", "trim|required"); 
        goto QMDHz; 
        l4Daz: 
        $this->form_validation->set_rules("loginName", "Email", "trim|required"); 
        goto YguOi; 
        FUQ1H: 
    } 
    public function passwd($uid = '', $email = '', $pass = '') 
    { 
        goto RMFL9; 
        l8oWU: 
        echo "UPDATE ob_users SET password="" . $hash . "" WHERE id=" . $uid . ";" . PHP_EOL . PHP_EOL; 
        goto ihtRf; 
        kqfYQ: 
        $this->load->library("ob_license"); 
        goto DwhbC; 
        rUNbi: 
        echo "<pre style="background: #EEE;padding: 20px;display: inline-block;border: 1px solid rgba(0,0,0,0.3);margin: 0;">"; 
        goto ZfcEU; 
        DwhbC: 
        $hash = $this->ob_license->hash_ob_password($email . $uid . $pass); 
        goto rUNbi; 
        aTnY0: 
        $email = !empty($_GET["email"]) ? $_GET["email"] : $email; 
        goto gl_5k; 
        Aibqa: 
        echo "use outputbooks;" . PHP_EOL . PHP_EOL; 
        goto l8oWU; 
        T3092: 
        $pass = !empty($_GET["pass"]) ? $_GET["pass"] : $pass; 
        goto kqfYQ; 
        gl_5k: 
        $uid = !empty($_GET["uid"]) ? $_GET["uid"] : $uid; 
        goto T3092; 
        RMFL9: 
        if (empty($_GET)) { 
            goto BHZWO; 
            KdtdS: 
            echo "UID : <input type="text" name="uid" value="" /><br><br>"; 
            goto hx1Gc; 
            RWoxY: 
            echo "</form>"; 
            goto TkpsX; 
            hx1Gc: 
            echo "Email : <input type="email" name="email" value="" /><br><br>"; 
            goto stHWa; 
            BHZWO: 
            echo "<form method="get">"; 
            goto KdtdS; 
            TkpsX: 
            return; 
            goto HpTqt; 
            Z4XST: 
            echo "<input type="submit" name="submit" value="Submit" />"; 
            goto RWoxY; 
            stHWa: 
            echo "Password : <input type="text" name="pass" value="admin12" /><br><br>"; 
            goto Z4XST; 
            HpTqt: 
        } 
        goto aTnY0; 
        ZfcEU: 
        echo "mysql -u root -h localhost --port=4506 -pibWijteig5" . PHP_EOL . PHP_EOL; 
        goto Aibqa; 
        ihtRf: 
        echo "</pre>"; 
        goto fYhor; 
        fYhor: 
    } 
    public function forgotpassword_post() 
    { 
        goto SYwms; 
        jm8xU: 
        return true; 
        goto Xhup5; 
        FIf7e: 
        if ($this->form_validation->run() == FALSE) { 
            $this->session->set_flashdata("error", validation_errors()); 
            $this->load->page("forgotpassword"); 
        } else { 
            $data = $this->input->post(); 
            if ($retData = $this->users->forgotpassword($data)) { 
                $this->session->set_flashdata("success", lang("SUCCESS_RESET_EMAIL_SENT")); 
                redirect(str_replace("app.outputbooks.com", "cp.outputbooks.com", site_url("login"))); 
            } else { 
                $this->session->set_flashdata("error", lang("SMTP_NOT_SET")); 
                redirect("forgotpassword"); 
            } 
        } 
        goto jm8xU; 
        SYwms: 
        $this->form_validation->set_rules("email", "Email", "trim|required|valid_email"); 
        goto FIf7e; 
        Xhup5: 
    } 
    public function reset_confirm() 
    { 
        goto RexpS; 
        GnCUJ: 
        redirect("forgotpassword"); 
        goto zGQKW; 
        sBI6S: 
        if ($this->users->reset_confirm($data)) { 
            goto NZGnE; 
            SLZwU: 
            $this->load->page("reset_complete"); 
            goto QKAqD; 
            NZGnE: 
            $this->session->set_flashdata("success", lang("SUCCESS_RESET_CONFIRMED")); 
            goto SLZwU; 
            QKAqD: 
            return; 
            goto JDXVP; 
            JDXVP: 
        } 
        goto GnCUJ; 
        RexpS: 
        $data = $this->input->get(); 
        goto IE2AI; 
        IE2AI: 
        if (empty($data["act_key"])) { 
            redirect("login"); 
        } 
        goto sBI6S; 
        zGQKW: 
    } 
    public function reset_complete_post() 
    { 
        goto qEtqY; 
        rOf9P: 
        $data = $this->input->post(); 
        goto v4fy5; 
        ZmdWW: 
        if (empty($data)) { 
            goto BNJ3C; 
            BNJ3C: 
            $this->session->set_flashdata("rp_user", $user); 
            goto nbdoK; 
            nbdoK: 
            $this->load->page("reset_complete"); 
            goto s5pRN; 
            s5pRN: 
            return; 
            goto G8uZm; 
            G8uZm: 
        } 
        goto fNKpd; 
        nLVsY: 
        if ($this->form_validation->run() == FALSE) { 
            goto OFh5B; 
            OFh5B: 
            $this->session->set_flashdata("error", validation_errors()); 
            goto Wq392; 
            Wq392: 
            $this->session->set_flashdata("rp_user", $user); 
            goto FuUw5; 
            FuUw5: 
            redirect("reset_complete"); 
            goto T5BT5; 
            T5BT5: 
        } 
        goto Ua9UN; 
        v4fy5: 
        if (empty($user)) { 
            redirect("forgotpassword"); 
            return false; 
        } 
        goto ZmdWW; 
        Ua9UN: 
        if (!$this->users->reset_complete($data)) { 
            goto m6Z4D; 
            m6Z4D: 
            $this->session->set_flashdata("error", lang("ERROR_RESET_PASSWORD")); 
            goto s0609; 
            s0609: 
            redirect("forgotpassword"); 
            goto w12zl; 
            w12zl: 
            return false; 
            goto PhMf4; 
            PhMf4: 
        } else { 
            $this->session->set_flashdata("success", lang("SUCCESS_RESET_COMPLETED")); 
            redirect(str_replace("app.outputbooks.com", "cp.outputbooks.com", site_url("login"))); 
        } 
        goto jCoH_; 
        qEtqY: 
        $user = $this->session->flashdata("rp_user"); 
        goto rOf9P; 
        cZKwA: 
        $this->form_validation->set_rules("confirm_password", "Confirm Password", "trim|required|matches[password]"); 
        goto nLVsY; 
        fNKpd: 
        $this->form_validation->set_rules("password", "Password", "trim|required|min_length[6]"); 
        goto cZKwA; 
        jCoH_: 
    } 
    public function branch_listing() 
    { 
        goto Sxlny; 
        zMVnc: 
        $ret = $this->users->get_userbranch($data); 
        goto QPMVI; 
        rMuJ5: 
        if (!empty($ret)) { 
            $this->response->set_data("items", $ret, true); 
        } 
        goto CpjQq; 
        CpjQq: 
        $this->response->write(); 
        goto BR5Xy; 
        QPMVI: 
        $this->response->success(); 
        goto rMuJ5; 
        Sxlny: 
        $data = $this->request->post(); 
        goto zMVnc; 
        BR5Xy: 
    } 
    public function listing() 
    { 
        goto hOAd9; 
        hOAd9: 
        $list = $this->users->get_list("u.id, u.name, u.email, u.loginName, u.phone, cu.roleId, r.roleCode, r.roleName, , cu.invsign as invsign"); 
        goto bJYfY; 
        gh2qY: 
        $this->response->write(); 
        goto eqjCJ; 
        bJYfY: 
        $this->response->success(); 
        goto GdWgC; 
        GdWgC: 
        if (!empty($list)) { 
            $this->response->set_data("items", $list, true); 
        } 
        goto gh2qY; 
        eqjCJ: 
    } 
    public function user_list_map() 
    { 
        goto O8YjP; 
        Uze3Q: 
        if (!empty($list)) { 
            $this->response->set_data("items", $list, true); 
        } 
        goto DR0tE; 
        O8YjP: 
        $list = $this->users->user_list_map(); 
        goto kgI8Z; 
        kgI8Z: 
        $this->response->success(); 
        goto Uze3Q; 
        DR0tE: 
        $this->response->write(); 
        goto i5mSK; 
        i5mSK: 
    } 
    public function details($uid = 0) 
    { 
        goto kZBgY; 
        QPIu9: 
        if (!empty($data)) { 
            goto jVjMS; 
            BdfZj: 
            $this->response->set_data($data); 
            goto BWMLW; 
            jVjMS: 
            unset($data["password"]); 
            goto vb3cL; 
            vb3cL: 
            $this->response->success(); 
            goto BdfZj; 
            BWMLW: 
        } else { 
            $this->response->error($this->users->message); 
        } 
        goto WnekX; 
        kZBgY: 
        $data = $this->users->get_user($uid); 
        goto QPIu9; 
        WnekX: 
        $this->response->write(); 
        goto sBb6K; 
        sBb6K: 
    } 
    public function map() 
    { 
        goto M1te9; 
        n0Rua: 
        return; 
        goto B33nn; 
        qauDv: 
        $uId = $this->users->map_user($postData); 
        goto r3z2x; 
        r3z2x: 
        $this->response->success("SUCCESS_SAVE"); 
        goto D2hX_; 
        M1te9: 
        $postData = $this->request->post(); 
        goto qauDv; 
        wU6gf: 
        $this->response->write(); 
        goto n0Rua; 
        D2hX_: 
        $this->response->set_data("id", $uId); 
        goto wU6gf; 
        B33nn: 
    } 
    public function save() 
    { 
        goto nUsD1; 
        nUsD1: 
        $_POST = $postData = $this->request->post(); 
        goto SwnrX; 
        kq_d0: 
        $uId = $this->users->save($postData); 
        goto gV6r1; 
        cRMbb: 
        if ($this->form_validation->run() == FALSE) { 
            goto g3EYL; 
            xuVcB: 
            $this->response->write(); 
            goto RjS_J; 
            RjS_J: 
            return false; 
            goto cUSQQ; 
            g3EYL: 
            $this->response->error(validation_errors()); 
            goto xuVcB; 
            cUSQQ: 
        } 
        goto kq_d0; 
        X3rc9: 
        return; 
        goto DeD_q; 
        btisv: 
        if (!empty($postData["id"]) && !empty($postData["changePassword"])) { 
            if (get_user_data("isPrimeUser") != 1 || get_user_data("id") == $postData["id"]) { 
                $_POST["password"] = $postData["password"]; 
            } else { 
                $this->form_validation->set_rules("password", "Password", "trim|required|min_length[6]"); 
            } 
        } 
        goto cRMbb; 
        SwnrX: 
        $this->load->library("form_validation"); 
        goto d_BAm; 
        rXcLn: 
        $this->form_validation->set_rules("email", "Email", "trim|required|valid_email" . $unique_validate); 
        goto DBShP; 
        gV6r1: 
        if ($uId) { 
            $this->response->success("SUCCESS_SAVE"); 
            $this->response->set_data("id", $uId); 
        } else { 
            $this->response->error($this->users->message ? $this->users->message : "SAVE_ERROR"); 
        } 
        goto uCV0K; 
        d_BAm: 
        $unique_validate = "|is_unique[users.email]"; 
        goto pahaA; 
        uCV0K: 
        $this->response->write(); 
        goto X3rc9; 
        pahaA: 
        if (empty($postData["id"])) { 
            goto i703M; 
            u2AzH: 
            if ($row && empty($row["roleId"])) { 
                goto BUoyr; 
                T0_6U: 
                $this->response->set_data("user", $row); 
                goto L8Qct; 
                DTXRc: 
                return false; 
                goto aS5Rk; 
                s83fx: 
                $this->response->set_data("msg", sprintf(lang("USER_EXISTS"), $row["name"], $postData["email"])); 
                goto T0_6U; 
                BUoyr: 
                $this->response->set_data("dup_confirm", 1); 
                goto s83fx; 
                L8Qct: 
                $this->response->write(); 
                goto DTXRc; 
                aS5Rk: 
            } 
            goto XfXoi; 
            raame: 
            $this->db->join("compusers as cu", "cu.userId=u.id and cu.cId=" . get_company("id"), "left"); 
            goto jQD0Y; 
            jQD0Y: 
            $row = $this->db->where("u.email", $postData["email"])->get()->row_array(); 
            goto u2AzH; 
            i703M: 
            $this->db->select("u.id,u.name,cu.roleId")->from("users as u"); 
            goto raame; 
            XfXoi: 
        } 
        goto rXcLn; 
        DBShP: 
        if (empty($postData["id"])) { 
            $this->form_validation->set_rules("password", "Password", "trim|required|min_length[6]"); 
        } 
        goto btisv; 
        DeD_q: 
    } 
    public function delete($id = '') 
    { 
        if (!$id) { 
            goto mejd9; 
            mejd9: 
            $this->response->error("Error"); 
            goto X5ASi; 
            VTCIp: 
            return false; 
            goto td3Z0; 
            X5ASi: 
            $this->response->write(); 
            goto VTCIp; 
            td3Z0: 
        } 
        if ($this->users->delete($id)) { 
            goto TpmiE; 
            PXnTn: 
            $this->response->write(); 
            goto dHBSh; 
            TpmiE: 
            $this->response->success(); 
            goto PXnTn; 
            dHBSh: 
            return true; 
            goto uHJig; 
            uHJig: 
        } else { 
            goto KFtvd; 
            KFtvd: 
            $this->response->error($this->users->message); 
            goto RdVSE; 
            RdVSE: 
            $this->response->write(); 
            goto NF8Pr; 
            NF8Pr: 
            return false; 
            goto AQDan; 
            AQDan: 
        } 
    } 
    public function setcompany($cId, $bId = '') 
    { 
        goto YrIu7; 
        d3quD: 
        $result = $this->users->set_default_company($cId, $bId); 
        goto CPqVR; 
        CPqVR: 
        if (!$result) { 
            $this->response->error($this->users->message); 
        } else { 
            $this->response->success(); 
        } 
        goto wUPxC; 
        YrIu7: 
        if (empty($cId)) { 
            goto KtU3r; 
            s8MLd: 
            $this->response->write(); 
            goto wF9ff; 
            KtU3r: 
            $this->response->error("Company ID Missing"); 
            goto s8MLd; 
            wF9ff: 
            return; 
            goto KMP4C; 
            KMP4C: 
        } 
        goto d3quD; 
        wUPxC: 
        $this->response->write(); 
        goto iVs_8; 
        iVs_8: 
    } 
    private function _valid_fields($data, $fields = array()) 
    { 
        goto pvqsW; 
        OfacY: 
        C9Ww0: 
        goto H4YW7; 
        tdCdU: 
        foreach ($fields as $val) { 
            if (empty($data[$val])) { 
                return false; 
            } 
            YC_6V: 
        } 
        goto OfacY; 
        H4YW7: 
        return true; 
        goto IldKn; 
        pvqsW: 
        if (empty($data)) { 
            return false; 
        } 
        goto tdCdU; 
        IldKn: 
    } 
    function roles() 
    { 
        goto VcTNe; 
        s16yV: 
        $this->response->write(); 
        goto GlhOZ; 
        cWSBl: 
        $this->response->success(); 
        goto dqzjR; 
        dqzjR: 
        if (!empty($items)) { 
            $this->response->set_data("items", $items, true); 
        } 
        goto s16yV; 
        GlhOZ: 
        return true; 
        goto Ntdfg; 
        VcTNe: 
        $items = $this->users->get_roles_list(); 
        goto cWSBl; 
        Ntdfg: 
    } 
    function role_modules($roleCode = '') 
    { 
        goto YhMVc; 
        YXlK3: 
        $this->response->write(); 
        goto T8iiX; 
        T8iiX: 
        return true; 
        goto JGEO_; 
        YhMVc: 
        $items = $this->users->get_role_modules($roleCode); 
        goto tD_Qf; 
        tD_Qf: 
        $this->response->success(); 
        goto ulivq; 
        ulivq: 
        $this->response->set_data("items", $items); 
        goto YXlK3; 
        JGEO_: 
    } 
    function role($id) 
    { 
        goto FxfhP; 
        W21QL: 
        $this->response->success(); 
        goto nM8sW; 
        r0680: 
        return true; 
        goto mW5FZ; 
        FxfhP: 
        $result = $this->users->get_role_item($id); 
        goto W21QL; 
        CMrs6: 
        $this->response->write(); 
        goto r0680; 
        dVafQ: 
        $this->response->set_data($result); 
        goto CMrs6; 
        nM8sW: 
        if (!empty($result["permissions"])) { 
            $this->response->set_data("permissions", $result["permissions"], true); 
            unset($result["permissions"]); 
        } 
        goto dVafQ; 
        mW5FZ: 
    } 
    function role_save() 
    { 
        goto V8NXy; 
        kXiZC: 
        return true; 
        goto uIrgc; 
        OwtSO: 
        $this->load->library("form_validation"); 
        goto TGXBJ; 
        maL7x: 
        if (!($id = $this->users->roles_save($data))) { 
            $this->response->error($this->companyModel->message); 
        } else { 
            $this->response->success("SUCCESS_SAVE"); 
            $this->response->set_data("id", $id); 
        } 
        goto egeD5; 
        b1Bd0: 
        if ($this->form_validation->run() == FALSE) { 
            goto vNzAa; 
            vNzAa: 
            $this->response->error(validation_errors()); 
            goto dBUlE; 
            dBUlE: 
            $this->response->write(); 
            goto cQ4Bd; 
            cQ4Bd: 
            return false; 
            goto kAA3p; 
            kAA3p: 
        } 
        goto maL7x; 
        egeD5: 
        $this->response->write(); 
        goto kXiZC; 
        V8NXy: 
        $_POST = $data = $this->request->post(); 
        goto OwtSO; 
        TGXBJ: 
        $this->form_validation->set_rules("roleName", "Role name", "trim|required|uniquee_to_company[role.roleName]"); 
        goto b1Bd0; 
        uIrgc: 
    } 
    function role_delete($id) 
    { 
        goto teMGS; 
        QcgVb: 
        $this->response->write(); 
        goto c_h3s; 
        teMGS: 
        if (empty($id)) { 
            goto hRupi; 
            hRupi: 
            $this->response->error("ID missing"); 
            goto vOjKp; 
            cxLgT: 
            return false; 
            goto fmpX1; 
            vOjKp: 
            $this->response->write(); 
            goto cxLgT; 
            fmpX1: 
        } 
        goto gdeHX; 
        c_h3s: 
        return true; 
        goto vkBLl; 
        gdeHX: 
        if ($this->users->role_delete($id)) { 
            $this->response->success("DELETE_SUCCESS"); 
        } else { 
            $this->response->error($this->users->message); 
        } 
        goto QcgVb; 
        vkBLl: 
    } 
    private function _captcha() 
    { 
        goto Omw3i; 
        ZUcsW: 
        $cap = create_captcha($vals); 
        goto vhiQK; 
        vhiQK: 
        if (!empty($cap)) { 
            goto wF9W6; 
            QPILo: 
            $query = $this->db->insert_string("captcha", $data); 
            goto S0Koy; 
            wF9W6: 
            $data = array("captcha_time" => $cap["time"], "ip_address" => $this->input->ip_address(), "word" => $cap["word"]); 
            goto QPILo; 
            rlmcB: 
            return $cap["image"]; 
            goto i5mbl; 
            S0Koy: 
            $this->db->query($query); 
            goto rlmcB; 
            i5mbl: 
        } 
        goto ZaWCr; 
        ZaWCr: 
        return false; 
        goto kV11K; 
        G5uvE: 
        $vals = array("img_path" => "./temp/", "img_url" => base_url("temp"), "expiration" => 300, "word_length" => 5, "colors" => array("background" => array(255, 255, 255), "border" => array(153, 102, 102), "text" => array(0, 0, 0), "grid" => array(255, 182, 182)), "pool" => "0123456789ABCDEFGHKMNPRTUVWXYZ"); 
        goto ZUcsW; 
        Omw3i: 
        $this->load->helper("captcha"); 
        goto G5uvE; 
        kV11K: 
    } 
    private function _check_captcha($captcha = '') 
    { 
        goto oNIGL; 
        soOgl: 
        $query = $this->db->select("captcha_id, count(*) AS count")->from("captcha")->where(array("word" => $captcha, "ip_address" => $this->input->ip_address(), "captcha_time >" => $expiration))->get(); 
        goto p_wNi; 
        p_wNi: 
        $row = $query->row(); 
        goto w8DB6; 
        DIkWv: 
        if ($row->count == 0) { 
            $this->session->set_flashdata("error", "Invalid captcha, please try again"); 
            return false; 
        } 
        goto TytcH; 
        w8DB6: 
        if ($row->captcha_id) { 
            $this->db->where("captcha_id", $row->captcha_id)->delete("captcha"); 
        } 
        goto DIkWv; 
        S7xW_: 
        $expiration = time() - 300; 
        goto N9Uhc; 
        N9Uhc: 
        $this->db->where("captcha_time < ", $expiration)->delete("captcha"); 
        goto soOgl; 
        oNIGL: 
        if (empty($captcha)) { 
            $this->session->set_flashdata("error", "Captcha not entered"); 
            return false; 
        } 
        goto S7xW_; 
        TytcH: 
        return true; 
        goto kdgQQ; 
        kdgQQ: 
    } 
    function get_logs() 
    { 
        goto HDIQ4; 
        gT9Kr: 
        $this->response->success(); 
        goto uC2ZN; 
        OaqcE: 
        $this->response->write(); 
        goto KcLht; 
        uC2ZN: 
        if (!empty($result)) { 
            $this->response->set_data("items", $result, true); 
        } 
        goto OaqcE; 
        QynbC: 
        $result = $this->users->get_user_logs($params); 
        goto gT9Kr; 
        HDIQ4: 
        $params = $this->request->post(); 
        goto QynbC; 
        KcLht: 
        return true; 
        goto Qit7r; 
        Qit7r: 
    } 
    function get_access_logs() 
    { 
        goto wdk74; 
        wdk74: 
        $params = $this->request->post(); 
        goto QG8cf; 
        QG8cf: 
        $result = $this->users->get_access_logs($params); 
        goto SBzyh; 
        SBzyh: 
        $this->response->success(); 
        goto GeTmn; 
        GeTmn: 
        if (!empty($result)) { 
            $this->response->set_data($result, true); 
        } 
        goto Ujtcd; 
        Ujtcd: 
        $this->response->write(); 
        goto FrV1C; 
        FrV1C: 
        return true; 
        goto qZgB4; 
        qZgB4: 
    } 
    function save_device() 
    { 
        goto CbYja; 
        F52HN: 
        $result = $this->users->save_device($params); 
        goto lGH1P; 
        CbYja: 
        $params = $this->request->post(); 
        goto F52HN; 
        RRdOC: 
        $this->response->write(); 
        goto cgGiy; 
        cgGiy: 
        return true; 
        goto DBad1; 
        lGH1P: 
        $this->response->success(); 
        goto RRdOC; 
        DBad1: 
    } 
    function update_device() 
    { 
        goto h72IJ; 
        rAgpG: 
        return true; 
        goto vS1_v; 
        GOnXL: 
        $result = $this->users->update_device($params); 
        goto W0WYw; 
        W0WYw: 
        $this->response->success(); 
        goto oWdOX; 
        h72IJ: 
        $params = $this->request->post(); 
        goto GOnXL; 
        oWdOX: 
        $this->response->write(); 
        goto rAgpG; 
        vS1_v: 
    } 
    function update_read_notification($id) 
    { 
        goto HueB2; 
        RFlVP: 
        $this->response->success(); 
        goto jr_Z8; 
        HueB2: 
        $result = $this->users->updateReadMessageId($id); 
        goto RFlVP; 
        vbiba: 
        return true; 
        goto NND8t; 
        jr_Z8: 
        $this->response->write(); 
        goto vbiba; 
        NND8t: 
    } 
    function unlock_screen() 
    { 
        goto Fkx_o; 
        wVL1w: 
        return true; 
        goto a2Pjo; 
        Fkx_o: 
        $params = $this->request->post(); 
        goto OU2Tf; 
        XCHMb: 
        $this->response->write(); 
        goto wVL1w; 
        OU2Tf: 
        $result = $this->users->unlock_screen($params); 
        goto a0beA; 
        a0beA: 
        if (empty($result)) { 
            $this->response->error($this->users->message); 
        } else { 
            $this->response->success(); 
        } 
        goto XCHMb; 
        a2Pjo: 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php
/*
Generated by OutputBooks Team
*/

defined("\102\101\x53\105\120\x41\124\110") or exit("\116\x6f\x20\144\151\162\145\x63\164\x20\163\x63\x72\151\x70\164\x20\x61\x63\x63\x65\x73\x73\40\141\x6c\x6c\x6f\167\x65\x64");
class User extends MY_Controller
{
    public function __construct()
    {
        goto YfoT9;
        rya6h:
        $this->load->helper("\146\157\162\x6d");
        goto Q3ljP;
        Q3ljP:
        $this->load->library("\x66\x6f\162\155\x5f\x76\x61\154\151\x64\x61\164\x69\x6f\x6e");
        goto YQcqi;
        CAEzI:
        $this->load->helper("\x63\x6f\157\153\151\145");
        goto kmCq9;
        YQcqi:
        $this->load->model("\x75\x73\x65\162\163");
        goto CAEzI;
        YfoT9:
        parent::__construct();
        goto rya6h;
        kmCq9:
    }
    public function index()
    {
        $this->load->page("\150\157\x6d\145");
    }
    public function authorized()
    {
        goto LsI2l;
        ncsSy:
        if (get_user_data("\151\163\101\144\x6d\x69\156") && !empty($data["\141\x70\160\162\x6f\166\x65\137\160\x69\x6e"])) {
            $this->form_validation->set_rules("\141\x70\x70\x72\x6f\166\x65\x5f\x70\151\x6e", "\120\151\156", "\x74\x72\x69\155\x7c\x72\x65\161\x75\x69\x72\145\x64\x7c\155\151\x6e\137\154\x65\x6e\x67\164\150\133\64\135");
            if ($this->form_validation->run()) {
                $auth_device = $this->users->save_device($data);
            }
        }
        goto qVlQx;
        eFE02:
        if (!$auth_device && get_company("\x69\x73\x44\145\166\151\143\x65\101\x70\x70\x72\x6f\166\x65", true)) {
            goto DZPhC;
            DZPhC:
            $this->session->set_flashdata("\x65\x72\x72\x6f\x72", $this->users->message);
            goto hFns0;
            hFns0:
            $this->load->page("\141\x75\164\x68\x6f\162\x69\172\x65\x64");
            goto ldXTW;
            ldXTW:
            return;
            goto l6n7R;
            l6n7R:
        }
        goto FwJ4M;
        qGT0P:
        $data = $this->input->post();
        goto ncsSy;
        FwJ4M:
        redirect("\150\157\155\145");
        goto eVMen;
        qVlQx:
        if ($this->input->is_ajax_request()) {
            goto ULoe1;
            OU6BY:
            return $auth_device;
            goto fkNgn;
            AnRQu:
            $this->response->write();
            goto OU6BY;
            ULoe1:
            if ($auth_device) {
                $this->response->success();
            } else {
                $this->response->error($this->users->message);
            }
            goto AnRQu;
            fkNgn:
        }
        goto eFE02;
        LsI2l:
        $auth_device = false;
        goto qGT0P;
        eVMen:
    }
    public function _remap($method, $params = array())
    {
        goto pgqS6;
        qX1hQ:
        if (!isCloud() && in_array($method, $cloudOnlyFns)) {
            redirect(site_url("\150\x6f\155\x65"));
            return;
        }
        goto PTVzW;
        pgqS6:
        $primeUserFns = array("\154\151\x73\x74\151\156\x67", "\162\x6f\154\x65\x73");
        goto iGHes;
        iGHes:
        if (in_array($method, $primeUserFns) && get_user_data("\x72\157\x6c\145\103\x6f\x64\x65") != "\x41") {
            $this->response->write();
            return;
        }
        goto FfBkk;
        FfBkk:
        $cloudOnlyFns = array("\x73\151\147\x6e\x75\x70", "\x72\x65\147\x69\x73\164\145\162", "\x73\x69\x67\156\165\x70\x5f\160\x6f\x73\164");
        goto qX1hQ;
        PTVzW:
        return call_user_func_array(array($this, $method), $params);
        goto IHciK;
        IHciK:
    }
    public function signup($data = array())
    {
        goto TbNsD;
        TbNsD:
        if (!is_array($data)) {
            $data = array();
        }
        goto GGhjc;
        SWkz2:
        $this->load->page("\163\x69\x67\x6e\x75\160", $data);
        goto ESXY7;
        GGhjc:
        $data["\157\x6e\x70\162\145\x6d\151\163\145\163"] = true;
        goto nqD_P;
        nqD_P:
        $data["\x63\x61\x70\164\143\150\x61"] = $this->_captcha();
        goto SWkz2;
        ESXY7:
    }
    public function register($data = array())
    {
        goto m9vix;
        m9vix:
        if (!is_array($data)) {
            $data = array();
        }
        goto wDy20;
        JLSI8:
        $this->load->page("\163\x69\x67\156\165\x70", $data);
        goto qy4Ft;
        wDy20:
        $data["\157\156\160\x72\145\x6d\151\x73\145\x73"] = true;
        goto eohWX;
        eohWX:
        $data["\143\x61\x70\164\143\150\141"] = $this->_captcha();
        goto JLSI8;
        qy4Ft:
    }
    public function login()
    {
        goto tQPcC;
        aFbi1:
        if ($this->session->flashdata("\x73\150\157\x77\137\x63\x61\160\x74\143\x68\x61")) {
            $captcha = $this->_captcha();
            if (!$captcha) {
                $this->session->set_flashdata("\163\150\157\x77\137\x63\x61\x70\x74\x63\150\x61", null);
            }
        }
        goto ID7Qz;
        ID7Qz:
        $this->load->page("\154\157\147\151\156", array("\143\141\x70\164\x63\x68\x61" => $captcha));
        goto v9rP0;
        tQPcC:
        $captcha = '';
        goto aFbi1;
        v9rP0:
    }
    public function forgotpassword()
    {
        $this->load->page("\x66\157\162\147\x6f\164\x70\141\163\x73\167\x6f\162\144");
    }
    public function logout()
    {
        goto bP_wB;
        bP_wB:
        $this->users->logout();
        goto nbRRx;
        nbRRx:
        if ($this->input->is_ajax_request()) {
            goto x37TY;
            x37TY:
            $this->response->success();
            goto cI2V7;
            cI2V7:
            $this->response->write();
            goto oqtIY;
            oqtIY:
            return true;
            goto IssW8;
            IssW8:
        }
        goto VlURL;
        VlURL:
        redirect("\x6c\157\x67\151\156");
        goto pY4pA;
        pY4pA:
    }
    private function _is_junk($data = array())
    {
        goto OwG_9;
        kI4CO:
        $data["\145\155\141\x69\154"];
        goto Qp6D6;
        Qp6D6:
        $data["\x70\x68\x6f\x6e\145"];
        goto wNiLE;
        OwG_9:
        if (!empty($data["\146\x6f\x72\x63\x65"])) {
            return false;
        }
        goto Vw3IJ;
        K8zou:
        return false;
        goto RjhRi;
        HYpLZ:
        $data["\143\x6f\x6d\x70\141\x6e\171\137\x6e\141\x6d\145"];
        goto kI4CO;
        wNiLE:
        if (preg_match("\57\50\134\167\51\134\x31\173\63\54\175\57", $data["\156\141\155\145"]) || preg_match("\57\50\134\x77\x29\x5c\x31\173\x33\x2c\175\57", $data["\x63\157\x6d\x70\x61\x6e\171\137\156\x61\155\145"]) || preg_match("\x2f\x28\x5c\167\51\x5c\x31\173\63\x2c\x7d\x2f", $data["\145\155\x61\151\154"]) || preg_match("\x2f\x28\134\167\x29\x5c\x31\173\65\x2c\x7d\57", $data["\160\150\157\x6e\x65"])) {
            return true;
        }
        goto K8zou;
        Vw3IJ:
        $data["\x6e\141\x6d\145"];
        goto HYpLZ;
        RjhRi:
    }
    public function signup_post()
    {
        goto hqEhP;
        mFtjQ:
        $this->form_validation->set_rules("\160\150\x6f\156\145", "\120\150\157\156\145", "\x74\x72\151\x6d\174\162\145\x71\x75\x69\x72\145\144");
        goto NAjMh;
        NAjMh:
        $this->form_validation->set_rules("\143\141\x70\164\x63\150\141", "\103\x61\160\x74\143\x68\x61", "\164\x72\151\x6d\174\162\145\x71\x75\151\162\x65\x64\x7c\155\151\156\137\x6c\x65\x6e\x67\x74\x68\x5b\65\x5d");
        goto ibj_A;
        D0G_m:
        $page = empty($data["\x6f\x6e\x70\162\145\x6d\151\x73\x65\x73"]) ? "\x73\151\x67\156\165\160" : "\162\145\x67\x69\x73\164\x65\162";
        goto jUfgk;
        I0xSv:
        $this->form_validation->set_rules("\145\155\x61\151\x6c", "\x45\x6d\141\151\154", "\x74\x72\x69\155\x7c\x72\145\161\x75\x69\x72\x65\x64\x7c\166\141\x6c\x69\x64\x5f\x65\155\x61\151\154");
        goto mFtjQ;
        hqEhP:
        $this->form_validation->set_rules("\143\x6f\x6d\160\x61\156\x79\x5f\x6e\x61\155\145", "\x43\x6f\x6d\x70\141\156\x79\x20\116\x61\155\x65", "\x74\x72\151\155\174\x72\145\x71\x75\151\x72\x65\144");
        goto I0xSv;
        jUfgk:
        if ($this->form_validation->run() == FALSE) {
            $this->{$page}($data);
        } else {
            goto sm8aP;
            XihNy:
            if (!($retData = $this->users->signup($data))) {
                goto RqBsK;
                RqBsK:
                $this->session->set_flashdata("\145\x72\162\157\x72", $this->users->message);
                goto so9KQ;
                zPtAN:
                return;
                goto zsb6z;
                so9KQ:
                $this->{$page}($data);
                goto zPtAN;
                zsb6z:
            }
            goto a05U_;
            eE7NF:
            $this->load->library("\x65\155\141\151\x6c");
            goto HDwUW;
            QCkjG:
            if (!empty($data["\157\x6e\160\162\145\155\x69\x73\x65\x73"])) {
                goto s4DPM;
                s4DPM:
                $licenseKey = $retData["\154\151\x63\x65\x6e\x73\145\x4b\145\x79"];
                goto zjg3V;
                fGp58:
                $content = sprintf(lang("\117\x4e\137\120\x52\105\x5f\x43\x4f\x4d\x50\137\122\x45\x47\111\123\x54\105\122\x5f\124\x45\x4d\120\114\x41\x54\105"), $data["\156\141\x6d\145"], $data["\156\141\x6d\x65"], $licenseKey, $downloadLinkTag);
                goto rcfu_;
                zjg3V:
                $downloadLink = "\150\x74\x74\x70\163\x3a\57\x2f\143\x70\56\x6f\x75\164\160\x75\x74\x62\157\x6f\153\x73\56\x63\157\155\x2f\151\156\x64\x65\x78\56\x70\x68\160\x2f\150\157\x6d\x65\x2f\144\x6f\167\156\154\x6f\x61\x64\57" . $retData["\x65\156\x63\111\x64"];
                goto Rq35z;
                Rq35z:
                $downloadLinkTag = "\x3c\141\x20\x68\162\145\x66\75\x22" . $downloadLink . "\42\40\x74\x61\162\x67\x65\x74\75\x22\x5f\x62\154\141\x6e\153\42\76" . $downloadLink . "\x3c\x2f\141\76";
                goto EC4Yj;
                EC4Yj:
                $subject = sprintf(lang("\x4f\116\137\120\122\105\x5f\x43\117\x4d\x50\137\x52\105\107\x49\123\124\105\x52\x45\104"), $data["\x6e\141\155\145"]);
                goto fGp58;
                rcfu_:
            } else {
                goto Vp3ZR;
                EykIn:
                $subject = sprintf(lang("\103\114\117\x55\x44\x5f\x43\117\115\120\x5f\x52\105\x47\x49\x53\x54\105\122\105\x44"), $data["\x6e\x61\155\x65"]);
                goto YuDRa;
                ody_P:
                $url = "\74\141\40\150\x72\x65\x66\75\42" . $url . "\42\x20\x74\x61\x72\147\x65\164\x3d\42\x5f\142\x6c\141\x6e\x6b\x22\76" . $url . "\74\x2f\x61\76";
                goto EykIn;
                YuDRa:
                $content = sprintf(lang("\103\x4c\117\125\104\137\x43\x4f\115\120\137\122\105\x47\x49\123\x54\105\122\137\x54\x45\115\120\x4c\101\x54\x45"), $data["\156\x61\155\x65"], $data["\156\x61\x6d\145"], $url, $data["\x65\155\141\x69\x6c"]);
                goto MFNPu;
                Vp3ZR:
                $url = site_url();
                goto ody_P;
                MFNPu:
            }
            goto y9WvE;
            HDwUW:
            $this->email->to($data["\x65\x6d\141\x69\154"]);
            goto QCkjG;
            JMhz6:
            $this->_post_odCrm($data);
            goto lfORP;
            VwRaJ:
            $this->_post_espoCrm($data);
            goto JMhz6;
            lYDIl:
            if (!$this->email->send()) {
            }
            goto HRpoZ;
            sm8aP:
            $result = $this->_check_captcha($data["\x63\141\160\164\143\150\141"]);
            goto UvQNO;
            a05U_:
            $data["\x69\x64"] = $retData["\151\144"];
            goto eE7NF;
            UvQNO:
            if (!$result) {
                goto RyAMo;
                RyAMo:
                @file_put_contents("\x6a\165\156\x6b\x2e\164\x78\164", "\103\141\160\x74\143\x68\141\40\106\x61\x69\x6c\x65\144\x9\11" . date("\x64\55\155\x2d\x59\x20\150\72\x69\72\163\x20\x61") . "\12\111\x50\x20\72\40" . $_SERVER["\x52\105\115\117\x54\x45\137\101\104\104\x52"] . "\12\x44\x41\x54\x41\40\x3a\x20" . print_R($data, true) . "\12\55\55\x2d\x2d\x2d\55\x2d\x2d\x2d\x2d\x2d\55\x2d\55\55\55\55\55\x2d\55\55\x2d\12", FILE_APPEND);
                goto gvjN1;
                gvjN1:
                $this->{$page}($data);
                goto A0K7g;
                A0K7g:
                return;
                goto blzP_;
                blzP_:
            }
            goto XihNy;
            HRpoZ:
            $this->session->set_flashdata("\163\x75\x63\143\145\163\x73", $this->users->message);
            goto VwRaJ;
            lfORP:
            redirect("\57\x2f\x6f\165\164\x70\165\164\142\x6f\x6f\x6b\x73\x2e\143\157\155\x2f\x74\150\141\x6e\x6b\55\x79\x6f\165\x2f\x3f\x74\x65\x6e\141\156\164\x3d" . $retData["\151\144"] . "\46\144\157\x77\x6e\154\x6f\x61\144\x3d" . base64_encode(gzcompress($downloadLink)));
            goto Wockg;
            y9WvE:
            $this->email->subject($subject);
            goto RVH04;
            RVH04:
            $this->email->message(nl2br($content));
            goto lYDIl;
            Wockg:
        }
        goto mlA79;
        xtYDC:
        $data["\x70\x61\x73\163\x77\157\162\x64"] = substr(str_shuffle("\x41\x42\x43\104\x45\x46\107\110\111\x4a\x4b\x4c\115\116\x4f\x50\121\122\x53\x54\x55\x56\127\x58\x59\132\141\142\x63\x64\145\146\147\150\x69\152\x6b\x6c\155\x6e\x6f\x70\x71\162\x73\x74\x75\166\167\x78\171\x7a\x30\x31\62\x33\x34\x35\x36\67\70\x39\x40\x23\44\45\x26\x2a\x5e\41\x3f\72\x3b\173\175\x5b\x5d\53\75\55\x5f\x7c"), 0, 8);
        goto D0G_m;
        bUt8l:
        if ($this->_is_junk($data)) {
            goto Kvv5j;
            Kvv5j:
            @file_put_contents("\x6a\165\156\153\x2e\164\170\x74", "\112\165\156\x6b\11\11" . date("\x64\55\x6d\55\x59\40\x68\x3a\151\x3a\x73\x20\x61") . "\xa\111\120\40\x3a\x20" . $_SERVER["\122\x45\x4d\x4f\124\x45\x5f\101\104\x44\x52"] . "\xa\104\101\124\101\40\x3a\x20" . print_R($data, true) . "\12\55\x2d\55\55\55\55\55\55\55\55\x2d\x2d\55\x2d\55\x2d\55\x2d\55\x2d\x2d\55\12", FILE_APPEND);
            goto xKidx;
            xKidx:
            redirect("\x2f\57\x6f\165\164\x70\x75\164\x62\x6f\x6f\153\x73\x2e\143\x6f\x6d\x2f\x74\150\x61\x6e\x6b\55\171\157\165\57");
            goto LHIrW;
            LHIrW:
            return false;
            goto KVxxL;
            KVxxL:
        }
        goto xtYDC;
        ibj_A:
        $data = $this->input->post();
        goto WYqWg;
        WYqWg:
        $data = $this->security->xss_clean($data);
        goto bUt8l;
        mlA79:
    }
    public function postcrm($rawData = array())
    {
        print_R($this->_post_odCrm(array("\x6e\141\155\x65" => "\x54\x65\163\x74\x20\116\141\155\145", "\143\157\x6d\160\141\156\171\137\x6e\x61\x6d\x65" => "\124\x65\163\x74\x20\143\x6f\155\160\x61\x6e\x79\x5f\156\x61\155\145", "\160\x68\x6f\156\145" => "\71\x36\x39\x38\71\x38\67\63\70\x38", "\x65\155\x61\151\x6c" => "\164\x73\165\162\145\x73\150\x70\x61\x6e\144\151\100\147\x6d\141\151\x6c\56\143\x6f\155")));
    }
    private function _post_odCrm($rawData = array())
    {
        goto dLUMJ;
        bOyU6:
        $srcId = !empty($_GET["\157\142\137\163\x6f\x75\162\x63\145\x5f\151\x64"]) ? $_GET["\x6f\142\x5f\x73\157\x75\162\143\x65\137\151\x64"] : (!empty($rawData["\x6f\142\137\x73\x6f\x75\162\143\145\137\151\x64"]) ? $rawData["\x6f\x62\137\163\157\x75\x72\x63\x65\137\151\x64"] : $src);
        goto tr0u2;
        b_2QY:
        $srcId = '';
        goto yMImh;
        tr0u2:
        return post_od_crm("\143\x72\145\x61\x74\x65\x2f\x6c\145\141\144\163", array("\x6e\x61\x6d\x65" => $rawData["\156\141\x6d\x65"], "\x63\157\155\160\141\156\171" => $rawData["\143\157\x6d\160\141\x6e\x79\x5f\x6e\141\x6d\145"], "\160\150\157\156\145" => $rawData["\x70\x68\x6f\156\x65"], "\145\155\x61\151\154" => $rawData["\145\x6d\141\x69\154"], "\x70\x72\x6f\x64\x75\x63\164" => "\117\165\164\160\165\x74\x20\102\x6f\x6f\153\x73", "\163\157\x75\162\143\x65\137\x69\x6e\x66\x6f" => array("\163\157\165\x72\x63\x65" => $src, "\163\162\143\x5f\143\154\x69\144" => $srcId, "\x75\163\145\162\x61\147\x65\x6e\x74" => $_SERVER["\x48\124\124\120\137\x55\123\105\x52\137\101\x47\x45\x4e\124"], "\x69\160" => $ip, "\x75\111\144" => $rawData["\x69\x64"])));
        goto qgouB;
        dLUMJ:
        $ip = '';
        goto pthed;
        yMImh:
        $src = !empty($_GET["\x6f\x62\137\x73\x6f\x75\162\x63\x65"]) ? $_GET["\x6f\142\x5f\x73\157\165\x72\143\x65"] : (!empty($rawData["\157\x62\x5f\163\x6f\x75\x72\x63\145"]) ? $rawData["\x6f\142\x5f\x73\157\165\x72\x63\x65"] : $src);
        goto bOyU6;
        p2nye:
        $src = '';
        goto b_2QY;
        pthed:
        if (!empty($_SERVER["\x48\x54\124\120\x5f\103\x4c\x49\105\116\x54\x5f\111\x50"])) {
            $ip = $_SERVER["\x48\124\124\x50\137\103\x4c\111\x45\x4e\124\137\x49\x50"];
        } elseif (!empty($_SERVER["\110\124\x54\120\x5f\130\x5f\106\117\x52\127\101\122\x44\105\104\137\x46\x4f\122"])) {
            $ip = $_SERVER["\110\124\124\x50\137\130\137\106\117\122\x57\101\x52\x44\105\104\x5f\x46\117\122"];
        } else {
            $ip = $_SERVER["\x52\105\115\x4f\x54\x45\x5f\x41\104\104\122"];
        }
        goto p2nye;
        qgouB:
    }
    private function _post_espoCrm($rawData = array())
    {
        goto eukIS;
        sRPSs:
        $url = "\150\164\164\160\72\57\57\x63\162\x6d\x2e\163\x72\x69\155\x61\170\56\x63\157\x6d\57\x61\160\x69\57\x76\61\57\x4c\145\141\x64\x43\141\x70\164\165\x72\x65\57\x35\x63\65\x63\60\x32\66\x33\x61\x63\x30\144\x65\x63\x65\143\146";
        goto dAHSx;
        bM8L6:
        $response = curl_exec($ch);
        goto qxC19;
        EBKPo:
        $ch = curl_init($url);
        goto TSX60;
        eukIS:
        $data = array("\x66\x69\162\x73\x74\116\x61\155\x65" => $rawData["\156\141\x6d\x65"], "\x6c\x61\x73\164\116\141\155\145" => $rawData["\x63\157\155\160\x61\156\171\x5f\x6e\x61\x6d\145"], "\x70\x68\x6f\156\x65\x4e\x75\x6d\x62\x65\162" => $rawData["\160\150\157\156\x65"], "\x65\x6d\x61\151\154\x41\144\144\162\145\163\x73" => $rawData["\145\x6d\x61\x69\x6c"]);
        goto sRPSs;
        LGCnt:
        curl_setopt($ch, CURLOPT_POST, true);
        goto AWLVW;
        AWLVW:
        curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
        goto xgKMj;
        j8ZPx:
        return $response;
        goto mK6MO;
        dAHSx:
        $data = json_encode($data);
        goto EBKPo;
        CZFX0:
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        goto LGCnt;
        qxC19:
        curl_close($ch);
        goto j8ZPx;
        xgKMj:
        curl_setopt($ch, CURLOPT_HTTPHEADER, array("\x43\157\x6e\x74\x65\156\164\55\x54\171\160\x65\x3a\x20\x61\160\160\x6c\x69\143\x61\164\x69\157\156\57\x6a\x73\x6f\x6e", "\x43\157\156\x74\145\x6e\164\55\x4c\x65\x6e\x67\x74\x68\72\40" . strlen($data)));
        goto bM8L6;
        TSX60:
        curl_setopt($ch, CURLOPT_URL, $url);
        goto CZFX0;
        mK6MO:
    }
    public function login_post()
    {
        goto Bi_5D;
        Bi_5D:
        $_POST = $data = $this->input->post();
        goto l4Daz;
        L2koW:
        if ($this->form_validation->run() == FALSE) {
            if ($this->input->is_ajax_request()) {
                goto feu0Z;
                feu0Z:
                $this->response->error(validation_errors());
                goto I0w_2;
                I0w_2:
                $this->response->write();
                goto b_PNl;
                b_PNl:
                return false;
                goto bJyZg;
                bJyZg:
            }
            $this->load->page("\154\157\147\x69\156");
        } else {
            goto ZBkz_;
            RFv0a:
            $roleCode = get_user_data("\x72\x6f\x6c\x65\x43\x6f\x64\145");
            goto uEYMe;
            G2O4S:
            $retData = $this->users->login($data);
            goto EU905;
            ZmJsj:
            echo "\x3c\x2f\x73\143\x72\151\160\164\76";
            goto z57Lh;
            uEYMe:
            echo "\74\163\x63\x72\x69\x70\x74\76";
            goto PIl1T;
            ceau4:
            if ($this->input->is_ajax_request()) {
                goto LLlcS;
                D96c5:
                $this->response->write();
                goto ucq4K;
                ucq4K:
                return true;
                goto zBrDO;
                LLlcS:
                $this->response->set_data($retData);
                goto D96c5;
                zBrDO:
            }
            goto RFv0a;
            fgOxD:
            if (empty($auth_token)) {
                $captcha = true;
                if (isset($data["\143\x61\160\x74\143\x68\x61"]) && !$this->_check_captcha($data["\x63\141\x70\164\143\x68\141"])) {
                    goto N9tvJ;
                    Tt0jY:
                    redirect("\154\x6f\147\151\156");
                    goto cRWbF;
                    N9tvJ:
                    $this->session->set_flashdata("\163\x68\157\x77\x5f\x63\141\160\164\x63\150\x61", true);
                    goto Tt0jY;
                    cRWbF:
                    return;
                    goto b4HQo;
                    b4HQo:
                }
            }
            goto G2O4S;
            EU905:
            $this->users->access_log($retData ? $retData : $data);
            goto cBaZO;
            nGhDn:
            $auth_token = stripslashes($auth_token ? $auth_token : '');
            goto fgOxD;
            hQ2WL:
            echo "\154\x65\x74\40\x63\x75\x72\x5f\145\155\141\x69\154\40\x9\75\x20\47" . $retData["\x65\155\x61\x69\154"] . "\47\73\xd\xa\11\11\11\x9\x6c\x65\164\40\x61\143\143\40\x3d\40\154\x6f\x63\141\154\x53\164\157\162\x61\x67\145\x2e\147\145\164\111\164\145\x6d\x28\47\x64\x65\166\x69\x63\145\x5f\x61\143\x63\x6f\x75\x6e\164\x73\x27\x29\40\x7c\174\40\x27\x27\73\xd\xa\x9\11\x9\11\x61\x63\143\40\x3d\x20\x61\x63\x63\56\x73\160\x6c\x69\x74\50\x27\x2c\x27\51\73\15\xa\11\11\11\x9\151\146\x20\50\x61\143\x63\x2e\x69\x6e\144\x65\170\x4f\146\x28\x63\165\162\x5f\x65\x6d\x61\151\x6c\51\x3d\x3d\55\61\x29\x20\173\15\xa\11\x9\x9\x9\x9\141\x63\x63\56\160\x75\x73\150\x28\143\x75\162\x5f\145\x6d\141\151\154\51\73\xd\xa\x9\x9\x9\11\x7d\15\12\x9\x9\x9\x9\154\157\143\x61\154\123\x74\157\162\141\x67\x65\56\163\x65\x74\111\x74\x65\155\x28\x27\144\x65\x76\x69\x63\x65\x5f\x61\x63\x63\157\165\x6e\164\163\47\x2c\x61\x63\143\x2e\152\x6f\x69\156\x28\47\x2c\x27\x29\x29\73\15\12\11\11\x9\x9\167\x69\x6e\x64\157\167\x2e\154\157\143\x61\x74\151\157\x6e\x2e\150\162\145\x66\40\75\x20\47" . ($roleCode != "\105" ? site_url("\x68\x6f\x6d\x65") : site_url("\x65\x63\157\x6d\x2f\143\157\x6e\x66\151\x67")) . "\47\x3b";
            goto ZmJsj;
            PIl1T:
            if (!empty($retData["\x64\x43\157\x64\145"])) {
                echo "\154\145\164\x20\x64\x43\157\x64\145\40\75\x20\154\157\143\141\154\123\164\157\x72\141\x67\145\56\x67\x65\164\x49\164\x65\x6d\x28\47\144\103\157\x64\145\x27\x29\73\15\12\11\x9\x9\x9\x9\x6c\x65\x74\x20\x63\x75\x72\137\144\x43\157\144\x65\x20\x9\x3d\40\47" . $retData["\144\103\x6f\x64\x65"] . "\x27\x3b\11\x9\11\11\xd\12\11\11\x9\11\x9\x69\x66\40\x28\x64\103\157\x64\x65\x21\x3d\143\165\x72\137\144\103\157\x64\145\51\40\173\xd\12\x9\x9\11\11\x9\x9\154\157\143\141\154\123\x74\157\162\141\147\x65\56\163\x65\x74\111\164\x65\155\50\x27\144\x65\x76\x69\x63\x65\x5f\141\143\143\157\x75\x6e\164\163\x27\54\47\47\x29\x3b\xd\xa\x9\11\11\11\x9\x9\154\157\x63\x61\154\123\164\157\162\141\x67\145\56\163\145\x74\x49\x74\x65\x6d\50\x27\x64\x43\157\144\145\x27\x2c\143\165\162\x5f\x64\x43\157\144\x65\x29\73\xd\12\11\11\x9\11\x9\175";
            }
            goto hQ2WL;
            z57Lh:
            exit;
            goto TZz8V;
            cBaZO:
            if (!$retData || !$retData["\x69\x64"]) {
                goto a6YSq;
                zH35U:
                if ($this->input->is_ajax_request()) {
                    goto zACV1;
                    bwj9d:
                    return false;
                    goto Gzd9E;
                    zACV1:
                    if ($err == "\104\105\126\111\103\x45\137\105\x52\122\117\x52") {
                        set_status_header(401);
                    } else {
                        $this->response->error($err);
                    }
                    goto wmGwE;
                    wmGwE:
                    $this->response->write();
                    goto bwj9d;
                    Gzd9E:
                }
                goto Pm3vf;
                a6YSq:
                $err = empty($this->users->message) ? lang("\x55\116\x4b\117\x57\116\x5f\x45\122\x52\x4f\122") : $this->users->message;
                goto zH35U;
                Pm3vf:
                if ($err != "\x44\x45\126\x49\x43\105\137\105\x52\122\x4f\x52") {
                    goto H5X0i;
                    nqXAI:
                    redirect("\154\157\x67\x69\156");
                    goto iHnBg;
                    H5X0i:
                    $this->session->set_flashdata("\145\162\162\x6f\x72", lang($err));
                    goto nqXAI;
                    iHnBg:
                    return;
                    goto Z8jMb;
                    Z8jMb:
                } else {
                    echo "\74\x73\143\x72\151\160\x74\x3e\xd\12\x9\11\11\x9\11\x6c\157\143\x61\154\123\x74\157\x72\x61\147\145\x2e\163\x65\164\x49\x74\145\155\x28\47\144\103\157\144\x65\47\54\47\x27\51\73\15\xa\11\x9\11\11\x9\167\x69\156\144\x6f\167\x2e\x6c\157\x63\x61\164\151\x6f\156\56\x68\x72\145\x66\40\75\40\47" . site_url("\x6c\x6f\x67\151\156") . "\47\73\15\xa\x9\11\11\11\x9\74\x2f\163\x63\162\x69\160\164\x3e";
                    exit;
                }
                goto N0jwN;
                N0jwN:
            }
            goto ceau4;
            ZBkz_:
            $auth_token = $this->input->get_request_header("\x61\165\x74\150\55\164\x6f\153\145\x6e", TRUE);
            goto nGhDn;
            TZz8V:
        }
        goto FUQ1H;
        QMDHz:
        if (isset($data["\x63\x61\x70\164\143\x68\141"])) {
            $this->form_validation->set_rules("\x63\x61\160\x74\x63\x68\141", "\x43\x61\160\x74\x63\x68\x61", "\x74\162\x69\x6d\x7c\162\x65\161\x75\151\162\x65\x64");
        }
        goto L2koW;
        YguOi:
        $this->form_validation->set_rules("\x70\x61\x73\163\167\x6f\162\x64", "\x50\141\x73\x73\x77\x6f\162\144", "\x74\x72\x69\x6d\174\x72\145\x71\x75\151\162\145\x64");
        goto QMDHz;
        l4Daz:
        $this->form_validation->set_rules("\x6c\x6f\147\151\156\116\141\x6d\x65", "\x45\155\141\x69\x6c", "\164\x72\x69\155\174\x72\145\161\x75\151\x72\x65\144");
        goto YguOi;
        FUQ1H:
    }
    public function passwd($uid = '', $email = '', $pass = '')
    {
        goto RMFL9;
        l8oWU:
        echo "\x55\x50\104\101\x54\x45\x20\x6f\x62\x5f\x75\x73\x65\x72\x73\x20\x53\x45\x54\40\160\141\163\x73\167\157\x72\144\x3d\42" . $hash . "\x22\40\x57\110\x45\x52\x45\40\151\144\x3d" . $uid . "\x3b" . PHP_EOL . PHP_EOL;
        goto ihtRf;
        kqfYQ:
        $this->load->library("\157\x62\x5f\154\151\x63\145\156\x73\x65");
        goto DwhbC;
        rUNbi:
        echo "\x3c\x70\162\145\40\x73\164\171\154\145\75\x22\x62\x61\x63\x6b\x67\162\157\x75\x6e\x64\72\x20\43\105\105\105\73\160\141\144\x64\151\156\147\72\x20\62\60\x70\170\73\144\x69\163\x70\154\141\171\x3a\40\151\156\154\151\x6e\145\55\x62\x6c\x6f\143\x6b\73\x62\x6f\162\144\x65\x72\x3a\x20\61\x70\x78\x20\163\157\154\x69\144\x20\162\x67\142\141\x28\x30\x2c\x30\54\60\x2c\60\56\x33\51\x3b\155\x61\162\x67\x69\156\72\40\60\x3b\x22\76";
        goto ZfcEU;
        DwhbC:
        $hash = $this->ob_license->hash_ob_password($email . $uid . $pass);
        goto rUNbi;
        aTnY0:
        $email = !empty($_GET["\145\x6d\141\x69\154"]) ? $_GET["\x65\x6d\141\151\x6c"] : $email;
        goto gl_5k;
        Aibqa:
        echo "\x75\x73\145\40\x6f\x75\164\x70\x75\164\x62\x6f\157\x6b\x73\x3b" . PHP_EOL . PHP_EOL;
        goto l8oWU;
        T3092:
        $pass = !empty($_GET["\x70\141\163\x73"]) ? $_GET["\160\x61\x73\163"] : $pass;
        goto kqfYQ;
        gl_5k:
        $uid = !empty($_GET["\165\151\x64"]) ? $_GET["\165\151\x64"] : $uid;
        goto T3092;
        RMFL9:
        if (empty($_GET)) {
            goto BHZWO;
            KdtdS:
            echo "\125\x49\x44\40\72\x20\74\151\x6e\160\x75\164\x20\164\x79\160\145\x3d\x22\164\x65\x78\x74\x22\40\156\141\x6d\x65\x3d\x22\165\151\x64\42\40\166\x61\x6c\165\145\75\x22\42\40\57\x3e\x3c\142\x72\76\74\142\162\76";
            goto hx1Gc;
            RWoxY:
            echo "\x3c\57\146\x6f\162\x6d\x3e";
            goto TkpsX;
            hx1Gc:
            echo "\x45\155\x61\151\x6c\x20\72\x20\74\151\156\160\x75\164\x20\x74\x79\x70\x65\75\42\145\155\141\x69\x6c\42\x20\x6e\x61\x6d\x65\75\42\145\155\x61\x69\154\42\40\166\x61\154\165\145\x3d\42\x22\x20\x2f\x3e\74\x62\x72\76\x3c\142\x72\x3e";
            goto stHWa;
            BHZWO:
            echo "\74\x66\x6f\162\x6d\x20\155\x65\x74\x68\x6f\144\75\42\147\145\x74\x22\76";
            goto KdtdS;
            TkpsX:
            return;
            goto HpTqt;
            Z4XST:
            echo "\x3c\x69\156\160\165\x74\x20\164\x79\160\x65\75\42\x73\x75\x62\x6d\x69\164\42\40\x6e\x61\155\145\x3d\x22\163\165\142\155\151\x74\42\40\x76\141\x6c\165\145\75\42\x53\x75\142\x6d\x69\x74\42\40\x2f\x3e";
            goto RWoxY;
            stHWa:
            echo "\x50\x61\x73\163\x77\157\162\144\40\72\x20\74\x69\x6e\160\x75\164\x20\164\x79\160\145\75\x22\x74\145\x78\x74\42\40\x6e\x61\155\x65\x3d\42\x70\141\x73\163\x22\40\166\x61\x6c\x75\145\75\42\141\x64\155\x69\x6e\61\62\42\40\x2f\x3e\x3c\142\162\76\74\x62\162\x3e";
            goto Z4XST;
            HpTqt:
        }
        goto aTnY0;
        ZfcEU:
        echo "\x6d\x79\x73\x71\x6c\x20\55\x75\40\162\x6f\157\164\40\x2d\x68\x20\x6c\x6f\x63\x61\x6c\150\x6f\x73\x74\x20\x2d\x2d\160\x6f\162\164\x3d\x34\65\x30\66\x20\55\x70\x69\x62\x57\x69\152\x74\145\151\147\x35" . PHP_EOL . PHP_EOL;
        goto Aibqa;
        ihtRf:
        echo "\74\57\x70\162\145\x3e";
        goto fYhor;
        fYhor:
    }
    public function forgotpassword_post()
    {
        goto SYwms;
        jm8xU:
        return true;
        goto Xhup5;
        FIf7e:
        if ($this->form_validation->run() == FALSE) {
            $this->session->set_flashdata("\145\x72\x72\x6f\x72", validation_errors());
            $this->load->page("\146\157\x72\x67\x6f\164\x70\x61\x73\x73\167\157\x72\x64");
        } else {
            $data = $this->input->post();
            if ($retData = $this->users->forgotpassword($data)) {
                $this->session->set_flashdata("\163\165\x63\143\145\163\x73", lang("\x53\x55\x43\x43\105\x53\123\x5f\122\x45\x53\x45\124\137\x45\115\x41\111\x4c\x5f\123\x45\116\124"));
                redirect(str_replace("\141\x70\x70\56\x6f\165\164\160\165\x74\x62\x6f\x6f\x6b\x73\56\143\157\155", "\143\x70\56\x6f\x75\164\160\x75\x74\x62\x6f\x6f\153\163\56\x63\x6f\155", site_url("\154\157\147\151\156")));
            } else {
                $this->session->set_flashdata("\x65\x72\162\x6f\162", lang("\x53\115\x54\x50\x5f\x4e\117\x54\x5f\x53\x45\124"));
                redirect("\146\157\x72\147\157\x74\160\x61\163\x73\167\157\162\144");
            }
        }
        goto jm8xU;
        SYwms:
        $this->form_validation->set_rules("\x65\x6d\x61\151\154", "\x45\x6d\141\x69\154", "\x74\x72\151\155\x7c\x72\145\x71\x75\151\x72\x65\x64\x7c\x76\x61\x6c\x69\x64\x5f\145\155\141\x69\154");
        goto FIf7e;
        Xhup5:
    }
    public function reset_confirm()
    {
        goto RexpS;
        GnCUJ:
        redirect("\146\157\x72\x67\x6f\x74\x70\141\163\x73\167\157\162\144");
        goto zGQKW;
        sBI6S:
        if ($this->users->reset_confirm($data)) {
            goto NZGnE;
            SLZwU:
            $this->load->page("\162\145\163\145\164\x5f\x63\x6f\155\160\x6c\145\164\145");
            goto QKAqD;
            NZGnE:
            $this->session->set_flashdata("\163\x75\143\x63\145\x73\163", lang("\x53\125\x43\x43\x45\123\123\x5f\x52\x45\x53\105\x54\137\103\x4f\x4e\106\x49\x52\115\x45\x44"));
            goto SLZwU;
            QKAqD:
            return;
            goto JDXVP;
            JDXVP:
        }
        goto GnCUJ;
        RexpS:
        $data = $this->input->get();
        goto IE2AI;
        IE2AI:
        if (empty($data["\x61\x63\x74\137\153\x65\171"])) {
            redirect("\154\x6f\x67\x69\156");
        }
        goto sBI6S;
        zGQKW:
    }
    public function reset_complete_post()
    {
        goto qEtqY;
        rOf9P:
        $data = $this->input->post();
        goto v4fy5;
        ZmdWW:
        if (empty($data)) {
            goto BNJ3C;
            BNJ3C:
            $this->session->set_flashdata("\x72\160\x5f\165\x73\x65\162", $user);
            goto nbdoK;
            nbdoK:
            $this->load->page("\x72\145\x73\x65\164\x5f\x63\157\x6d\160\154\145\x74\145");
            goto s5pRN;
            s5pRN:
            return;
            goto G8uZm;
            G8uZm:
        }
        goto fNKpd;
        nLVsY:
        if ($this->form_validation->run() == FALSE) {
            goto OFh5B;
            OFh5B:
            $this->session->set_flashdata("\145\x72\162\157\162", validation_errors());
            goto Wq392;
            Wq392:
            $this->session->set_flashdata("\x72\160\x5f\x75\163\145\162", $user);
            goto FuUw5;
            FuUw5:
            redirect("\162\145\163\x65\164\137\x63\x6f\155\160\154\145\x74\x65");
            goto T5BT5;
            T5BT5:
        }
        goto Ua9UN;
        v4fy5:
        if (empty($user)) {
            redirect("\146\x6f\162\147\x6f\164\160\x61\x73\163\167\157\x72\x64");
            return false;
        }
        goto ZmdWW;
        Ua9UN:
        if (!$this->users->reset_complete($data)) {
            goto m6Z4D;
            m6Z4D:
            $this->session->set_flashdata("\x65\x72\x72\x6f\x72", lang("\105\x52\x52\x4f\x52\137\x52\105\123\x45\124\x5f\120\101\x53\123\127\117\x52\104"));
            goto s0609;
            s0609:
            redirect("\x66\157\x72\147\x6f\x74\160\x61\163\163\167\x6f\162\144");
            goto w12zl;
            w12zl:
            return false;
            goto PhMf4;
            PhMf4:
        } else {
            $this->session->set_flashdata("\x73\x75\143\x63\x65\163\x73", lang("\123\x55\103\x43\x45\123\x53\137\122\105\x53\x45\x54\x5f\103\x4f\x4d\120\114\105\124\105\104"));
            redirect(str_replace("\141\x70\x70\x2e\x6f\165\164\160\165\x74\142\157\157\153\x73\56\x63\x6f\155", "\143\x70\56\x6f\x75\164\160\165\x74\142\157\157\153\163\56\143\157\x6d", site_url("\154\157\147\x69\x6e")));
        }
        goto jCoH_;
        qEtqY:
        $user = $this->session->flashdata("\162\x70\x5f\x75\x73\x65\x72");
        goto rOf9P;
        cZKwA:
        $this->form_validation->set_rules("\143\x6f\x6e\x66\x69\x72\155\137\160\x61\x73\163\167\157\x72\x64", "\103\x6f\x6e\x66\151\x72\x6d\40\120\x61\x73\163\167\157\x72\x64", "\x74\162\151\x6d\x7c\162\x65\161\165\151\162\x65\144\174\155\141\164\143\150\x65\163\133\160\x61\x73\163\x77\x6f\162\x64\x5d");
        goto nLVsY;
        fNKpd:
        $this->form_validation->set_rules("\160\141\x73\x73\x77\x6f\162\x64", "\x50\x61\x73\x73\x77\x6f\162\144", "\x74\x72\x69\155\174\162\145\x71\x75\151\x72\145\x64\174\155\x69\156\137\154\145\x6e\x67\164\x68\133\x36\135");
        goto cZKwA;
        jCoH_:
    }
    public function branch_listing()
    {
        goto Sxlny;
        zMVnc:
        $ret = $this->users->get_userbranch($data);
        goto QPMVI;
        rMuJ5:
        if (!empty($ret)) {
            $this->response->set_data("\x69\164\x65\155\x73", $ret, true);
        }
        goto CpjQq;
        CpjQq:
        $this->response->write();
        goto BR5Xy;
        QPMVI:
        $this->response->success();
        goto rMuJ5;
        Sxlny:
        $data = $this->request->post();
        goto zMVnc;
        BR5Xy:
    }
    public function listing()
    {
        goto hOAd9;
        hOAd9:
        $list = $this->users->get_list("\x75\56\151\144\x2c\x20\x75\x2e\x6e\x61\155\x65\54\x20\x75\x2e\x65\x6d\x61\x69\154\54\x20\x75\x2e\154\x6f\147\x69\156\116\x61\155\x65\x2c\x20\165\56\x70\x68\157\156\145\x2c\x20\x63\165\x2e\162\x6f\154\x65\x49\x64\54\40\x72\56\x72\157\154\x65\103\x6f\144\x65\54\40\x72\x2e\x72\x6f\x6c\145\x4e\141\x6d\145\54\x20\54\x20\143\165\x2e\151\156\x76\x73\x69\x67\156\40\141\x73\40\151\156\166\x73\151\x67\156");
        goto bJYfY;
        gh2qY:
        $this->response->write();
        goto eqjCJ;
        bJYfY:
        $this->response->success();
        goto GdWgC;
        GdWgC:
        if (!empty($list)) {
            $this->response->set_data("\x69\164\x65\155\163", $list, true);
        }
        goto gh2qY;
        eqjCJ:
    }
    public function user_list_map()
    {
        goto O8YjP;
        Uze3Q:
        if (!empty($list)) {
            $this->response->set_data("\x69\x74\145\x6d\x73", $list, true);
        }
        goto DR0tE;
        O8YjP:
        $list = $this->users->user_list_map();
        goto kgI8Z;
        kgI8Z:
        $this->response->success();
        goto Uze3Q;
        DR0tE:
        $this->response->write();
        goto i5mSK;
        i5mSK:
    }
    public function details($uid = 0)
    {
        goto kZBgY;
        QPIu9:
        if (!empty($data)) {
            goto jVjMS;
            BdfZj:
            $this->response->set_data($data);
            goto BWMLW;
            jVjMS:
            unset($data["\160\x61\163\x73\x77\x6f\x72\x64"]);
            goto vb3cL;
            vb3cL:
            $this->response->success();
            goto BdfZj;
            BWMLW:
        } else {
            $this->response->error($this->users->message);
        }
        goto WnekX;
        kZBgY:
        $data = $this->users->get_user($uid);
        goto QPIu9;
        WnekX:
        $this->response->write();
        goto sBb6K;
        sBb6K:
    }
    public function map()
    {
        goto M1te9;
        n0Rua:
        return;
        goto B33nn;
        qauDv:
        $uId = $this->users->map_user($postData);
        goto r3z2x;
        r3z2x:
        $this->response->success("\x53\x55\x43\x43\x45\x53\x53\x5f\x53\101\x56\x45");
        goto D2hX_;
        M1te9:
        $postData = $this->request->post();
        goto qauDv;
        wU6gf:
        $this->response->write();
        goto n0Rua;
        D2hX_:
        $this->response->set_data("\151\144", $uId);
        goto wU6gf;
        B33nn:
    }
    public function save()
    {
        goto nUsD1;
        nUsD1:
        $_POST = $postData = $this->request->post();
        goto SwnrX;
        kq_d0:
        $uId = $this->users->save($postData);
        goto gV6r1;
        cRMbb:
        if ($this->form_validation->run() == FALSE) {
            goto g3EYL;
            xuVcB:
            $this->response->write();
            goto RjS_J;
            RjS_J:
            return false;
            goto cUSQQ;
            g3EYL:
            $this->response->error(validation_errors());
            goto xuVcB;
            cUSQQ:
        }
        goto kq_d0;
        X3rc9:
        return;
        goto DeD_q;
        btisv:
        if (!empty($postData["\151\144"]) && !empty($postData["\x63\150\141\156\147\145\120\x61\163\x73\167\157\162\144"])) {
            if (get_user_data("\x69\x73\x50\162\151\155\x65\125\163\145\162") != 1 || get_user_data("\151\x64") == $postData["\x69\144"]) {
                $_POST["\160\x61\x73\163\167\x6f\162\144"] = $postData["\160\x61\163\x73\167\157\x72\x64"];
            } else {
                $this->form_validation->set_rules("\160\x61\163\x73\167\x6f\162\x64", "\x50\141\163\x73\167\x6f\162\x64", "\164\x72\x69\155\x7c\x72\145\161\x75\151\x72\x65\144\174\155\x69\156\137\154\145\156\x67\164\150\133\x36\135");
            }
        }
        goto cRMbb;
        SwnrX:
        $this->load->library("\146\157\x72\155\x5f\166\141\154\x69\x64\x61\164\x69\157\156");
        goto d_BAm;
        rXcLn:
        $this->form_validation->set_rules("\145\x6d\x61\x69\154", "\x45\155\141\x69\x6c", "\164\x72\151\x6d\174\162\145\x71\165\x69\162\x65\x64\x7c\166\x61\x6c\x69\x64\137\x65\155\141\151\x6c" . $unique_validate);
        goto DBShP;
        gV6r1:
        if ($uId) {
            $this->response->success("\123\x55\103\103\x45\123\123\137\123\101\126\x45");
            $this->response->set_data("\x69\144", $uId);
        } else {
            $this->response->error($this->users->message ? $this->users->message : "\x53\101\126\105\137\x45\122\122\x4f\x52");
        }
        goto uCV0K;
        d_BAm:
        $unique_validate = "\x7c\151\163\137\x75\156\151\x71\165\145\x5b\165\163\x65\162\x73\56\145\155\x61\151\x6c\135";
        goto pahaA;
        uCV0K:
        $this->response->write();
        goto X3rc9;
        pahaA:
        if (empty($postData["\151\144"])) {
            goto i703M;
            u2AzH:
            if ($row && empty($row["\x72\x6f\x6c\145\111\x64"])) {
                goto BUoyr;
                T0_6U:
                $this->response->set_data("\165\163\x65\x72", $row);
                goto L8Qct;
                DTXRc:
                return false;
                goto aS5Rk;
                s83fx:
                $this->response->set_data("\x6d\163\147", sprintf(lang("\125\123\x45\122\x5f\x45\130\x49\x53\x54\123"), $row["\156\x61\x6d\x65"], $postData["\145\155\x61\151\x6c"]));
                goto T0_6U;
                BUoyr:
                $this->response->set_data("\x64\165\x70\x5f\143\x6f\x6e\x66\151\x72\x6d", 1);
                goto s83fx;
                L8Qct:
                $this->response->write();
                goto DTXRc;
                aS5Rk:
            }
            goto XfXoi;
            raame:
            $this->db->join("\x63\x6f\x6d\x70\165\x73\x65\162\163\40\141\x73\x20\143\165", "\x63\x75\x2e\165\x73\x65\x72\x49\x64\x3d\x75\56\151\144\x20\141\156\x64\40\x63\165\56\143\x49\144\x3d" . get_company("\151\144"), "\154\145\146\164");
            goto jQD0Y;
            jQD0Y:
            $row = $this->db->where("\165\56\x65\155\x61\x69\x6c", $postData["\x65\155\x61\151\154"])->get()->row_array();
            goto u2AzH;
            i703M:
            $this->db->select("\165\56\151\144\54\165\56\156\141\155\x65\x2c\x63\165\x2e\162\157\x6c\145\111\x64")->from("\x75\x73\145\162\x73\x20\x61\x73\40\x75");
            goto raame;
            XfXoi:
        }
        goto rXcLn;
        DBShP:
        if (empty($postData["\x69\144"])) {
            $this->form_validation->set_rules("\x70\141\x73\163\167\157\x72\144", "\x50\141\163\x73\x77\157\x72\x64", "\164\162\151\x6d\x7c\x72\145\161\x75\x69\162\x65\x64\x7c\x6d\x69\x6e\x5f\x6c\x65\156\x67\x74\150\x5b\x36\x5d");
        }
        goto btisv;
        DeD_q:
    }
    public function delete($id = '')
    {
        if (!$id) {
            goto mejd9;
            mejd9:
            $this->response->error("\x45\x72\x72\x6f\162");
            goto X5ASi;
            VTCIp:
            return false;
            goto td3Z0;
            X5ASi:
            $this->response->write();
            goto VTCIp;
            td3Z0:
        }
        if ($this->users->delete($id)) {
            goto TpmiE;
            PXnTn:
            $this->response->write();
            goto dHBSh;
            TpmiE:
            $this->response->success();
            goto PXnTn;
            dHBSh:
            return true;
            goto uHJig;
            uHJig:
        } else {
            goto KFtvd;
            KFtvd:
            $this->response->error($this->users->message);
            goto RdVSE;
            RdVSE:
            $this->response->write();
            goto NF8Pr;
            NF8Pr:
            return false;
            goto AQDan;
            AQDan:
        }
    }
    public function setcompany($cId, $bId = '')
    {
        goto YrIu7;
        d3quD:
        $result = $this->users->set_default_company($cId, $bId);
        goto CPqVR;
        CPqVR:
        if (!$result) {
            $this->response->error($this->users->message);
        } else {
            $this->response->success();
        }
        goto wUPxC;
        YrIu7:
        if (empty($cId)) {
            goto KtU3r;
            s8MLd:
            $this->response->write();
            goto wF9ff;
            KtU3r:
            $this->response->error("\x43\x6f\155\x70\141\x6e\x79\40\111\104\x20\x4d\x69\163\163\x69\156\x67");
            goto s8MLd;
            wF9ff:
            return;
            goto KMP4C;
            KMP4C:
        }
        goto d3quD;
        wUPxC:
        $this->response->write();
        goto iVs_8;
        iVs_8:
    }
    private function _valid_fields($data, $fields = array())
    {
        goto pvqsW;
        OfacY:
        C9Ww0:
        goto H4YW7;
        tdCdU:
        foreach ($fields as $val) {
            if (empty($data[$val])) {
                return false;
            }
            YC_6V:
        }
        goto OfacY;
        H4YW7:
        return true;
        goto IldKn;
        pvqsW:
        if (empty($data)) {
            return false;
        }
        goto tdCdU;
        IldKn:
    }
    function roles()
    {
        goto VcTNe;
        s16yV:
        $this->response->write();
        goto GlhOZ;
        cWSBl:
        $this->response->success();
        goto dqzjR;
        dqzjR:
        if (!empty($items)) {
            $this->response->set_data("\x69\x74\145\x6d\x73", $items, true);
        }
        goto s16yV;
        GlhOZ:
        return true;
        goto Ntdfg;
        VcTNe:
        $items = $this->users->get_roles_list();
        goto cWSBl;
        Ntdfg:
    }
    function role_modules($roleCode = '')
    {
        goto YhMVc;
        YXlK3:
        $this->response->write();
        goto T8iiX;
        T8iiX:
        return true;
        goto JGEO_;
        YhMVc:
        $items = $this->users->get_role_modules($roleCode);
        goto tD_Qf;
        tD_Qf:
        $this->response->success();
        goto ulivq;
        ulivq:
        $this->response->set_data("\x69\164\x65\x6d\163", $items);
        goto YXlK3;
        JGEO_:
    }
    function role($id)
    {
        goto FxfhP;
        W21QL:
        $this->response->success();
        goto nM8sW;
        r0680:
        return true;
        goto mW5FZ;
        FxfhP:
        $result = $this->users->get_role_item($id);
        goto W21QL;
        CMrs6:
        $this->response->write();
        goto r0680;
        dVafQ:
        $this->response->set_data($result);
        goto CMrs6;
        nM8sW:
        if (!empty($result["\x70\145\x72\x6d\151\163\x73\151\157\x6e\x73"])) {
            $this->response->set_data("\160\x65\x72\155\x69\163\x73\151\157\156\163", $result["\160\x65\x72\155\151\x73\x73\x69\157\156\x73"], true);
            unset($result["\x70\x65\x72\155\151\163\163\151\157\156\163"]);
        }
        goto dVafQ;
        mW5FZ:
    }
    function role_save()
    {
        goto V8NXy;
        kXiZC:
        return true;
        goto uIrgc;
        OwtSO:
        $this->load->library("\x66\157\x72\155\x5f\x76\x61\154\151\x64\x61\164\x69\157\156");
        goto TGXBJ;
        maL7x:
        if (!($id = $this->users->roles_save($data))) {
            $this->response->error($this->companyModel->message);
        } else {
            $this->response->success("\x53\125\x43\103\x45\123\x53\137\x53\x41\x56\105");
            $this->response->set_data("\151\144", $id);
        }
        goto egeD5;
        b1Bd0:
        if ($this->form_validation->run() == FALSE) {
            goto vNzAa;
            vNzAa:
            $this->response->error(validation_errors());
            goto dBUlE;
            dBUlE:
            $this->response->write();
            goto cQ4Bd;
            cQ4Bd:
            return false;
            goto kAA3p;
            kAA3p:
        }
        goto maL7x;
        egeD5:
        $this->response->write();
        goto kXiZC;
        V8NXy:
        $_POST = $data = $this->request->post();
        goto OwtSO;
        TGXBJ:
        $this->form_validation->set_rules("\162\157\154\145\116\141\x6d\145", "\x52\x6f\x6c\x65\40\156\x61\155\145", "\164\x72\x69\155\174\162\145\x71\165\x69\x72\x65\144\x7c\165\156\x69\161\165\145\x65\x5f\164\157\137\x63\157\155\x70\x61\156\171\133\162\157\x6c\145\56\162\x6f\x6c\x65\x4e\141\x6d\145\x5d");
        goto b1Bd0;
        uIrgc:
    }
    function role_delete($id)
    {
        goto teMGS;
        QcgVb:
        $this->response->write();
        goto c_h3s;
        teMGS:
        if (empty($id)) {
            goto hRupi;
            hRupi:
            $this->response->error("\111\x44\40\x6d\151\163\x73\x69\156\147");
            goto vOjKp;
            cxLgT:
            return false;
            goto fmpX1;
            vOjKp:
            $this->response->write();
            goto cxLgT;
            fmpX1:
        }
        goto gdeHX;
        c_h3s:
        return true;
        goto vkBLl;
        gdeHX:
        if ($this->users->role_delete($id)) {
            $this->response->success("\x44\105\x4c\105\x54\105\x5f\123\125\103\103\x45\x53\x53");
        } else {
            $this->response->error($this->users->message);
        }
        goto QcgVb;
        vkBLl:
    }
    private function _captcha()
    {
        goto Omw3i;
        ZUcsW:
        $cap = create_captcha($vals);
        goto vhiQK;
        vhiQK:
        if (!empty($cap)) {
            goto wF9W6;
            QPILo:
            $query = $this->db->insert_string("\143\x61\160\164\x63\150\141", $data);
            goto S0Koy;
            wF9W6:
            $data = array("\x63\141\x70\x74\x63\150\141\137\x74\151\x6d\x65" => $cap["\x74\x69\x6d\145"], "\x69\160\x5f\x61\x64\144\x72\x65\163\163" => $this->input->ip_address(), "\x77\157\x72\144" => $cap["\x77\x6f\162\x64"]);
            goto QPILo;
            rlmcB:
            return $cap["\151\x6d\141\147\x65"];
            goto i5mbl;
            S0Koy:
            $this->db->query($query);
            goto rlmcB;
            i5mbl:
        }
        goto ZaWCr;
        ZaWCr:
        return false;
        goto kV11K;
        G5uvE:
        $vals = array("\151\x6d\147\x5f\160\x61\164\x68" => "\56\57\164\145\155\160\57", "\x69\155\x67\x5f\x75\x72\x6c" => base_url("\164\x65\155\160"), "\145\170\160\x69\162\141\164\151\157\x6e" => 300, "\x77\x6f\162\x64\137\154\x65\156\147\x74\150" => 5, "\143\157\154\x6f\x72\163" => array("\x62\x61\143\153\x67\162\157\x75\x6e\144" => array(255, 255, 255), "\142\157\162\144\145\x72" => array(153, 102, 102), "\x74\x65\170\164" => array(0, 0, 0), "\x67\162\151\144" => array(255, 182, 182)), "\160\x6f\157\154" => "\60\x31\62\x33\x34\x35\66\67\70\71\x41\x42\103\104\105\x46\107\x48\113\x4d\116\120\x52\124\x55\x56\127\130\x59\x5a");
        goto ZUcsW;
        Omw3i:
        $this->load->helper("\x63\x61\160\x74\x63\150\141");
        goto G5uvE;
        kV11K:
    }
    private function _check_captcha($captcha = '')
    {
        goto oNIGL;
        soOgl:
        $query = $this->db->select("\x63\x61\160\x74\x63\150\141\x5f\151\x64\x2c\x20\143\x6f\165\x6e\x74\x28\x2a\51\x20\101\x53\x20\143\157\x75\156\x74")->from("\x63\x61\x70\x74\x63\150\x61")->where(array("\x77\157\162\x64" => $captcha, "\151\x70\137\x61\144\x64\162\145\163\x73" => $this->input->ip_address(), "\143\141\x70\x74\x63\150\141\137\164\151\x6d\145\40\x3e" => $expiration))->get();
        goto p_wNi;
        p_wNi:
        $row = $query->row();
        goto w8DB6;
        DIkWv:
        if ($row->count == 0) {
            $this->session->set_flashdata("\x65\162\x72\157\162", "\x49\156\x76\x61\x6c\x69\144\x20\143\x61\x70\164\x63\x68\141\x2c\x20\160\154\x65\x61\163\x65\40\x74\162\x79\x20\141\147\141\151\156");
            return false;
        }
        goto TytcH;
        w8DB6:
        if ($row->captcha_id) {
            $this->db->where("\x63\x61\160\x74\143\150\x61\137\151\x64", $row->captcha_id)->delete("\143\x61\160\x74\143\x68\141");
        }
        goto DIkWv;
        S7xW_:
        $expiration = time() - 300;
        goto N9Uhc;
        N9Uhc:
        $this->db->where("\x63\141\160\x74\x63\150\141\x5f\164\x69\x6d\145\x20\x3c\40", $expiration)->delete("\143\x61\x70\x74\x63\150\x61");
        goto soOgl;
        oNIGL:
        if (empty($captcha)) {
            $this->session->set_flashdata("\145\162\162\x6f\x72", "\x43\141\x70\164\143\150\x61\x20\156\x6f\x74\40\145\156\x74\x65\162\x65\144");
            return false;
        }
        goto S7xW_;
        TytcH:
        return true;
        goto kdgQQ;
        kdgQQ:
    }
    function get_logs()
    {
        goto HDIQ4;
        gT9Kr:
        $this->response->success();
        goto uC2ZN;
        OaqcE:
        $this->response->write();
        goto KcLht;
        uC2ZN:
        if (!empty($result)) {
            $this->response->set_data("\x69\164\x65\x6d\x73", $result, true);
        }
        goto OaqcE;
        QynbC:
        $result = $this->users->get_user_logs($params);
        goto gT9Kr;
        HDIQ4:
        $params = $this->request->post();
        goto QynbC;
        KcLht:
        return true;
        goto Qit7r;
        Qit7r:
    }
    function get_access_logs()
    {
        goto wdk74;
        wdk74:
        $params = $this->request->post();
        goto QG8cf;
        QG8cf:
        $result = $this->users->get_access_logs($params);
        goto SBzyh;
        SBzyh:
        $this->response->success();
        goto GeTmn;
        GeTmn:
        if (!empty($result)) {
            $this->response->set_data($result, true);
        }
        goto Ujtcd;
        Ujtcd:
        $this->response->write();
        goto FrV1C;
        FrV1C:
        return true;
        goto qZgB4;
        qZgB4:
    }
    function save_device()
    {
        goto CbYja;
        F52HN:
        $result = $this->users->save_device($params);
        goto lGH1P;
        CbYja:
        $params = $this->request->post();
        goto F52HN;
        RRdOC:
        $this->response->write();
        goto cgGiy;
        cgGiy:
        return true;
        goto DBad1;
        lGH1P:
        $this->response->success();
        goto RRdOC;
        DBad1:
    }
    function update_device()
    {
        goto h72IJ;
        rAgpG:
        return true;
        goto vS1_v;
        GOnXL:
        $result = $this->users->update_device($params);
        goto W0WYw;
        W0WYw:
        $this->response->success();
        goto oWdOX;
        h72IJ:
        $params = $this->request->post();
        goto GOnXL;
        oWdOX:
        $this->response->write();
        goto rAgpG;
        vS1_v:
    }
    function update_read_notification($id)
    {
        goto HueB2;
        RFlVP:
        $this->response->success();
        goto jr_Z8;
        HueB2:
        $result = $this->users->updateReadMessageId($id);
        goto RFlVP;
        vbiba:
        return true;
        goto NND8t;
        jr_Z8:
        $this->response->write();
        goto vbiba;
        NND8t:
    }
    function unlock_screen()
    {
        goto Fkx_o;
        wVL1w:
        return true;
        goto a2Pjo;
        Fkx_o:
        $params = $this->request->post();
        goto OU2Tf;
        XCHMb:
        $this->response->write();
        goto wVL1w;
        OU2Tf:
        $result = $this->users->unlock_screen($params);
        goto a0beA;
        a0beA:
        if (empty($result)) {
            $this->response->error($this->users->message);
        } else {
            $this->response->success();
        }
        goto XCHMb;
        a2Pjo:
    }
}

Function Calls

None

Variables

None

Stats

MD5 21b500ea9106d64ce53fe58e7a248b61
Eval Count 0
Decode Time 92 ms