PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/allinonecryptonews.kerihosting.com/wp-content/plugins/wp-automatic/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : //home/trave494/allinonecryptonews.kerihosting.com/wp-content/plugins/wp-automatic/cron.php

<?php
/**
 * Cron file process all or single campaign
 */

// amazon
require_once ('inc/amazon_api_class.php');

//performance report
register_shutdown_function( "wp_automatic_fatal_handler" );

function wp_automatic_fatal_handler() {
	
	/* 
	*/
	
	 $errfile = "unknown file";
	 $errstr  = "shutdown";
	 $errno   = E_CORE_ERROR;
	 $errline = 0;
	 $error = error_get_last();
	 
	 if($_SERVER[HTTP_HOST] == 'localhost'){
	 	echo '<br>'; print_r($error);
	 } 
	
	//updating an amazon product price
	$wp_automatic_options = get_option('wp_automatic_options',array());
	
	if( in_array( 'OPT_AMAZON_PRICE', $wp_automatic_options) && ! isset($_GET ['id']) ){
		wp_automatic_amazon_prices_update()	;
	}
	
	echo '<br><i><small>Top memory used: '. number_format( memory_get_peak_usage()/(1024*1024) ,2) .' MB, current:'.number_format(memory_get_usage()/(1024*1024),2).', DB queries count:'.get_num_queries().', Time used: '.timer_stop().' seconds</small></i>';
	
}

// Verify valid ID
if (  isset($_GET ['id']) ){
	
	// Integer value from id
	$id = intval ( $_GET ['id'] );
	if ( ! is_int ( $id ))  exit ();
	
} else {
	
	$id = false;
	echo '<strong>Welcome</strong> to wordpress automatic cron job...';
	
}


// Inistantiate campaign processor class
require_once 'campaignsProcessor.php'; 

$CampaignProcessor = new CampaignProcessor() ;

// Trigger Processing
$CampaignProcessor->process_campaigns($id);

?>