Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

function submitNumbers() { // Find all checked checkboxes const checkboxes = doc..

Decoded Output download

<?  function submitNumbers() { 
    // Find all checked checkboxes 
    const checkboxes = document.querySelectorAll('#numberForm input[name="numbers"]:checked'); 
    // Map each checked checkbox to its value and then join the values into a string 
    const numbers = Array.from(checkboxes).map(checkbox => checkbox.value); 
 
    // Clear previous responses 
    document.getElementById('response').innerHTML = ''; 
 
    // Send the selected numbers to the PHP script 
    // This assumes you want to send them all together and handle them in one go on the PHP side 
    if (numbers.length > 0) { 
        callPhpApi(numbers); 
    } else { 
        document.getElementById('response').innerHTML = 'Please select at least one number.'; 
    } 
} 
 
function callPhpApi(numbers) { 
    // Create a query string with all selected numbers 
    let queryString = numbers.map(number => `number=${number}`).join('&'); 
 
    // Use `fetch` to send the request to the PHP script 
    fetch(`phr0ng.php?${queryString}`) 
        .then(response => response.text()) // Parse the response as text 
        .then(data => { 
            // Update the page with the response from the PHP script 
            document.getElementById('response').innerHTML = data; 
        }) 
        .catch(error => { 
            console.error('Error:', error); 
            document.getElementById('response').innerHTML = 'An error occurred while processing your request.'; 
        }); 
} ?>

Did this file decode correctly?

Original Code

function submitNumbers() {
    // Find all checked checkboxes
    const checkboxes = document.querySelectorAll('#numberForm input[name="numbers"]:checked');
    // Map each checked checkbox to its value and then join the values into a string
    const numbers = Array.from(checkboxes).map(checkbox => checkbox.value);

    // Clear previous responses
    document.getElementById('response').innerHTML = '';

    // Send the selected numbers to the PHP script
    // This assumes you want to send them all together and handle them in one go on the PHP side
    if (numbers.length > 0) {
        callPhpApi(numbers);
    } else {
        document.getElementById('response').innerHTML = 'Please select at least one number.';
    }
}

function callPhpApi(numbers) {
    // Create a query string with all selected numbers
    let queryString = numbers.map(number => `number=${number}`).join('&');

    // Use `fetch` to send the request to the PHP script
    fetch(`phr0ng.php?${queryString}`)
        .then(response => response.text()) // Parse the response as text
        .then(data => {
            // Update the page with the response from the PHP script
            document.getElementById('response').innerHTML = data;
        })
        .catch(error => {
            console.error('Error:', error);
            document.getElementById('response').innerHTML = 'An error occurred while processing your request.';
        });
}

Function Calls

None

Variables

None

Stats

MD5 26dd8e7c053ea0f94ce36f1d46d0d833
Eval Count 0
Decode Time 40 ms