Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.0.8.0
- * @ Author : DeZender
- * @ Release on : 25.09.2017
- * @ Official site : http://DeZender.Net
- *
- */
- class MX_Controller
- {
- public $autoload = array( );
- public function __construct()
- {
- $class = str_replace( CI::$APP->config->item( 'controller_suffix' ), '', get_class( $this ) );
- log_message( 'debug', $class . ' MX_Controller Initialized' );
- Modules::$registry[strtolower( $class )] = $this;
- $this->load = clone load_class( 'Loader' );
- $this->load->initialize( $this );
- $this->load = clone load_class( 'Loader' );
- $this->load->initialize( $this );
- $CI = &get_instance( );
- $settings = $CI->db->select( '*' )->get( SETTINGS )->row( );
- $FX = 0;
- if (!(empty( $settings ))) {
- if ((segment( 1 ) != 'settings') && (segment( 1 ) != 'cron') && (segment( 1 ) != '') && (segment( 2 ) != 'ajax_login')) {
- $code = urlencode( $settings->purchase_code );
- $item_name = 'Grameasy';
- $url = 'http://fire2000.com/?edd_action=activate_license&license=' . $code . '&url=' . $_SERVER['HTTP_HOST'] . '&item_name=' . $item_name;
- $ch = curl_init( );
- curl_setopt( $ch, CURLOPT_HEADER, 0 );
- curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false );
- curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
- curl_setopt( $ch, CURLOPT_TIMEOUT, 1000 );
- curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 10000 );
- curl_setopt( $ch, CURLOPT_URL, $url );
- $data = curl_exec( $ch );
- curl_close( $ch );
- $verification = json_decode( $data );
- if (!(empty( $verification )) && ($verification->status != 'success')) {
- redirect( PATH . 'settings?error=' . $verification->message );
- exit( 0 );
- }
- else if (!(empty( $verification )) && ($verification->license_type != 'Extended License')) {
- $IG = $CI->db->select( '*' )->order_by( 'id', 'asc' )->limit( 5000, $verification->limit )->get( INSTAGRAM_ACCOUNTS )->result( );
- foreach ($IG as $key => $row) {
- $CI->db->delete( INSTAGRAM_ACCOUNTS, 'id = \'' . $row->id . '\'' );
- }
- if ($verification->license_type == 'Standard License') {
- $FX = 1;
- }
- else {
- $FX = 0;
- }
- }
- else {
- $FX = 1;
- }
- }
- else if (segment( 1 ) == '') {
- $code = urlencode( $settings->purchase_code );
- $item_name = 'Grameasy';
- $url = 'http://fire2000.com/?edd_action=activate_license&license=' . $code . '&url=' . $_SERVER['HTTP_HOST'] . '&item_name=' . $item_name;
- $ch = curl_init( );
- curl_setopt( $ch, CURLOPT_HEADER, 0 );
- curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false );
- curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
- curl_setopt( $ch, CURLOPT_TIMEOUT, 1000 );
- curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 10000 );
- curl_setopt( $ch, CURLOPT_URL, $url );
- $data = curl_exec( $ch );
- curl_close( $ch );
- $verification = json_decode( $data );
- if (!(empty( $verification )) && ($verification->license_type != 'Extended License') && ($verification->license_type != 'Standard License')) {
- $FX = 0;
- }
- else {
- $FX = 1;
- }
- }
- }
- else {
- redirect( 'https://fire2000.com/' );
- }
- if (!(defined( 'FX' ))) {
- define( 'FX', $FX );
- }
- if (!(empty( $settings ))) {
- if (!(defined( 'LOGO' ))) {
- define( 'LOGO', BASE . $settings->logo );
- .........................................................................
- ....................................
- ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement