HEX
Server: Apache
System: Linux dotw660 5.10.0-37-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
User: web350 (1012)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/clients/client125/web350/web/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){
	
	echo '<div class="posted_itm">'. str_replace('New post posted:','',$row->data) .'<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>';
	
}

	

?>