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/wcfs/backup files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/wcfs/backup files/admin_dashboard.php.old
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Admin Dashboard</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <header>
        <div class="logo">
            <img src="/path-to-logo/Logo.jpg" alt="Wilson Creek Farm Supply Logo">
        </div>
        <h1>Admin Dashboard</h1>
    </header>

    <main class="hero">
        <h2>Post Updates and Promotions</h2>
        <form action="post_update.php" method="POST" enctype="multipart/form-data">
    <div class="form-group">
        <label for="title">Title:</label>
        <input type="text" id="title" name="title" required>
    </div>
    <div class="form-group">
        <label for="description">Description:</label>
        <textarea id="description" name="description" rows="5" required></textarea>
    </div>
    <div class="form-group">
        <label for="image">Upload Image (optional):</label>
        <input type="file" id="image" name="image" accept="image/*">
    </div>
    <button type="submit" class="btn">Post Update</button>
</form>

        <h2>Current Updates</h2>
<div class="updates-list">
    <?php
    // Database connection
    $conn = new mysqli("localhost", "nodor", "D@n33Nao40", "wcfs");

    // Check connection
    if ($conn->connect_error) {
        die("Connection failed: " . $conn->connect_error);
    }

    // Fetch updates from the database
    $sql = "SELECT title, description, image_path, created_at FROM updates ORDER BY created_at DESC";
    $result = $conn->query($sql);

    if ($result->num_rows > 0) {
        while ($row = $result->fetch_assoc()) {
            echo "<div class='update-item'>";
            echo "<h3>" . htmlspecialchars($row['title']) . "</h3>";
            echo "<p>" . htmlspecialchars($row['description']) . "</p>";
            if (!empty($row['image_path'])) {
                echo "<img src='" . htmlspecialchars($row['image_path']) . "' alt='Update Image' class='update-image'>";
            }
            echo "<small>Posted on: " . date("F j, Y, g:i a", strtotime($row['created_at'])) . "</small>";
            echo "</div>";
        }
    } else {
        echo "<p>No updates posted yet.</p>";
    }

    $conn->close();
    ?>
</div>

    <footer>
        <p>&copy; 2025 Wilson Creek Farm Supply. All rights reserved.</p>
    </footer>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit