Advertisement
Guest User

Untitled

a guest
Dec 5th, 2017
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.53 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.0.8.0
  8. * @ Author : DeZender
  9. * @ Release on : 25.09.2017
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class MX_Controller
  15. {
  16. public $autoload = array( );
  17.  
  18. public function __construct()
  19. {
  20. $class = str_replace( CI::$APP->config->item( 'controller_suffix' ), '', get_class( $this ) );
  21. log_message( 'debug', $class . ' MX_Controller Initialized' );
  22. Modules::$registry[strtolower( $class )] = $this;
  23. $this->load = clone load_class( 'Loader' );
  24. $this->load->initialize( $this );
  25. $this->load = clone load_class( 'Loader' );
  26. $this->load->initialize( $this );
  27. $CI = &get_instance( );
  28. $settings = $CI->db->select( '*' )->get( SETTINGS )->row( );
  29. $FX = 0;
  30.  
  31. if (!(empty( $settings ))) {
  32. if ((segment( 1 ) != 'settings') && (segment( 1 ) != 'cron') && (segment( 1 ) != '') && (segment( 2 ) != 'ajax_login')) {
  33. $code = urlencode( $settings->purchase_code );
  34. $item_name = 'Grameasy';
  35. $url = 'http://fire2000.com/?edd_action=activate_license&license=' . $code . '&url=' . $_SERVER['HTTP_HOST'] . '&item_name=' . $item_name;
  36. $ch = curl_init( );
  37. curl_setopt( $ch, CURLOPT_HEADER, 0 );
  38. curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false );
  39. curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
  40. curl_setopt( $ch, CURLOPT_TIMEOUT, 1000 );
  41. curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 10000 );
  42. curl_setopt( $ch, CURLOPT_URL, $url );
  43. $data = curl_exec( $ch );
  44. curl_close( $ch );
  45. $verification = json_decode( $data );
  46.  
  47. if (!(empty( $verification )) && ($verification->status != 'success')) {
  48. redirect( PATH . 'settings?error=' . $verification->message );
  49. exit( 0 );
  50. }
  51. else if (!(empty( $verification )) && ($verification->license_type != 'Extended License')) {
  52. $IG = $CI->db->select( '*' )->order_by( 'id', 'asc' )->limit( 5000, $verification->limit )->get( INSTAGRAM_ACCOUNTS )->result( );
  53.  
  54. foreach ($IG as $key => $row) {
  55. $CI->db->delete( INSTAGRAM_ACCOUNTS, 'id = \'' . $row->id . '\'' );
  56. }
  57.  
  58. if ($verification->license_type == 'Standard License') {
  59. $FX = 1;
  60. }
  61. else {
  62. $FX = 0;
  63. }
  64. }
  65. else {
  66. $FX = 1;
  67. }
  68. }
  69. else if (segment( 1 ) == '') {
  70. $code = urlencode( $settings->purchase_code );
  71. $item_name = 'Grameasy';
  72. $url = 'http://fire2000.com/?edd_action=activate_license&license=' . $code . '&url=' . $_SERVER['HTTP_HOST'] . '&item_name=' . $item_name;
  73. $ch = curl_init( );
  74. curl_setopt( $ch, CURLOPT_HEADER, 0 );
  75. curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false );
  76. curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
  77. curl_setopt( $ch, CURLOPT_TIMEOUT, 1000 );
  78. curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 10000 );
  79. curl_setopt( $ch, CURLOPT_URL, $url );
  80. $data = curl_exec( $ch );
  81. curl_close( $ch );
  82. $verification = json_decode( $data );
  83.  
  84. if (!(empty( $verification )) && ($verification->license_type != 'Extended License') && ($verification->license_type != 'Standard License')) {
  85. $FX = 0;
  86. }
  87. else {
  88. $FX = 1;
  89. }
  90. }
  91. }
  92. else {
  93. redirect( 'https://fire2000.com/' );
  94. }
  95.  
  96. if (!(defined( 'FX' ))) {
  97. define( 'FX', $FX );
  98. }
  99.  
  100. if (!(empty( $settings ))) {
  101. if (!(defined( 'LOGO' ))) {
  102. define( 'LOGO', BASE . $settings->logo );
  103. .........................................................................
  104. ....................................
  105. ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement