One Hat Cyber Team
Your IP :
3.147.71.116
Server IP :
50.28.103.30
Server :
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software :
nginx/1.24.0
PHP Version :
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
ef.electronharmony.com
/
1
/
T5
/
View File Name :
index.php
<!DOCTYPE html> <html> <head> <title>powerball</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://cdn.staticfile.net/twitter-bootstrap/5.1.1/css/bootstrap.min.css" rel="stylesheet"> <script src="https://cdn.staticfile.net/twitter-bootstrap/5.1.1/js/bootstrap.bundle.min.js"></script> </head> <body> <nav class="navbar navbar-expand-sm navbar-dark bg-dark"> <div class="container-fluid "> <a class="navbar-brand" href="javascript:void(0)">Powerball</a> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mynavbar"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="mynavbar"> <ul class="navbar-nav me-auto "> <li class="nav-item"> <a class="nav-link" href="#demo" data-bs-toggle="collapse">add</a> </li> </ul> <form class="d-flex"> <input class="form-control me-2" type="text" placeholder="Search"> <button class="btn btn-primary" type="button">Search</button> </form> </div> </div> </nav> <div id="demo" class="collapse"> <div class="container mt-3"> <form action="submit_powerball.php" autocomplete="off" method="POST"> <div class="mb-3 mt-3"> <label for="num1" class="form-label">Number 1:</label> <input type="number" class="form-control" id="num1" name="num1" placeholder="Enter first number" min="1" max="69" required> </div> <div class="mb-3"> <label for="num2" class="form-label">Number 2:</label> <input type="number" class="form-control" id="num2" name="num2" placeholder="Enter second number" min="1" max="69" required> </div> <div class="mb-3"> <label for="num3" class="form-label">Number 3:</label> <input type="number" class="form-control" id="num3" name="num3" placeholder="Enter third number" min="1" max="69" required> </div> <div class="mb-3"> <label for="num4" class="form-label">Number 4:</label> <input type="number" class="form-control" id="num4" name="num4" placeholder="Enter fourth number" min="1" max="69" required> </div> <div class="mb-3"> <label for="num5" class="form-label">Number 5:</label> <input type="number" class="form-control" id="num5" name="num5" placeholder="Enter fifth number" min="1" max="69" required> </div> <div class="mb-3"> <label for="powerball" class="form-label text-danger">Powerball:</label> <input type="number" class="form-control" id="powerball" name="powerball" placeholder="Enter Powerball number" min="1" max="26" required> </div> <div class="mb-3"> <label for="custom_date" class="form-label text-primary">Select Date:</label> <input type="text" class="form-control" id="custom_date" name="custom_date" required> </div> <button type="submit" class="btn btn-primary">Submit</button> </form> </div> </div> <?php // 包含数据库配置文件 include 'db_config.php'; try { // 查询数据库,获取 Powerball 数据 $stmt = $conn->query("SELECT custom_date, num1, num2, num3, num4, num5, powerball FROM powerball_entries ORDER BY id DESC"); // 检查是否有数据 if ($stmt->rowCount() > 0) { while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { // 提取数据 $custom_date_raw = $row['custom_date']; $num1 = $row['num1']; $num2 = $row['num2']; $num3 = $row['num3']; $num4 = $row['num4']; $num5 = $row['num5']; $powerball = $row['powerball']; // 格式化日期 $custom_date = DateTime::createFromFormat('Y-m-d', $custom_date_raw)->format('D, M j, Y'); // 输出 HTML 结构 echo '<div class="container mt-3">'; echo '<p class="text-muted">' . htmlspecialchars($custom_date) . '</p>'; echo '<button type="button" style="width:50px;height:50px;" class="btn rounded-circle btn-secondary">' . $num1 . '</button> '; echo '<button type="button" style="width:50px;height:50px;" class="btn rounded-circle btn-secondary">' . $num2 . '</button> '; echo '<button type="button" style="width:50px;height:50px;" class="btn rounded-circle btn-secondary">' . $num3 . '</button> '; echo '<button type="button" style="width:50px;height:50px;" class="btn rounded-circle btn-secondary">' . $num4 . '</button> '; echo '<button type="button" style="width:50px;height:50px;" class="btn rounded-circle btn-secondary">' . $num5 . '</button> '; echo '<button type="button" style="width:50px;height:50px;" class="btn rounded-circle btn-danger">' . $powerball . '</button>'; echo '</div>'; } } else { echo '<p>No Powerball entries found.</p>'; } } catch (PDOException $e) { echo "Error: " . $e->getMessage(); } ?> <!---弹窗内容----> </body> </html>