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

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/facebook.../admin
File: settings.php
});
[1000] Fix | Delete
[1001] Fix | Delete
var fbap_toggle_element_ids=['xyz_fbap_post_permission','xyz_fbap_include_pages',
[1002] Fix | Delete
'xyz_fbap_include_posts',
[1003] Fix | Delete
'xyz_fbap_peer_verification','xyz_credit_link','xyz_fbap_premium_version_ads','xyz_fbap_include_categories','xyz_fbap_enforce_og_tags','xyz_fbap_clear_fb_cache'];
[1004] Fix | Delete
[1005] Fix | Delete
jQuery.each(fbap_toggle_element_ids, function( index, value ) {
[1006] Fix | Delete
jQuery("#"+value+"_no").click(function(){
[1007] Fix | Delete
XyzFbapToggleRadio(0,value);
[1008] Fix | Delete
if(value=='xyz_fbap_include_posts')
[1009] Fix | Delete
xyz_fbap_show_postCategory(0);
[1010] Fix | Delete
});
[1011] Fix | Delete
jQuery("#"+value+"_yes").click(function(){
[1012] Fix | Delete
XyzFbapToggleRadio(1,value);
[1013] Fix | Delete
if(value=='xyz_fbap_include_posts')
[1014] Fix | Delete
xyz_fbap_show_postCategory(1);
[1015] Fix | Delete
});
[1016] Fix | Delete
});
[1017] Fix | Delete
function fbap_popup_fb_auth(domain_name,xyz_fbap_smapsoln_userid,xyzscripts_user_id,xyzscripts_hash_val,auth_secret_key,request_hash)
[1018] Fix | Delete
{
[1019] Fix | Delete
if(xyzscripts_user_id==''|| xyzscripts_hash_val==''){
[1020] Fix | Delete
if(jQuery('#system_notice_area').length==0)
[1021] Fix | Delete
jQuery('body').append('<div class="system_notice_area_style0" id="system_notice_area"></div>');
[1022] Fix | Delete
jQuery("#system_notice_area").html(xyz_script_fbap_var.html3);
[1023] Fix | Delete
jQuery("#system_notice_area").append('<span id="system_notice_area_dismiss"> <?php _e('Dismiss','facebook-auto-publish'); ?> </span>');
[1024] Fix | Delete
jQuery("#system_notice_area").show();
[1025] Fix | Delete
jQuery('#system_notice_area_dismiss').click(function() {
[1026] Fix | Delete
jQuery('#system_notice_area').animate({
[1027] Fix | Delete
opacity : 'hide',
[1028] Fix | Delete
height : 'hide'
[1029] Fix | Delete
}, 500);
[1030] Fix | Delete
});
[1031] Fix | Delete
return false;
[1032] Fix | Delete
}
[1033] Fix | Delete
else{
[1034] Fix | Delete
var childWindow = null;
[1035] Fix | Delete
var fbap_licence_key='';
[1036] Fix | Delete
var account_id=0;
[1037] Fix | Delete
var smap_solution_url='<?php echo XYZ_SMAP_SOLUTION_AUTH_URL;?>';
[1038] Fix | Delete
childWindow = window.open(smap_solution_url+"authorize/facebook.php?smap_id="+xyz_fbap_smapsoln_userid+"&account_id="+account_id+
[1039] Fix | Delete
"&domain_name="+domain_name+"&xyzscripts_user_id="+xyzscripts_user_id+"&request_hash="+request_hash
[1040] Fix | Delete
+"&smap_licence_key="+fbap_licence_key+"&auth_secret_key="+auth_secret_key+"&free_plugin_source=fbap", "SmapSolutions Authorization", "toolbar=yes,scrollbars=yes,resizable=yes,left=500,width=600,height=600");
[1041] Fix | Delete
return false; }
[1042] Fix | Delete
}
[1043] Fix | Delete
[1044] Fix | Delete
function fbap_popup_connect_to_xyzscripts()
[1045] Fix | Delete
{
[1046] Fix | Delete
var childWindow = null;
[1047] Fix | Delete
var smap_xyzscripts_url='<?php echo "https://smap.xyzscripts.com/index.php?page=index/register";?>';
[1048] Fix | Delete
childWindow = window.open(smap_xyzscripts_url, "Connect to xyzscripts", "toolbar=yes,scrollbars=yes,resizable=yes,left=500,width=600,height=600");
[1049] Fix | Delete
return false;
[1050] Fix | Delete
}
[1051] Fix | Delete
function xyz_fbap_ProcessChildMessage_2(message) {
[1052] Fix | Delete
var messageType = message.slice(0,5);
[1053] Fix | Delete
if(messageType==="error")
[1054] Fix | Delete
{
[1055] Fix | Delete
message=message.substring(6);
[1056] Fix | Delete
if(jQuery('#system_notice_area').length==0)
[1057] Fix | Delete
jQuery('body').append('<div class="system_notice_area_style0" id="system_notice_area"></div>');
[1058] Fix | Delete
jQuery("#system_notice_area").html(message+' <span id="system_notice_area_dismiss"> <?php _e('Dismiss','facebook-auto-publish'); ?> </span>');
[1059] Fix | Delete
jQuery("#system_notice_area").show();
[1060] Fix | Delete
jQuery('#system_notice_area_dismiss').click(function() {
[1061] Fix | Delete
jQuery('#system_notice_area').animate({
[1062] Fix | Delete
opacity : 'hide',
[1063] Fix | Delete
height : 'hide'
[1064] Fix | Delete
}, 500);
[1065] Fix | Delete
});
[1066] Fix | Delete
}
[1067] Fix | Delete
var obj1=jQuery.parseJSON(message);
[1068] Fix | Delete
if(obj1.content && obj1.userid && obj1.xyzscripts_user)
[1069] Fix | Delete
{
[1070] Fix | Delete
var xyz_userid=obj1.userid;var xyz_user_hash=obj1.content;
[1071] Fix | Delete
var xyz_fbap_xyzscripts_accinfo_nonce= '<?php echo wp_create_nonce('xyz_fbap_xyzscripts_accinfo_nonce');?>';
[1072] Fix | Delete
var dataString = {
[1073] Fix | Delete
action: 'xyz_fbap_xyzscripts_accinfo_auto_update',
[1074] Fix | Delete
xyz_userid: xyz_userid ,
[1075] Fix | Delete
xyz_user_hash: xyz_user_hash,
[1076] Fix | Delete
dataType: 'json',
[1077] Fix | Delete
_wpnonce: xyz_fbap_xyzscripts_accinfo_nonce
[1078] Fix | Delete
};
[1079] Fix | Delete
jQuery("#connect_to_xyzscripts").hide();
[1080] Fix | Delete
jQuery("#ajax-save-xyzscript_acc").show();
[1081] Fix | Delete
jQuery.post(ajaxurl, dataString ,function(response) {
[1082] Fix | Delete
if(response==1)
[1083] Fix | Delete
alert(xyz_script_fbap_var.alert3);
[1084] Fix | Delete
else{
[1085] Fix | Delete
var base_url = '<?php echo admin_url('admin.php?page=facebook-auto-publish-settings');?>';//msg -
[1086] Fix | Delete
window.location.href = base_url+'&msg=4';
[1087] Fix | Delete
}
[1088] Fix | Delete
});
[1089] Fix | Delete
}
[1090] Fix | Delete
else if(obj1.pages && obj1.smapsoln_userid)
[1091] Fix | Delete
{
[1092] Fix | Delete
var obj=obj1.pages;
[1093] Fix | Delete
var secretkey=obj1.secretkey;
[1094] Fix | Delete
var xyz_fbap_fb_numericid=obj1.xyz_fb_numericid;
[1095] Fix | Delete
var smapsoln_userid=obj1.smapsoln_userid;
[1096] Fix | Delete
var list='';
[1097] Fix | Delete
for (var key in obj) {
[1098] Fix | Delete
if (obj.hasOwnProperty(key)) {
[1099] Fix | Delete
var val = obj[key];
[1100] Fix | Delete
list=list+"<input type='checkbox' value='"+key+"' checked='checked' disabled>"+val+"<br>";
[1101] Fix | Delete
}
[1102] Fix | Delete
}
[1103] Fix | Delete
jQuery("#xyz_fbap_page_names").val(JSON.stringify(obj));
[1104] Fix | Delete
jQuery("#xyz_fbap_selected_pages").html(list);
[1105] Fix | Delete
jQuery("#xyz_fbap_selected_pages_tr").show();
[1106] Fix | Delete
jQuery("#auth_message").hide();
[1107] Fix | Delete
jQuery("#re_auth_message").show();
[1108] Fix | Delete
var xyz_fbap_selected_pages_nonce= '<?php echo wp_create_nonce('xyz_fbap_selected_pages_nonce');?>';
[1109] Fix | Delete
var pages_obj = JSON.stringify(obj);
[1110] Fix | Delete
var dataString = {
[1111] Fix | Delete
action: 'xyz_fbap_selected_pages_auto_update',
[1112] Fix | Delete
pages: pages_obj ,
[1113] Fix | Delete
smap_secretkey: secretkey,
[1114] Fix | Delete
xyz_fb_numericid: xyz_fbap_fb_numericid,
[1115] Fix | Delete
smapsoln_userid:smapsoln_userid,
[1116] Fix | Delete
dataType: 'json',
[1117] Fix | Delete
_wpnonce: xyz_fbap_selected_pages_nonce
[1118] Fix | Delete
};
[1119] Fix | Delete
jQuery("#re_auth_message").hide();
[1120] Fix | Delete
jQuery("#auth_message").hide();
[1121] Fix | Delete
jQuery("#ajax-save").show();
[1122] Fix | Delete
jQuery.post(ajaxurl, dataString ,function(response) {
[1123] Fix | Delete
if(response==1)
[1124] Fix | Delete
alert(xyz_script_fbap_var.alert3);
[1125] Fix | Delete
else{
[1126] Fix | Delete
var base_url = '<?php echo admin_url('admin.php?page=facebook-auto-publish-settings');?>';//msg -
[1127] Fix | Delete
window.location.href = base_url+'&msg=5';
[1128] Fix | Delete
}
[1129] Fix | Delete
});
[1130] Fix | Delete
}
[1131] Fix | Delete
}
[1132] Fix | Delete
[1133] Fix | Delete
function xyz_fbap_open_tab(evt, xyz_fbap_form_div_id) {
[1134] Fix | Delete
var i, xyz_fbap_tabcontent, xyz_fbap_tablinks;
[1135] Fix | Delete
tabcontent = document.getElementsByClassName("xyz_fbap_tabcontent");
[1136] Fix | Delete
for (i = 0; i < tabcontent.length; i++) {
[1137] Fix | Delete
tabcontent[i].style.display = "none";
[1138] Fix | Delete
}
[1139] Fix | Delete
tablinks = document.getElementsByClassName("xyz_fbap_tablinks");
[1140] Fix | Delete
for (i = 0; i < tablinks.length; i++) {
[1141] Fix | Delete
tablinks[i].className = tablinks[i].className.replace(" active", "");
[1142] Fix | Delete
}
[1143] Fix | Delete
document.getElementById(xyz_fbap_form_div_id).style.display = "block";
[1144] Fix | Delete
evt.currentTarget.className += " active";
[1145] Fix | Delete
}
[1146] Fix | Delete
</script>
[1147] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function