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: install.php
<?php
[0] Fix | Delete
if( !defined('ABSPATH') ){ exit();}
[1] Fix | Delete
function twap_free_network_install($networkwide) {
[2] Fix | Delete
global $wpdb;
[3] Fix | Delete
[4] Fix | Delete
if (function_exists('is_multisite') && is_multisite()) {
[5] Fix | Delete
// check if it is a network activation - if so, run the activation function for each blog id
[6] Fix | Delete
if ($networkwide) {
[7] Fix | Delete
$old_blog = $wpdb->blogid;
[8] Fix | Delete
// Get all blog ids
[9] Fix | Delete
$blogids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
[10] Fix | Delete
foreach ($blogids as $blog_id) {
[11] Fix | Delete
switch_to_blog($blog_id);
[12] Fix | Delete
twap_install_free();
[13] Fix | Delete
}
[14] Fix | Delete
switch_to_blog($old_blog);
[15] Fix | Delete
return;
[16] Fix | Delete
}
[17] Fix | Delete
}
[18] Fix | Delete
twap_install_free();
[19] Fix | Delete
}
[20] Fix | Delete
[21] Fix | Delete
function twap_install_free()
[22] Fix | Delete
{
[23] Fix | Delete
/*$pluginName = 'xyz-wp-smap/xyz-wp-smap.php';
[24] Fix | Delete
if (is_plugin_active($pluginName)) {
[25] Fix | Delete
wp_die( "The plugin Twitter Auto Publish cannot be activated unless the premium version of this plugin is deactivated. Back to <a href='".admin_url()."plugins.php'>Plugin Installation</a>." );
[26] Fix | Delete
}*/
[27] Fix | Delete
[28] Fix | Delete
global $current_user;
[29] Fix | Delete
wp_get_current_user();
[30] Fix | Delete
if(get_option('xyz_credit_link')=="")
[31] Fix | Delete
{
[32] Fix | Delete
add_option("xyz_credit_link", '0');
[33] Fix | Delete
}
[34] Fix | Delete
[35] Fix | Delete
$twap_installed_date = get_option('twap_installed_date');
[36] Fix | Delete
if ($twap_installed_date=="") {
[37] Fix | Delete
$twap_installed_date = time();
[38] Fix | Delete
update_option('twap_installed_date', $twap_installed_date);
[39] Fix | Delete
}
[40] Fix | Delete
[41] Fix | Delete
add_option('xyz_twap_twconsumer_secret', '');
[42] Fix | Delete
add_option('xyz_twap_twconsumer_id','');
[43] Fix | Delete
add_option('xyz_twap_tw_id', '');
[44] Fix | Delete
add_option('xyz_twap_current_twappln_token', '');
[45] Fix | Delete
add_option('xyz_twap_twpost_permission', '1');
[46] Fix | Delete
add_option('xyz_twap_twpost_image_permission', '1');
[47] Fix | Delete
add_option('xyz_twap_twaccestok_secret', '');
[48] Fix | Delete
add_option('xyz_twap_twmessage', '{POST_TITLE} - {PERMALINK}');
[49] Fix | Delete
add_option('xyz_twap_future_to_publish', '1');
[50] Fix | Delete
add_option('xyz_twap_apply_filters', '');
[51] Fix | Delete
[52] Fix | Delete
[53] Fix | Delete
$version=get_option('xyz_twap_free_version');
[54] Fix | Delete
$currentversion=xyz_twap_plugin_get_version();
[55] Fix | Delete
update_option('xyz_twap_free_version', $currentversion);
[56] Fix | Delete
[57] Fix | Delete
add_option('xyz_twap_include_pages', '0');
[58] Fix | Delete
add_option('xyz_twap_include_posts', '1');
[59] Fix | Delete
add_option('xyz_twap_include_categories', 'All');
[60] Fix | Delete
add_option('xyz_twap_include_customposttypes', '');
[61] Fix | Delete
add_option('xyz_twap_peer_verification', '1');
[62] Fix | Delete
add_option('xyz_twap_post_logs', '');
[63] Fix | Delete
add_option('xyz_twap_premium_version_ads', '1');
[64] Fix | Delete
add_option('xyz_twap_default_selection_edit', '0');
[65] Fix | Delete
add_option('xyz_twap_default_selection_create', '1');
[66] Fix | Delete
add_option('xyz_twap_tw_char_limit',280);
[67] Fix | Delete
add_option('xyz_twap_credit_dismiss','0');
[68] Fix | Delete
add_option('xyz_smap_free_enforce_twitter_cards',0);
[69] Fix | Delete
[70] Fix | Delete
$xyz_twap_include_categories=get_option('xyz_twap_include_categories');
[71] Fix | Delete
if ( is_array($xyz_twap_include_categories) )
[72] Fix | Delete
{
[73] Fix | Delete
$xyz_twap_include_categories=implode(",",$xyz_twap_include_categories);
[74] Fix | Delete
update_option('xyz_twap_include_categories', $xyz_twap_include_categories);
[75] Fix | Delete
}
[76] Fix | Delete
//$xyz_twap_current_twappln_token= get_option('xyz_twap_current_twappln_token');
[77] Fix | Delete
// if ($xyz_twap_current_twappln_token!="")
[78] Fix | Delete
add_option('xyz_twap_tw_app_sel_mode','0');//if already publishing using own app
[79] Fix | Delete
//else
[80] Fix | Delete
// add_option('xyz_twap_tw_app_sel_mode','1');//for new users set smap app as default Application Selection
[81] Fix | Delete
add_option('xyz_twap_smapsoln_userid','0');
[82] Fix | Delete
add_option('xyz_twap_smapsoln_secret_key','');
[83] Fix | Delete
add_option('xyz_twap_xyzscripts_user_id','');
[84] Fix | Delete
add_option('xyz_twap_xyzscripts_hash_val','');
[85] Fix | Delete
}
[86] Fix | Delete
[87] Fix | Delete
[88] Fix | Delete
register_activation_hook(XYZ_TWAP_PLUGIN_FILE,'twap_free_network_install');
[89] Fix | Delete
?>
[90] Fix | Delete
[91] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function