Advertisement
Guest User

Untitled

a guest
Apr 30th, 2019
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  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.8.6
  8. * @ Author : DeZender
  9. * @ Release on : 23.04.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. .............................................................................
  69. ........................................
  70. ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement