Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/twitter-.../admin
File: logs.php
<?php
[0] Fix | Delete
if( !defined('ABSPATH') ){ exit();}
[1] Fix | Delete
?>
[2] Fix | Delete
<div >
[3] Fix | Delete
[4] Fix | Delete
[5] Fix | Delete
<form method="post" name="xyz_smap_logs_form">
[6] Fix | Delete
<fieldset
[7] Fix | Delete
style="width: 99%; border: 1px solid #F7F7F7; padding: 10px 0px;">
[8] Fix | Delete
[9] Fix | Delete
[10] Fix | Delete
[11] Fix | Delete
<div style="text-align: left;padding-left: 7px;"><h3> <?php _e('Auto Publish Logs','twitter-auto-publish'); ?></h3></div>
[12] Fix | Delete
<span><?php _e('Last ten logs','twitter-auto-publish'); ?></span>
[13] Fix | Delete
<table class="widefat" style="width: 99%; margin: 0 auto; border-bottom:none;">
[14] Fix | Delete
<thead>
[15] Fix | Delete
<tr class="xyz_smap_log_tr">
[16] Fix | Delete
<th scope="col" width="1%">&nbsp;</th>
[17] Fix | Delete
<th scope="col" width="12%"> <?php _e('Post Id','twitter-auto-publish'); ?></th>
[18] Fix | Delete
<th scope="col" width="12%"> <?php _e('Post Title','twitter-auto-publish'); ?></th>
[19] Fix | Delete
<th scope="col" width="18%"> <?php _e('Published On','twitter-auto-publish'); ?></th>
[20] Fix | Delete
<th scope="col" width="15%"> <?php _e('Status','twitter-auto-publish'); ?></th>
[21] Fix | Delete
</tr>
[22] Fix | Delete
</thead>
[23] Fix | Delete
<?php
[24] Fix | Delete
$post_tw_logsmain = get_option('xyz_twap_post_logs' );
[25] Fix | Delete
$post_tw_logsmain_array = array();
[26] Fix | Delete
if($post_tw_logsmain=='')
[27] Fix | Delete
{
[28] Fix | Delete
?>
[29] Fix | Delete
<tr><td colspan="4" style="padding: 5px;"> <?php _e('No logs Found','twitter-auto-publish'); ?></td></tr>
[30] Fix | Delete
<?php
[31] Fix | Delete
}
[32] Fix | Delete
else{
[33] Fix | Delete
foreach ($post_tw_logsmain as $logkey => $logval)
[34] Fix | Delete
{
[35] Fix | Delete
$post_tw_logsmain_array[]=$logval;
[36] Fix | Delete
}}
[37] Fix | Delete
[38] Fix | Delete
if(!empty($post_tw_logsmain_array))//count($post_tw_logsmain_array)>0
[39] Fix | Delete
{
[40] Fix | Delete
for($i=9;$i>=0;$i--)
[41] Fix | Delete
{
[42] Fix | Delete
if($post_tw_logsmain_array[$i]!='')
[43] Fix | Delete
{
[44] Fix | Delete
$post_tw_logs=$post_tw_logsmain_array[$i];
[45] Fix | Delete
$postid=$post_tw_logs['postid'];
[46] Fix | Delete
$publishtime=$post_tw_logs['publishtime'];
[47] Fix | Delete
if($publishtime!="")
[48] Fix | Delete
$publishtime=xyz_twap_local_date_time('Y/m/d g:i:s A',$publishtime);
[49] Fix | Delete
$status=$post_tw_logs['status'];
[50] Fix | Delete
[51] Fix | Delete
?>
[52] Fix | Delete
<tr>
[53] Fix | Delete
<td>&nbsp;</td>
[54] Fix | Delete
<td style="vertical-align: middle !important;">
[55] Fix | Delete
<?php echo esc_html($postid); ?>
[56] Fix | Delete
</td>
[57] Fix | Delete
<td style="vertical-align: middle !important;">
[58] Fix | Delete
<?php echo get_the_title($postid); ?>
[59] Fix | Delete
</td>
[60] Fix | Delete
[61] Fix | Delete
<td style="vertical-align: middle !important;">
[62] Fix | Delete
<?php echo esc_html($publishtime);?>
[63] Fix | Delete
</td>
[64] Fix | Delete
[65] Fix | Delete
<td class='xyz_twap_td_custom' style="vertical-align: middle !important;">
[66] Fix | Delete
<?php
[67] Fix | Delete
[68] Fix | Delete
[69] Fix | Delete
if($status=="1")
[70] Fix | Delete
echo "<span style=\"color:green\">Success</span>";
[71] Fix | Delete
else if($status=="0")
[72] Fix | Delete
echo '';
[73] Fix | Delete
else
[74] Fix | Delete
{
[75] Fix | Delete
$arrval=unserialize($status);
[76] Fix | Delete
//foreach ($arrval as $a=>$b)
[77] Fix | Delete
echo $arrval;
[78] Fix | Delete
}
[79] Fix | Delete
?>
[80] Fix | Delete
</td>
[81] Fix | Delete
</tr>
[82] Fix | Delete
<?php
[83] Fix | Delete
}
[84] Fix | Delete
}
[85] Fix | Delete
}
[86] Fix | Delete
?>
[87] Fix | Delete
[88] Fix | Delete
</table>
[89] Fix | Delete
[90] Fix | Delete
</fieldset>
[91] Fix | Delete
[92] Fix | Delete
</form>
[93] Fix | Delete
[94] Fix | Delete
</div>
[95] Fix | Delete
[96] Fix | Delete
[97] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function