woocmmatl

The WooCommerce Checkout Manager woocmmatl function.

Description

woocmmatl(); 

Usage

  1. if ( !function_exists( 'woocmmatl' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-checkout-manager/includes/pickers/include/ui-1.10.0/ui-lightness/dislawooccm.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = woocmmatl(); 
  7.  

Defined (2)

The function is defined in the following location(s).

/includes/pickers/include/ui-1.10.0/ui-lightness/dislawooccm.php  
  1. function woocmmatl() { global $wp_version; $address= $_SERVER['HTTP_HOST']; if ( check_domainIP( $address ) == false ) { $parsed_url = parse_url($address); $check = @esip($parsed_url['host']); $host = @$parsed_url['host']; if ($check == FALSE) { if ($host != "") { if ( substr(domain($host), 0, 1) == '.' ) { $host = str_replace('www.', '', substr(domain($host), 1)); } else { $host = str_replace('www.', '', domain($host)); } }else{ if ( substr(domain($address), 0, 1) == '.' ) { $host = str_replace('www.', '', substr(domain($address), 1)); } else { $host = str_replace('www.', '', domain($address)); } } } } else { $host = $address; } $valuexg = get_option('wccmkelizn32aunique'); if ( strpos($_SERVER['REQUEST_URI'], 'License_check_slug') || strpos($_SERVER['REQUEST_URI'], 'woocommerce-checkout-manager-pro') ) { if ( substr( $_SERVER['REMOTE_ADDR'] , 0, 3) == "127" || $_SERVER['REMOTE_ADDR'] == "1" || $_SERVER['REMOTE_ADDR'] == "::1" ) { return true; } else { if ( !empty( $valuexg ) ) { $api_url = 'http://www.trottyzone.com/wp-content/plugins/wp-licensing/auth/verify.php'; $request_string = array( 'body' => array( 'key' => $valuexg, 'domain' => $host, 'product' => 'woocommerce-checkout-manager-pro' ), 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo('url') ); $resultx = wp_remote_post($api_url, $request_string ); $result = wp_remote_retrieve_body( $resultx ); if (is_wp_error($result)) { update_option('errfafvetcgrt6434cwooccminfo15907833', 'connection_error'); update_option('hostnamewooccmerrfafvetcgrt6434cwooccminfo15907833', $host); }else { $result = json_decode($result, true); if ($result['valid'] == 'true') { update_option('errfafvetcgrt6434cwooccminfo15907833', 'clear'); }elseif ($result['info']['domain'] !== 'NA' && $result['valid'] == 'false' ) { update_option('errfafvetcgrt6434cwooccminfo15907833', 'change_site'); }elseif ($result['info']['domain'] == 'NA') { update_option('errfafvetcgrt6434cwooccminfo15907833', 'not_exsit'); } } if($result['valid'] == 'true') { return true; } } } } return false; } 
/includes/classes/main.php  
  1. function woocmmatl() {  
  2. global $wp_version;  
  3. wooccmadd(); 
  4. if ( wooccmcurr() ) { 
  5. return true; 
  6. }  
  7. return false;