File: //proc/self/cwd/wp-content/plugins/bot-nemesis_6551354a614844b2a78837b5afc250af/inc/Server.php
<?php
namespace BotNemesis;
class Server
{
public static function receiveUpdates()
{
$reply = array('updated' => 'denied');
if( ! empty($_POST['client_uid']) && ! empty($_POST['master_settings']) &&
($master_settings = json_decode(base64_decode($_POST['master_settings']))) &&
$_POST['client_uid'] === get_option('bn_client_uid'))
{
$reply['updated'] = Settings::applyMasterSettings($master_settings) ? 'success' : 'failed';
}
wp_send_json($reply);
}
public static function echoDomain()
{
wp_send_json(array('client_domain' => get_option('siteurl')));
}
}