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

Dir : /home/trave494/newfitnessnews.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/newfitnessnews.kerihosting.com/wp-content/plugins/wp-automatic/posted_metabox.php

<?php 

global $post;
global  $wpdb;
$prefix=$wpdb->prefix;
$post_id=$post->ID;

$query="SELECT * FROM {$prefix}automatic_log where action='Posted:$post_id' order by id DESC limit 10";
$rows=$wpdb->get_results($query);

$count=count($rows);


  echo '<p>Latest posts.</p><div class="latest-posts-container">'; 


foreach ($rows as $row){
	
	$displayTitle = str_replace('New post posted:','',$row->data);
	
	if(stristr($displayTitle , '></a')   ){
		
		$displayTitle = str_replace('><', '>(no title)<', $displayTitle);
		
	} 
	
	  echo '<div class="posted_itm">'. $displayTitle .'<br>on <small>'. get_date_from_gmt($row->date) .'</small><br></div>';
	
}

  echo '</div>';

//pagination
if( $count == 10){
	
	  echo '<button data-camp="'.$post_id.'" data-page="10" id="more_posted_posts">Load more ...</button><div class="spinner-more_posted_posts spinner"  ></div>';
	
}

	

?>