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