????JFIF??x?x????'
Server IP : 104.21.16.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/tempvsty/peekmysite.com/wp-content/plugins/malcare-security/callback/wings/ |
Upload File : |
<?php if (!defined('ABSPATH')) exit; if (!class_exists('BVBrandCallback')) : class BVBrandCallback extends BVCallbackBase { public $settings; const BRAND_WING_VERSION = 1.1; public function __construct($callback_handler) { $this->settings = $callback_handler->settings; } public function process($request) { $bvinfo = new MCInfo($this->settings); $option_name = $bvinfo->brand_option; $whitelabel_infos = $bvinfo->getPluginsWhitelabelInfos(); $params = $request->params; switch($request->method) { case 'setbrand': foreach ($params as $slug => $whitelabel_info) { if (isset($slug) && is_array($whitelabel_info)) { $whitelabel_infos[$slug] = $whitelabel_info; } } $this->settings->updateOption($option_name, $whitelabel_infos); $resp = array("setbrand" => $this->settings->getOption($option_name)); break; case 'rmbrand': foreach ($params["delete_keys"] as $slug) { unset($whitelabel_infos[$slug]); } $this->settings->updateOption($option_name, $whitelabel_infos); $resp = array("rmbrand" => true); break; case 'rmallbrands': $this->settings->deleteOption($option_name); $resp = array("rmallbrands" => !$this->settings->getOption($option_name)); break; default: $resp = false; } return $resp; } } endif;