403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.45
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/httpd/html/xxxupdates.com/public_html/wp-content/plugins/age-gate/src/Admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/xxxupdates.com/public_html/wp-content/plugins/age-gate/src/Admin//Ajax.php
<?php

namespace AgeGate\Admin;

use AgeGate\Admin\Controller\ContentController;
use Asylum\Utility\Notice;
use AgeGate\Admin\Taxonomy\TermHelper;
use AgeGate\Common\Immutable\Constants;

class Ajax
{
    public function __construct()
    {
        add_action('wp_ajax_ag_clear_legacy_css', [$this, 'removeLegacyCss']);
        add_action('wp_ajax_age_gate_store_terms', [$this, 'storeTerms']);
    }

    public function removeLegacyCss()
    {
        $postData = wp_unslash($_POST ?? []);

        $data = [];
        if (!current_user_can(Constants::ADVANCED) || !wp_verify_nonce($postData['nonce'], 'ag_clear_css' )) {
            $data['status'] = 'Not allowed';
            $code = 401;
        } else {
            delete_option('age_gate_legacy_css');
            Notice::add(__('Legacy CSS removed', 'age-gate'), 'success');
            $data['status'] = 'ok';
            $code = 200;
        }

        wp_send_json($data, $code);
        wp_die();
    }

    public function storeTerms()
    {
        $postData = wp_unslash($_POST ?? []);

        if (!current_user_can( Constants::CONTENT) || !wp_verify_nonce($postData['nonce'], 'age_gate_store_terms')) {
            wp_send_json_error( [], 401);
        }

        $options = get_option(ContentController::OPTION, []);

        if ($postData['idx'] == 0) {
            $options['terms'] = [];
        }

        $options['terms'] = array_merge($options['terms'] ?? [], $postData['ag_settings'] ?? []);

        update_option(ContentController::OPTION, $options);

        wp_send_json([
            'terms' => $options['terms'],
        ]);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit