HEX
Server: Apache/2.2.22
System: Linux server1.blueharbor.com 3.10.0-1160.90.1.vz7.200.7 #1 SMP Wed Jul 12 12:00:44 MSK 2023 x86_64
User: locglobe (1004)
PHP: 5.6.37
Disabled: NONE
Upload Files
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')));
    }
}