Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Mar 18th, 2020 123 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version         :   4.0.9.0
  8. * @ Author          :   DeZender
  9. * @ Release on      :   08.08.2019
  10. * @ Official site   :   http://DeZender.Net
  11. *
  12. */
  13. defined('BASEPATH') || exit('No direct script access allowed');
  14.  
  15. class User extends CI_Controller
  16. {
  17.     public function login($msg = '')
  18.     {
  19.         $this->load->helper('form');
  20.         $msg = '';
  21.  
  22.         if (!empty($_POST)) {
  23.             $username = $this->input->post('uname');
  24.             $pass = $this->input->post('password');
  25.             $this->load->model('admin');
  26.             $this->load->model('extras');
  27.             $adm = $this->admin->get_admin($username);
  28.  
  29.             if ($adm == NULL) {
  30.                 $msg = 'Login failed';
  31.             }
  32.             else if (password_verify($pass, $adm->password)) {
  33.                 $act_url = 'https://igbro.com/site_auth/verify/' . GAME_ID . '?license=' . GAME_LICENSE . '&base_url=' . base_url();
  34.                 $status = file_get_contents($act_url);
  35.  
  36.                 if ($status == '1') {
  37.                     $msg = 'You are there';
  38.                     $dark_mode = $this->extras->get_dark_mode();
  39.                     $this->session->set_userdata('username', $username);
  40.                     $this->session->set_userdata('utype', $adm->type);
  41.                     $this->session->set_userdata('dark_mode', $dark_mode);
  42.                     checklogin();
  43.                     redirect('/');
  44.                     exit();
  45.                 }
  46.                 else {
  47.                     exit('Please activate your version or try again. If you feel this is an error check your license code and base url if it corresponds with the one added in igbro.com');
  48.                 }
  49.             }
  50.             else {
  51.                 $msg = 'Wrong password';
  52.             }
  53.         }
  54.  
  55.         $data['msg'] = $msg;
  56.         $this->load->view('login_form', $data);
  57.     }
  58.  
  59.     public function logout()
  60.     {
  61.         pleaselogout();
  62.         redirect('login');
  63.     }
  64.  
  65.     public function manageusers()
  66.     {
  67.         if (!checklogin()) {
  68.             redirect('/login');
  69.             exit();
  70.         }
  71.  
  72.         if (getusertype() != 'admin') {
  73.             echo getusertype() . ' Unauthorized';
  74. ........................................................................
  75. ....................................
  76. ..............
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top