Advertisement
Guest User

Untitled

a guest
Jul 13th, 2024
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 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.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13. defined('BASEPATH') || exit('No direct script access allowed');
  14.  
  15. class MY_Controller extends CI_Controller
  16. {
  17. public function __construct()
  18. {
  19. parent::__construct();
  20. $this->load->driver('cache', ['adapter' => 'apc', 'backup' => 'file', 'key_prefix' => 'vie_']);
  21. $this->data = [];
  22. $this->data['settings'] = $this->m_core->getSettings();
  23. $this->config->load('config', true);
  24.  
  25. try {
  26. $key = explode('.', $this->config->item('license_key', 'config'))[0];
  27.  
  28. if (md5('BOtg1WbOVOcEEA1' . get_domain_host(base_url())) != $key) {
  29. exit('This site is using invalid license. Please buy a valid license at <a target="_blank" href="https://shoppy.gg/product/099OPQ9">https://shoppy.gg/product/099OPQ9</a>');
  30. return redirect(site_url('maintenance'));
  31. }
  32. else {
  33. $this->data['csrf_name'] = $this->security->get_csrf_token_name();
  34. $this->data['csrf_hash'] = $this->security->get_csrf_hash();
  35. }
  36. }
  37. catch (Throwable $th) {
  38. exit('This site is using invalid license. Please buy a valid license at <a target="_blank" href="https://shoppy.gg/product/099OPQ9">https://shoppy.gg/product/099OPQ9</a>');
  39. return redirect(site_url('maintenance'));
  40. }
  41.  
  42. $ipAddress = $this->input->ip_address();
  43. $sub = getSub($ipAddress);
  44.  
  45. if ($this->session->ipSub) {
  46. if ($this->session->ipSub != $sub) {
  47. session_destroy();
  48. }
  49. }
  50. else {
  51. $this->session->set_userdata('ipSub', $sub);
  52. }
  53. }
  54. }
  55.  
  56. class Guess_Controller extends MY_Controller
  57. {
  58. public function __construct()
  59. {
  60. parent::__construct();
  61. if (($this->data['settings']['status'] == 'off') && (current_url() != site_url('maintenance'))) {
  62. return redirect(site_url('maintenance'));
  63. }
  64.  
  65. if ($this->session->VUID) {
  66. return redirect(site_url('dashboard'));
  67. .................................................................
  68. .......................................
  69. ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement