Файловый менеджер - Редактировать - C:/wwwroot/www.game-competition.com/static/img/logo/delete-games.php.tar
�азад
C:/wwwroot/www.game-competition.com/admin/delete-games.php 0000666 00000003533 15032760760 0017564 0 ustar 00 <?php $page = "Delete Games" ?> <?php include "includes/config.php"; ?> <?php require "../app/includes/function_general.php"; ?> <?php include("includes/header.php"); if (isset($_GET) && !empty($_GET)) { if (isset($_GET['delete']) && $_GET['delete'] == 'true') { $sql = "TRUNCATE TABLE zon_games"; if (mysqli_query($con, $sql)) { echo "<script>window.location.href = 'index.php';</script>"; } } if (isset($_GET['shuffle']) && $_GET['shuffle'] == 'true') { $sql = "UPDATE zon_games SET `game_sort` = (FLOOR(RAND() * 100) + 100), `game_played`=(FLOOR(RAND() * 1700) + 500), `game_quality`=(FLOOR(RAND() * 10000000) + 80000000)/100000000"; // echo $sql; if (mysqli_query($con, $sql)) { echo "<script>window.location.href = 'index.php';</script>"; } } } ?> <body class="dark:bg-[#121317]"> <main class="d-flex "> <?php include "includes/sidebar.php"; ?> <div class="main w-full px-12 py-6"> <div class="games-list"> <h1 class="text-3xl font-bold" >Delete All Games</h1> <p class="text-sm mt-2 text-red-700 " >With this action, all the games on your server will be deleted.</p> <a href="?delete=true" class="px-4 bg-red-600 text-white font-bold rounded-md mt-4 block w-fit py-2">Delete Games</a> </div> <div class="games-list mt-20"> <h1 class="text-3xl font-bold" >重新打乱游戏的排序</h1> <p class="text-sm mt-2 text-red-700 " >With this action, all the games on your server will be shuffle.</p> <a href="?shuffle=true" class="px-4 text-white font-bold rounded-md mt-4 block w-fit py-2" style="background: #1a73e8;">Shuffle Games</a> </div> </div> </main> </body>