| Server IP : 82.64.35.208 / Your IP : 172.20.0.1 Web Server : Apache/2.4.67 (Debian) System : Linux c1d185609d2c 6.12.76-linuxkit #1 SMP Thu May 28 18:54:18 UTC 2026 aarch64 User : root ( 0) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/plugins/twitter-auto-publish/admin/ |
Upload File : |
<?php
if( !defined('ABSPATH') ){ exit();}
?>
<div >
<form method="post" name="xyz_smap_logs_form">
<fieldset
style="width: 99%; border: 1px solid #F7F7F7; padding: 10px 0px;">
<div style="text-align: left;padding-left: 7px;"><h3> <?php _e('Auto Publish Logs','twitter-auto-publish'); ?></h3></div>
<span><?php _e('Last ten logs','twitter-auto-publish'); ?></span>
<table class="widefat" style="width: 99%; margin: 0 auto; border-bottom:none;">
<thead>
<tr class="xyz_smap_log_tr">
<th scope="col" width="1%"> </th>
<th scope="col" width="12%"> <?php _e('Post Id','twitter-auto-publish'); ?></th>
<th scope="col" width="12%"> <?php _e('Post Title','twitter-auto-publish'); ?></th>
<th scope="col" width="18%"> <?php _e('Published On','twitter-auto-publish'); ?></th>
<th scope="col" width="15%"> <?php _e('Status','twitter-auto-publish'); ?></th>
</tr>
</thead>
<?php
$post_tw_logsmain = get_option('xyz_twap_post_logs' );
$post_tw_logsmain_array = array();
if($post_tw_logsmain=='')
{
?>
<tr><td colspan="4" style="padding: 5px;"> <?php _e('No logs Found','twitter-auto-publish'); ?></td></tr>
<?php
}
else{
foreach ($post_tw_logsmain as $logkey => $logval)
{
$post_tw_logsmain_array[]=$logval;
}}
if(!empty($post_tw_logsmain_array))//count($post_tw_logsmain_array)>0
{
for($i=9;$i>=0;$i--)
{
if($post_tw_logsmain_array[$i]!='')
{
$post_tw_logs=$post_tw_logsmain_array[$i];
$postid=$post_tw_logs['postid'];
$publishtime=$post_tw_logs['publishtime'];
if($publishtime!="")
$publishtime=xyz_twap_local_date_time('Y/m/d g:i:s A',$publishtime);
$status=$post_tw_logs['status'];
?>
<tr>
<td> </td>
<td style="vertical-align: middle !important;">
<?php echo esc_html($postid); ?>
</td>
<td style="vertical-align: middle !important;">
<?php echo get_the_title($postid); ?>
</td>
<td style="vertical-align: middle !important;">
<?php echo esc_html($publishtime);?>
</td>
<td class='xyz_twap_td_custom' style="vertical-align: middle !important;">
<?php
if($status=="1")
echo "<span style=\"color:green\">Success</span>";
else if($status=="0")
echo '';
else
{
$arrval=unserialize($status);
//foreach ($arrval as $a=>$b)
echo $arrval;
}
?>
</td>
</tr>
<?php
}
}
}
?>
</table>
</fieldset>
</form>
</div>