Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.8.6
- * @ Author : DeZender
- * @ Release on : 23.04.2019
- * @ Official site : http://DeZender.Net
- *
- */
- defined('BASEPATH') || exit('No direct script access allowed');
- class User extends CI_Controller
- {
- public function login($msg = '')
- {
- $this->load->helper('form');
- $msg = '';
- if (!empty($_POST)) {
- $username = $this->input->post('uname');
- $pass = $this->input->post('password');
- $this->load->model('admin');
- $this->load->model('extras');
- $adm = $this->admin->get_admin($username);
- if ($adm == NULL) {
- $msg = 'Login failed';
- }
- else if (password_verify($pass, $adm->password)) {
- $act_url = 'https://igbro.com/site_auth/verify/' . GAME_ID . '?license=' . GAME_LICENSE . '&base_url=' . base_url();
- $status = file_get_contents($act_url);
- if ($status == '1') {
- $msg = 'You are there';
- $dark_mode = $this->extras->get_dark_mode();
- $this->session->set_userdata('username', $username);
- $this->session->set_userdata('utype', $adm->type);
- $this->session->set_userdata('dark_mode', $dark_mode);
- checklogin();
- redirect('/');
- exit();
- }
- else {
- 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');
- }
- }
- else {
- $msg = 'Wrong password';
- }
- }
- $data['msg'] = $msg;
- $this->load->view('login_form', $data);
- }
- public function logout()
- {
- pleaselogout();
- redirect('login');
- }
- public function manageusers()
- {
- if (!checklogin()) {
- .............................................................................
- ........................................
- ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement