Server IP : 213.176.29.180 / Your IP : 3.137.187.81 Web Server : Apache System : Linux 213.176.29.180.hostiran.name 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64 User : webtaragh ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0777) : /home/webtaragh/public_html/whmcs/../wp-content/plugins/wp-social/app/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php namespace WP_Social\App; defined('ABSPATH') || exit; class Legacy { public function __construct() { $this->clone_enabled_provider_share(); } public function clone_enabled_provider_share() { $enabled_providers = Settings::instance()->get_enabled_providers_share(); if(empty($enabled_providers)) { $old = Settings::instance()->get_share_provider_settings(); $tmp = []; if(empty($old)) { $core_provider = Providers::get_core_providers_share(); foreach($core_provider as $key => $item) { $tmp[$key]['enable'] = ''; } $settings['social'] = $tmp; Settings::instance()->update_share_provider_settings($settings); return true; } foreach($old['social'] as $key => $item) { $tmp[$key]['enable'] = empty($item['enable']) ? '' : 1; } $settings['social'] = $tmp; Settings::instance()->update_share_provider_settings($settings); return true; } return true; } }