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/facebook.../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_fbap_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','facebook-auto-publish'); ?> </h3></div>
[12] Fix | Delete
<span> <?php _e('Last ten logs','facebook-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_fbap_log_tr">
[16] Fix | Delete
<th scope="col" width="1%">&nbsp;</th>
[17] Fix | Delete
<th scope="col" width="12%"> <?php _e('Post Id','facebook-auto-publish'); ?> </th>
[18] Fix | Delete
<th scope="col" width="12%"> <?php _e('Post Title','facebook-auto-publish'); ?> </th>
[19] Fix | Delete
<th scope="col" width="18%"> <?php _e('Published On','facebook-auto-publish'); ?> </th>
[20] Fix | Delete
<th scope="col" width="15%"> <?php _e('Status','facebook-auto-publish'); ?> </th>
[21] Fix | Delete
</tr>
[22] Fix | Delete
</thead>
[23] Fix | Delete
<?php
[24] Fix | Delete
[25] Fix | Delete
$post_fb_logsmain = get_option('xyz_fbap_post_logs' );
[26] Fix | Delete
[27] Fix | Delete
if(is_array($post_fb_logsmain))
[28] Fix | Delete
{
[29] Fix | Delete
$post_fb_logsmain_array = array();
[30] Fix | Delete
foreach ($post_fb_logsmain as $logkey => $logval)
[31] Fix | Delete
{
[32] Fix | Delete
$post_fb_logsmain_array[]=$logval;
[33] Fix | Delete
[34] Fix | Delete
}
[35] Fix | Delete
[36] Fix | Delete
[37] Fix | Delete
if($post_fb_logsmain=='')
[38] Fix | Delete
{
[39] Fix | Delete
?>
[40] Fix | Delete
<tr><td colspan="4" style="padding: 5px;"> <?php _e('No logs Found','facebook-auto-publish'); ?> </td></tr>
[41] Fix | Delete
<?php
[42] Fix | Delete
}
[43] Fix | Delete
[44] Fix | Delete
if(is_array($post_fb_logsmain_array))
[45] Fix | Delete
{
[46] Fix | Delete
for($i=9;$i>=0;$i--)
[47] Fix | Delete
{
[48] Fix | Delete
if(array_key_exists($i,$post_fb_logsmain_array)){
[49] Fix | Delete
if(($post_fb_logsmain_array[$i])!='')//if(array_key_exists($i,$post_fb_logsmain_array))
[50] Fix | Delete
{
[51] Fix | Delete
$post_fb_logs=$post_fb_logsmain_array[$i];
[52] Fix | Delete
$postid=$post_fb_logs['postid'];
[53] Fix | Delete
$publishtime=$post_fb_logs['publishtime'];
[54] Fix | Delete
if($publishtime!="")
[55] Fix | Delete
$publishtime=xyz_fbap_local_date_time('Y/m/d g:i:s A',$publishtime);
[56] Fix | Delete
$status=$post_fb_logs['status'];
[57] Fix | Delete
[58] Fix | Delete
?>
[59] Fix | Delete
<tr>
[60] Fix | Delete
<td>&nbsp;</td>
[61] Fix | Delete
<td style="vertical-align: middle !important;padding: 5px;">
[62] Fix | Delete
<?php echo $postid; ?>
[63] Fix | Delete
</td>
[64] Fix | Delete
<td style="vertical-align: middle !important;padding: 5px;">
[65] Fix | Delete
<?php echo get_the_title($postid); ?>
[66] Fix | Delete
</td>
[67] Fix | Delete
[68] Fix | Delete
<td style="vertical-align: middle !important;padding: 5px;">
[69] Fix | Delete
<?php echo $publishtime;?>
[70] Fix | Delete
</td>
[71] Fix | Delete
[72] Fix | Delete
<td class='xyz_fbap_td_custom' style="vertical-align: middle !important;padding: 5px;">
[73] Fix | Delete
<?php
[74] Fix | Delete
[75] Fix | Delete
if($status=="1"){
[76] Fix | Delete
echo "<span style=\"color:green\">Success</span>";
[77] Fix | Delete
}
[78] Fix | Delete
else if($status=="0")
[79] Fix | Delete
echo '';
[80] Fix | Delete
else
[81] Fix | Delete
{
[82] Fix | Delete
$arrval=unserialize($status);
[83] Fix | Delete
foreach ($arrval as $a=>$b)
[84] Fix | Delete
echo $b;
[85] Fix | Delete
}
[86] Fix | Delete
?>
[87] Fix | Delete
</td>
[88] Fix | Delete
</tr>
[89] Fix | Delete
<?php
[90] Fix | Delete
}}
[91] Fix | Delete
}
[92] Fix | Delete
}
[93] Fix | Delete
}
[94] Fix | Delete
?>
[95] Fix | Delete
[96] Fix | Delete
</table>
[97] Fix | Delete
[98] Fix | Delete
</fieldset>
[99] Fix | Delete
[100] Fix | Delete
</form>
[101] Fix | Delete
<div style="padding: 5px;color: #e67939;font-size: 14px;"> <?php _e('For publishing a simple text message, it will take 1 API call, Upload image option will take 2-3 API calls and attach link option take 1 API call(2 api calls, if enabled option for clearing cache).','facebook-auto-publish'); ?></div>
[102] Fix | Delete
</div>
[103] Fix | Delete
[104] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function