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: manage-authorizations.php
<?php if( !defined('ABSPATH') ){ exit();}
[0] Fix | Delete
global $wpdb;
[1] Fix | Delete
if(isset($_GET['msg']) && $_GET['msg']=='smap_pack_updated'){
[2] Fix | Delete
?>
[3] Fix | Delete
<div class="system_notice_area_style1" id="system_notice_area">
[4] Fix | Delete
<?php $fbap_word_smap="SMAP";
[5] Fix | Delete
$fbap_smap_update_msg=sprintf(__('%s Package updated successfully.','facebook-auto-publish'),$fbap_word_smap);
[6] Fix | Delete
echo $fbap_smap_update_msg; ?>
[7] Fix | Delete
&nbsp;&nbsp;&nbsp;<span id="system_notice_area_dismiss"><?php _e('Dismiss','facebook-auto-publish'); ?>
[8] Fix | Delete
</span>
[9] Fix | Delete
</div>
[10] Fix | Delete
<?php
[11] Fix | Delete
}
[12] Fix | Delete
$free_plugin_source='fbap';
[13] Fix | Delete
$domain_name=trim(get_option('siteurl'));
[14] Fix | Delete
$xyzscripts_hash_val=trim(get_option('xyz_fbap_xyzscripts_hash_val'));
[15] Fix | Delete
$xyzscripts_user_id=trim(get_option('xyz_fbap_xyzscripts_user_id'));
[16] Fix | Delete
$xyz_smap_licence_key='';
[17] Fix | Delete
if ($xyzscripts_user_id=='')
[18] Fix | Delete
{ ?>
[19] Fix | Delete
<b> <?php $fbap_word_smapsolution="smapsolutions";
[20] Fix | Delete
$fbap_smap_auth_msg=sprintf(__('Please authorize %s app under Facebook settings to access this page.','facebook-auto-publish'),$fbap_word_smapsolution);
[21] Fix | Delete
echo $fbap_smap_auth_msg; ?> </b>
[22] Fix | Delete
<?php return;
[23] Fix | Delete
}
[24] Fix | Delete
?>
[25] Fix | Delete
<style type="text/css">
[26] Fix | Delete
.widefat {border: 1px solid #eeeeee!important;
[27] Fix | Delete
margin: 0px !important;
[28] Fix | Delete
border-bottom: 3px solid #00a0d2 !important;
[29] Fix | Delete
margin-bottom:5px;}
[30] Fix | Delete
[31] Fix | Delete
.widefat th {border:1px solid #ffffff !important; background-color:#00a0d2; color:#ffffff; margin:0px !important; padding-top: 12px;
[32] Fix | Delete
padding-bottom: 12px;
[33] Fix | Delete
text-align: left;}
[34] Fix | Delete
[35] Fix | Delete
.widefat td, .widefat th {
[36] Fix | Delete
color:#2f2f2f ;
[37] Fix | Delete
padding: 12px 5px;
[38] Fix | Delete
margin: 0px;
[39] Fix | Delete
}
[40] Fix | Delete
[41] Fix | Delete
.widefat tr{ border: 1px solid #ddd;}
[42] Fix | Delete
[43] Fix | Delete
.widefat tr:nth-child(even){background-color: #dddddd !important;}
[44] Fix | Delete
[45] Fix | Delete
.widefat tr:hover {background-color: #cccccc;}
[46] Fix | Delete
[47] Fix | Delete
[48] Fix | Delete
.delete_auth_entry,.delete_inactive_fb_entry{background-color: #00a0d2;
[49] Fix | Delete
border: none;
[50] Fix | Delete
padding: 5px 10px;
[51] Fix | Delete
color: #fff;
[52] Fix | Delete
border-radius: 2px;
[53] Fix | Delete
outline:0;
[54] Fix | Delete
}
[55] Fix | Delete
[56] Fix | Delete
.delete_auth_entry:hover{background-color:#008282;}
[57] Fix | Delete
[58] Fix | Delete
.select_box{display: block;
[59] Fix | Delete
color:#2f2f2f ;
[60] Fix | Delete
padding: 10px;
[61] Fix | Delete
background-color: #ddd;
[62] Fix | Delete
width: 96.8%;
[63] Fix | Delete
margin-bottom: 1px;}
[64] Fix | Delete
.xyz_fbap_plan_div{
[65] Fix | Delete
float:left;
[66] Fix | Delete
padding-left: 5px;
[67] Fix | Delete
background-color:#b7b6b6;
[68] Fix | Delete
border-radius:3px;
[69] Fix | Delete
padding: 5px;
[70] Fix | Delete
color: white;
[71] Fix | Delete
margin-left: 5px;
[72] Fix | Delete
}
[73] Fix | Delete
.xyz_fbap_plan_label{
[74] Fix | Delete
font-size: 15px;
[75] Fix | Delete
color: #ffffff;
[76] Fix | Delete
font-weight: 500;
[77] Fix | Delete
float: left;
[78] Fix | Delete
padding: 5px;
[79] Fix | Delete
background-color: #30a0d2;
[80] Fix | Delete
}
[81] Fix | Delete
[82] Fix | Delete
</style>
[83] Fix | Delete
<script type="text/javascript">
[84] Fix | Delete
jQuery(document).ready(function() {
[85] Fix | Delete
jQuery('#auth_entries_div').show();
[86] Fix | Delete
jQuery("#show_all").attr('checked', true);
[87] Fix | Delete
[88] Fix | Delete
jQuery("#show_all").click(function(){
[89] Fix | Delete
jQuery('#fbap_manage_auth_table tr:has(td.diff_domain)').show();
[90] Fix | Delete
jQuery('#fbap_manage_auth_table tr:has(td.same_domain)').show();
[91] Fix | Delete
});
[92] Fix | Delete
jQuery("#show_same_domain").click(function(){
[93] Fix | Delete
jQuery('#fbap_manage_auth_table tr:has(td.diff_domain)').hide();
[94] Fix | Delete
jQuery('#fbap_manage_auth_table tr:has(td.same_domain)').show();
[95] Fix | Delete
});
[96] Fix | Delete
jQuery("#show_diff_domain").click(function(){
[97] Fix | Delete
jQuery('#fbap_manage_auth_table tr:has(td.diff_domain)').show();
[98] Fix | Delete
jQuery('#fbap_manage_auth_table tr:has(td.same_domain)').hide();
[99] Fix | Delete
});
[100] Fix | Delete
[101] Fix | Delete
jQuery(".delete_auth_entry").off('click').on('click', function() {
[102] Fix | Delete
var auth_id=jQuery(this).attr("data-id");
[103] Fix | Delete
jQuery("#show-del-icon_"+auth_id).hide();
[104] Fix | Delete
jQuery("#ajax-save_"+auth_id).show();
[105] Fix | Delete
var xyzscripts_user_hash=jQuery(this).attr("data-xyzscripts_hash");
[106] Fix | Delete
var xyzscripts_id=jQuery(this).attr("data-xyzscriptsid");
[107] Fix | Delete
[108] Fix | Delete
var xyz_fbap_del_entries_nonce= '<?php echo wp_create_nonce('xyz_fbap_del_entries_nonce');?>';
[109] Fix | Delete
var dataString = {
[110] Fix | Delete
action: 'xyz_fbap_del_entries',
[111] Fix | Delete
auth_id: auth_id ,
[112] Fix | Delete
xyzscripts_id: xyzscripts_id,
[113] Fix | Delete
xyzscripts_user_hash: xyzscripts_user_hash,
[114] Fix | Delete
dataType: 'json',
[115] Fix | Delete
_wpnonce: xyz_fbap_del_entries_nonce
[116] Fix | Delete
};
[117] Fix | Delete
jQuery.post(ajaxurl, dataString ,function(data) {
[118] Fix | Delete
jQuery("#ajax-save_"+auth_id).hide();
[119] Fix | Delete
if(data==1)
[120] Fix | Delete
alert(xyz_script_fbap_var.alert3);
[121] Fix | Delete
else{
[122] Fix | Delete
[123] Fix | Delete
var data=jQuery.parseJSON(data);
[124] Fix | Delete
if(data.status==1){
[125] Fix | Delete
jQuery(".tr_"+auth_id).remove();
[126] Fix | Delete
[127] Fix | Delete
if(jQuery('#system_notice_area').length==0)
[128] Fix | Delete
jQuery('body').append('<div class="system_notice_area_style1" id="system_notice_area"></div>');
[129] Fix | Delete
jQuery("#system_notice_area").html(xyz_script_fbap_var.html1);
[130] Fix | Delete
jQuery("#system_notice_area").append('<span id="system_notice_area_dismiss"><?php _e('Dismiss','facebook-auto-publish');?></span>');
[131] Fix | Delete
jQuery("#system_notice_area").show();
[132] Fix | Delete
jQuery('#system_notice_area_dismiss').click(function() {
[133] Fix | Delete
jQuery('#system_notice_area').animate({
[134] Fix | Delete
opacity : 'hide',
[135] Fix | Delete
height : 'hide'
[136] Fix | Delete
}, 500);
[137] Fix | Delete
});
[138] Fix | Delete
[139] Fix | Delete
}
[140] Fix | Delete
else if(data.status==0 )
[141] Fix | Delete
{
[142] Fix | Delete
jQuery("#show_err_"+auth_id).append(data.msg);
[143] Fix | Delete
}
[144] Fix | Delete
}
[145] Fix | Delete
[146] Fix | Delete
[147] Fix | Delete
});
[148] Fix | Delete
});
[149] Fix | Delete
jQuery("input[name='domain_selection']").click(function(){//show_diff_domain
[150] Fix | Delete
numOfVisibleRows = jQuery('#fbap_manage_auth_table tr:visible').length;
[151] Fix | Delete
if(numOfVisibleRows==1)
[152] Fix | Delete
{
[153] Fix | Delete
jQuery('.xyz_fbap_manage_auth_th_fb').hide();
[154] Fix | Delete
jQuery('#xyz_fbap_no_auth_entries').show();
[155] Fix | Delete
}
[156] Fix | Delete
else{
[157] Fix | Delete
jQuery('.xyz_fbap_manage_auth_th_fb').show();
[158] Fix | Delete
jQuery('#xyz_fbap_no_auth_entries').hide();
[159] Fix | Delete
}
[160] Fix | Delete
});
[161] Fix | Delete
///////////////////////DELETE INACTIVE FB ACC//////////////////////////////
[162] Fix | Delete
jQuery(".delete_inactive_fb_entry").off('click').on('click', function() {
[163] Fix | Delete
var fb_userid=jQuery(this).attr("data-fbid");
[164] Fix | Delete
var tr_iterationid=jQuery(this).attr("data-iterationid");
[165] Fix | Delete
jQuery("#show-del-icon-inactive-fb_"+tr_iterationid).hide();
[166] Fix | Delete
jQuery("#ajax-save-inactive-fb_"+tr_iterationid).show();
[167] Fix | Delete
var xyzscripts_user_hash=jQuery(this).attr("data-xyzscripts_hash");
[168] Fix | Delete
var xyzscripts_id=jQuery(this).attr("data-xyzscriptsid");
[169] Fix | Delete
var xyz_fbap_del_fb_entries_nonce= '<?php echo wp_create_nonce('xyz_fbap_del_fb_entries_nonce');?>';
[170] Fix | Delete
var dataString = {
[171] Fix | Delete
action: 'xyz_fbap_del_fb_entries',
[172] Fix | Delete
tr_iterationid: tr_iterationid ,
[173] Fix | Delete
xyzscripts_id: xyzscripts_id,
[174] Fix | Delete
xyzscripts_user_hash: xyzscripts_user_hash,
[175] Fix | Delete
fb_userid: fb_userid,
[176] Fix | Delete
dataType: 'json',
[177] Fix | Delete
_wpnonce: xyz_fbap_del_fb_entries_nonce
[178] Fix | Delete
};
[179] Fix | Delete
jQuery.post(ajaxurl, dataString ,function(data) {
[180] Fix | Delete
jQuery("#ajax-save-inactive-fb_"+tr_iterationid).hide();
[181] Fix | Delete
if(data==1)
[182] Fix | Delete
alert(xyz_script_fbap_var.alert3);
[183] Fix | Delete
else{
[184] Fix | Delete
var data=jQuery.parseJSON(data);
[185] Fix | Delete
if(data.status==1){
[186] Fix | Delete
jQuery(".tr_inactive"+tr_iterationid).remove();
[187] Fix | Delete
if(jQuery('#system_notice_area').length==0)
[188] Fix | Delete
jQuery('body').append('<div class="system_notice_area_style1" id="system_notice_area"></div>');
[189] Fix | Delete
jQuery("#system_notice_area").html(xyz_script_fbap_var.html2);
[190] Fix | Delete
jQuery("#system_notice_area").append('<span id="system_notice_area_dismiss"><?php _e('Dismiss','facebook-auto-publish'); ?></span>');
[191] Fix | Delete
jQuery("#system_notice_area").show();
[192] Fix | Delete
jQuery('#system_notice_area_dismiss').click(function() {
[193] Fix | Delete
jQuery('#system_notice_area').animate({
[194] Fix | Delete
opacity : 'hide',
[195] Fix | Delete
height : 'hide'
[196] Fix | Delete
}, 500);
[197] Fix | Delete
});
[198] Fix | Delete
}
[199] Fix | Delete
else if(data.status==0 )
[200] Fix | Delete
{
[201] Fix | Delete
jQuery("#show_err_inactive_fb_"+tr_iterationid).append(data.msg );
[202] Fix | Delete
}
[203] Fix | Delete
}
[204] Fix | Delete
});
[205] Fix | Delete
});
[206] Fix | Delete
///////////////////////////////////////////////////////////////////
[207] Fix | Delete
window.addEventListener('message', function(e) {
[208] Fix | Delete
ProcessChildMessage_2(e.data);
[209] Fix | Delete
} , false);
[210] Fix | Delete
//////////////////////////////////////////////////////////////////
[211] Fix | Delete
function ProcessChildMessage_2(message) {
[212] Fix | Delete
var obj1=jQuery.parseJSON(message);//console.log(message);
[213] Fix | Delete
if(obj1.smap_api_upgrade && obj1.success_flag){
[214] Fix | Delete
var base = '<?php echo admin_url('admin.php?page=facebook-auto-publish-manage-authorizations&msg=smap_pack_updated');?>';
[215] Fix | Delete
window.location.href = base;
[216] Fix | Delete
}
[217] Fix | Delete
}
[218] Fix | Delete
[219] Fix | Delete
});
[220] Fix | Delete
function fbap_popup_purchase_plan(auth_secret_key,request_hash)
[221] Fix | Delete
{
[222] Fix | Delete
var account_id=0;
[223] Fix | Delete
var xyz_smap_pre_smapsoln_userid=0;
[224] Fix | Delete
var childWindow = null;
[225] Fix | Delete
var domain_name='<?php echo urlencode($domain_name); ?>';
[226] Fix | Delete
var smap_licence_key='<?php echo $xyz_smap_licence_key;?>';
[227] Fix | Delete
var smap_solution_url='<?php echo XYZ_SMAP_SOLUTION_AUTH_URL;?>';
[228] Fix | Delete
var xyzscripts_hash_val ='<?php echo $xyzscripts_hash_val;?>';
[229] Fix | Delete
var xyzscripts_user_id='<?php echo $xyzscripts_user_id; ?>';
[230] Fix | Delete
var smap_plugin_source='<?php echo $free_plugin_source;?>';
[231] Fix | Delete
childWindow=window.open(smap_solution_url+"authorize/facebook.php?smap_id="+xyz_smap_pre_smapsoln_userid+"&account_id="+account_id+"&domain_name="+domain_name+"&xyzscripts_user_id="+xyzscripts_user_id+"&request_hash="+request_hash+"&smap_licence_key="+smap_licence_key+"&auth_secret_key="+auth_secret_key+"&free_plugin_source="+smap_plugin_source+"&smap_api_upgrade=1", "SmapSolutions Authorization", "toolbar=yes,scrollbars=yes,resizable=yes,left=500,width=600,height=600");
[232] Fix | Delete
return false;
[233] Fix | Delete
}
[234] Fix | Delete
</script>
[235] Fix | Delete
<h3> <?php _e('Manage Authorizations','facebook-auto-publish'); ?> </h3>
[236] Fix | Delete
<div>
[237] Fix | Delete
<?php
[238] Fix | Delete
$manage_auth_parameters=array(
[239] Fix | Delete
'xyzscripts_user_id'=>$xyzscripts_user_id,
[240] Fix | Delete
'free_plugin_source'=>$free_plugin_source,
[241] Fix | Delete
);
[242] Fix | Delete
$url=XYZ_SMAP_SOLUTION_AUTH_URL.'authorize/manage-authorizations.php';
[243] Fix | Delete
$content=xyz_fbap_post_to_smap_api($manage_auth_parameters,$url,$xyzscripts_hash_val);
[244] Fix | Delete
$result=json_decode($content,true);
[245] Fix | Delete
if(!empty($result) && isset($result['status']))
[246] Fix | Delete
{
[247] Fix | Delete
if($result['status']==0)
[248] Fix | Delete
{
[249] Fix | Delete
$er_msg=$result['msg'];
[250] Fix | Delete
echo '<div style="color:red;font-size:15px;padding:3px;">'.$er_msg.'</div>';
[251] Fix | Delete
}
[252] Fix | Delete
if($result['status']==1 || isset($result['package_details'])){
[253] Fix | Delete
$auth_entries=$result['msg'];
[254] Fix | Delete
[255] Fix | Delete
?>
[256] Fix | Delete
<div id="auth_entries_div" style="margin-bottom: 5px;">
[257] Fix | Delete
<?php if(!empty($result) && isset($result['package_details']))
[258] Fix | Delete
{
[259] Fix | Delete
?><div class="xyz_fbap_plan_label"> <?php _e('Current Plan:','facebook-auto-publish'); ?> </div><?php
[260] Fix | Delete
$package_details=$result['package_details']; ?>
[261] Fix | Delete
<div class="xyz_fbap_plan_div"> <?php _e('Allowed Facebook users:','facebook-auto-publish'); ?> <?php echo $package_details['allowed_fb_user_accounts'];?> &nbsp;</div>
[262] Fix | Delete
<div class="xyz_fbap_plan_div"> <?php _e('API limit per account :','facebook-auto-publish'); ?> <?php echo $package_details['allowed_api_calls'];?> <?php _e('per hour','facebook-auto-publish'); ?> &nbsp;</div>
[263] Fix | Delete
<div class="xyz_fbap_plan_div"> <?php _e('Package Expiry :','facebook-auto-publish'); ?> <?php echo date('d/m/Y g:i a', $package_details['expiry_time']);?> &nbsp;</div>
[264] Fix | Delete
<div class="xyz_fbap_plan_div"> <?php _e('Package Status :','facebook-auto-publish'); ?> <?php echo $package_details['package_status'];?> &nbsp;</div>
[265] Fix | Delete
<?php
[266] Fix | Delete
[267] Fix | Delete
$xyz_smap_plug_accountId=$xyz_fbap_pre_smapsoln_userid=0;$xyz_smap_plug_licence_key='';
[268] Fix | Delete
$request_hash=md5($xyzscripts_user_id.$xyzscripts_hash_val);
[269] Fix | Delete
$auth_secret_key=md5('smapsolutions'.$domain_name.$xyz_smap_plug_accountId.$xyz_fbap_pre_smapsoln_userid.$xyzscripts_user_id.$request_hash.$xyz_smap_plug_licence_key.$free_plugin_source.'1');
[270] Fix | Delete
?>
[271] Fix | Delete
<div class="xyz_fbap_plan_div">
[272] Fix | Delete
<a href="javascript:fbap_popup_purchase_plan('<?php echo $auth_secret_key;?>','<?php echo $request_hash;?>');void(0);">
[273] Fix | Delete
<i class="fa fa-shopping-cart" aria-hidden="true"></i>&nbsp;<?php _e('Upgrade/Renew','facebook-auto-publish'); ?>
[274] Fix | Delete
</a>
[275] Fix | Delete
</div>
[276] Fix | Delete
<?php
[277] Fix | Delete
}
[278] Fix | Delete
if (is_array($auth_entries) && !empty($auth_entries)){?>
[279] Fix | Delete
<span class="select_box" style="float: left;margin-top: 16px;">
[280] Fix | Delete
<input type="radio" name="domain_selection" value="0" id="show_all"> <?php _e('Show all entries','facebook-auto-publish'); ?>
[281] Fix | Delete
<input type="radio" name="domain_selection" value="1" id="show_same_domain"> <?php _e('Show entries from current wp installation','facebook-auto-publish'); ?>
[282] Fix | Delete
<input type="radio" name="domain_selection" value="2" id="show_diff_domain"> <?php _e('Show entries from other wp installations','facebook-auto-publish'); ?>
[283] Fix | Delete
</span>
[284] Fix | Delete
<table cellpadding="0" cellspacing="0" class="widefat" style="width: 99%; margin: 0 auto; border-bottom:none;" id="fbap_manage_auth_table">
[285] Fix | Delete
<thead>
[286] Fix | Delete
<tr class="xyz_fbap_manage_auth_th">
[287] Fix | Delete
[288] Fix | Delete
<th scope="col" width="8%"> <?php _e('Facebook username','facebook-auto-publish'); ?> </th>
[289] Fix | Delete
<th scope="col" width="10%"> <?php _e('Selected pages','facebook-auto-publish'); ?> </th>
[290] Fix | Delete
<th scope="col" width="10%"> <?php _e('Selected groups','facebook-auto-publish'); ?> </th>
[291] Fix | Delete
<th scope="col" width="10%"> <?php $fbap_wp="WP";
[292] Fix | Delete
$fbap_wp_url=sprintf(__('%s url','facebook-auto-publish'),$fbap_wp);
[293] Fix | Delete
echo $fbap_wp_url; ?> </th>
[294] Fix | Delete
[295] Fix | Delete
<th scope="col" width="10%"> <?php _e('Plugin','facebook-auto-publish'); ?> </th>
[296] Fix | Delete
<th scope="col" width="5%"> <?php $fbap_smap_premium_var="(SMAP PREMIUM)";
[297] Fix | Delete
$fbap_smap_premium_title= sprintf(__('Account ID %s','facebook-auto-publish'),$fbap_smap_premium_var);
[298] Fix | Delete
echo $fbap_smap_premium_title; ?> </th>
[299] Fix | Delete
<th scope="col" width="5%"> <?php _e('Action','facebook-auto-publish'); ?> </th>
[300] Fix | Delete
</tr>
[301] Fix | Delete
</thead> <?php
[302] Fix | Delete
$i=0;
[303] Fix | Delete
foreach ($auth_entries as $auth_entries_key => $auth_entries_val)
[304] Fix | Delete
{
[305] Fix | Delete
if (isset($auth_entries_val['auth_id']))
[306] Fix | Delete
{
[307] Fix | Delete
?>
[308] Fix | Delete
<tr class="tr_<?php echo $auth_entries_val['auth_id'];?>">
[309] Fix | Delete
[310] Fix | Delete
<td><?php echo $auth_entries_val['fb_username'];?>
[311] Fix | Delete
</td>
[312] Fix | Delete
<?php if(isset($auth_entries_val['pages'])&& !empty($auth_entries_val['pages'])){?>
[313] Fix | Delete
<td> <?php echo $auth_entries_val['pages'];?> </td>
[314] Fix | Delete
<?php }else echo "<td> NA </td>";?>
[315] Fix | Delete
<?php if(isset($auth_entries_val['groups'])&& !empty($auth_entries_val['groups'])){?>
[316] Fix | Delete
<td> <?php echo $auth_entries_val['groups'];?> </td>
[317] Fix | Delete
<?php }else echo "<td> NA </td>";?>
[318] Fix | Delete
<?php if($auth_entries_val['domain_name']==$domain_name){?>
[319] Fix | Delete
<td class='same_domain'> <?php echo $auth_entries_val['domain_name'];?> </td>
[320] Fix | Delete
<?php }
[321] Fix | Delete
else{?>
[322] Fix | Delete
<td class='diff_domain'> <?php echo $auth_entries_val['domain_name'];?> </td>
[323] Fix | Delete
<?php } ?>
[324] Fix | Delete
<td> <?php
[325] Fix | Delete
if($auth_entries_val['free_plugin_source']=='fbap')
[326] Fix | Delete
echo 'WP2SOCIAL AUTO PUBLISH';
[327] Fix | Delete
elseif ($auth_entries_val['free_plugin_source']=='smap')
[328] Fix | Delete
echo 'SOCIAL MEDIA AUTO PUBLISH';
[329] Fix | Delete
elseif ($auth_entries_val['free_plugin_source']=='pls')
[330] Fix | Delete
echo 'XYZ WP SMAP PREMIUM PLUS';
[331] Fix | Delete
else echo 'XYZ-SMAP';
[332] Fix | Delete
?></td>
[333] Fix | Delete
<td> <?php if($auth_entries_val['smap_pre_account_id']!=0)echo $auth_entries_val['smap_pre_account_id'];
[334] Fix | Delete
else _e('Not Applicable','facebook-auto-publish');?> </td>
[335] Fix | Delete
<td>
[336] Fix | Delete
<?php if ($domain_name==$auth_entries_val['domain_name'] && $free_plugin_source==$auth_entries_val['free_plugin_source'] ) {
[337] Fix | Delete
// $md5_encrypt=md5('smapsolutions'.$xyzscripts_user_id.$xyzscripts_hash_val.$auth_entries_val['auth_id']);
[338] Fix | Delete
?>
[339] Fix | Delete
<span id='ajax-save_<?php echo $auth_entries_val['auth_id'];?>' style="display:none;"><img title="Deleting entry" src="<?php echo plugins_url("images/ajax-loader.gif",XYZ_FBAP_PLUGIN_FILE);?>" style="width:20px;height:20px; "></span>
[340] Fix | Delete
<span id='show-del-icon_<?php echo $auth_entries_val['auth_id'];?>'>
[341] Fix | Delete
<input type="button" class="delete_auth_entry" data-id=<?php echo $auth_entries_val['auth_id'];?> data-xyzscriptsid="<?php echo $xyzscripts_user_id;?>" data-xyzscripts_hash="<?php echo $xyzscripts_hash_val;?>" name='del_entry' value="<?php _e('Delete','facebook-auto-publish');?>" >
[342] Fix | Delete
</span>
[343] Fix | Delete
<span id='show_err_<?php echo $auth_entries_val['auth_id'];?>' style="color:red;" ></span>
[344] Fix | Delete
<?php //data-encrypt="<?php echo $md5_encrypt;
[345] Fix | Delete
?></td>
[346] Fix | Delete
</tr>
[347] Fix | Delete
<?php
[348] Fix | Delete
}
[349] Fix | Delete
}
[350] Fix | Delete
else if (isset($auth_entries_val['inactive_fb_userid']))
[351] Fix | Delete
{
[352] Fix | Delete
?>
[353] Fix | Delete
<tr class="tr_inactive<?php echo $i;?>">
[354] Fix | Delete
<td><?php echo $auth_entries_val['inactive_fb_username'];?><br/> <?php _e('(Inactive)','facebook-auto-publish'); ?>
[355] Fix | Delete
</td>
[356] Fix | Delete
<td>-</td>
[357] Fix | Delete
<td>-</td>
[358] Fix | Delete
<td>-</td>
[359] Fix | Delete
<td>-</td>
[360] Fix | Delete
<td>-</td>
[361] Fix | Delete
<td>
[362] Fix | Delete
<span id='ajax-save-inactive-fb_<?php echo $i;?>' style="display:none;"><img title="Deleting entry" src="<?php echo plugins_url("images/ajax-loader.gif",XYZ_FBAP_PLUGIN_FILE);?>" style="width:20px;height:20px; "></span>
[363] Fix | Delete
<span id='show-del-icon-inactive-fb_<?php echo $i;?>'>
[364] Fix | Delete
<input type="button" class="delete_inactive_fb_entry" data-iterationid=<?php echo $i;?> data-fbid=<?php echo $auth_entries_val['inactive_fb_userid'];?> data-xyzscriptsid="<?php echo $xyzscripts_user_id;?>" data-xyzscripts_hash="<?php echo $xyzscripts_hash_val;?>" name='del_entry' value="<?php _e('Delete','facebook-auto-publish');?>" >
[365] Fix | Delete
</span>
[366] Fix | Delete
<span id='show_err_inactive_fb_<?php echo $i;?>' style="color:red;" ></span>
[367] Fix | Delete
</td>
[368] Fix | Delete
</tr>
[369] Fix | Delete
<?php
[370] Fix | Delete
$i++;
[371] Fix | Delete
}
[372] Fix | Delete
}///////////////foreach
[373] Fix | Delete
?>
[374] Fix | Delete
<tr id="xyz_fbap_no_auth_entries" style="display: none;"><td> <?php _e('No Authorizations','facebook-auto-publish'); ?> </td></tr>
[375] Fix | Delete
</table><?php } ?></div><?php
[376] Fix | Delete
[377] Fix | Delete
}
[378] Fix | Delete
}
[379] Fix | Delete
else { ?>
[380] Fix | Delete
<div> <?php _e('Unable to connect. Please check your curl and firewall settings','facebook-auto-publish'); ?> </div>
[381] Fix | Delete
<?php }?>
[382] Fix | Delete
</div>
[383] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function