Файловый менеджер - Редактировать - /home/u368772545/domains/remushop.com/public_html/static/img/logo/admin.zip
Ðазад
PK �Y�Z��5� � users.phpnu W+A�� <?php $page = "Users"; ?> <?php require "../app/includes/function_general.php"; ?> <?php include "includes/header.php"; ?> <?php // include "includes/config.php"; ?> <body> <main class="d-flex"> <?php include "includes/sidebar.php"; ?> <div class="main w-full px-12 py-6"> <div class="games-list"> <a href="add-users.php" class="py-2 px-6 bg-blue-400 text-white uppercase text-xs rounded-md">ADD</a> <table class="w-full mt-10 "> <thead class="border-b-2 dark:border-zinc-800 px-16 border-gray-100 py-2"> <td class=" text-gray-400 py-2 text-xs px-6">ID</td> <td class=" text-gray-400 py-2 text-xs px-6 w-full">Name</td> <td class=" text-gray-400 py-2 text-xs text-right px-6"></td> </thead> <tbody class="py-0"> <?php $run = mysqli_query($con, 'select * from zon_users') ?> <?php while ($row = mysqli_fetch_assoc($run)) { ?> <tr class="bg-[white] dark:bg-zinc-900 px-16 <?php if($row['status'] == 1) { echo "border-2 border-red-800 "; } ?> "> <td class="text-xs text-gray-500 px-4 ">#<?= $row['id'] ?></td> <td class="text-gray-500 px-4 text-sm flex items-center py-3"><img class="object-cover h-12 w-12 rounded-lg mr-4 overflow-hidden" src="<?php echo $site_url ?>static/img/<?= $row['user_pic'] ?>"> <a href="add-users.php?action=update&token_id=<?= $row['id'] ?>"><?= $row['username'] ?></a></td> <td class="text-right relative px-6"> <button data-target="#dc_<?= $row['id'] ?>" class="bi-three-dots-vertical text-gray-500 drop_btn"></button> <div id="dc_<?= $row['id'] ?>" style="z-index: 99;" class="dropdown absolute bg-white text-right right-0 hidden flex-column "> <a href="functions/functions.php?action=delete&token_id=<?= $row['id'] ?>&content_type=user&url=<?php echo $site_url ?>admin/users" class="text-xs px-4 py-2 text-red-700">Delete</a> <a href="add-users.php?action=update&token_id=<?= $row['id'] ?>&content_type=user" class="text-xs px-4 py-2">Edit</a> </div> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </main> <?php include "includes/footer.php"; ?> </body> </html>PK �Y�Z��O�� � comments.phpnu W+A�� <?php $page = "Comments"; ?> <?php require "../app/includes/function_general.php"; ?> <?php include "includes/header.php"; ?> <?php // include "includes/config.php"; ?> <body> <main class="d-flex"> <?php include "includes/sidebar.php"; ?> <div class="main w-full px-12 py-6"> <div class="games-list"> <!-- <a href="#" class="py-2 px-6 bg-blue-400 text-white uppercase text-xs rounded-md">ADD</a> --> <table class="w-full mt-10 "> <thead class="border-b-2 px-16 dark:border-zinc-900 border-gray-100 py-2"> <td class=" text-gray-400 py-2 text-xs px-6">#Id</td> <td class=" text-gray-400 py-2 text-xs px-6">username</td> <td class=" text-gray-400 py-2 text-xs px-6">comment</td> <td class=" text-gray-400 py-2 text-xs px-6">Game</td> <td class=" text-gray-400 py-2 text-xs px-6">Commented at</td> <td class=" text-gray-400 py-2 text-xs text-right px-6"></td> </thead> <tbody class="py-4"> <?php $run = mysqli_query($con, 'select * from zon_comments') ?> <?php while ($row = mysqli_fetch_assoc($run)) { ?> <tr class="bg-[white] dark:bg-zinc-900 px-16 py-4 rounded-lg"> <td class="text-xs px-6 text-gray-500"><?=$row['id']?></td> <td class="text-gray-500 text-xs px-6 py-4"><?php echo User_Data_By_Cond('username', "id=".$row['user_id']); ?></td> <td class="text-gray-500 text-xs px-6 py-4"><?=$row['subject']?></td> <td class="text-gray-500 text-xs px-6 py-4"><?php Game_Data($row['game_id'], "game_name") ?></td> <td class="text-gray-500 text-xs px-6 py-4"><?=$row['date']?></td> <td class="text-right relative px-6"> <button data-target="#dc_<?= $row['id'] ?>" class="bi-three-dots-vertical text-gray-500 drop_btn"></button> <div id="dc_<?= $row['id'] ?>" style="z-index: 99;" class="dropdown absolute bg-white text-right right-0 hidden flex-column "> <a href="functions/functions.php?action=delete&token_id=<?= $row['id'] ?>&content_type=comment&url=<?php echo $site_url ?>admin/comments" class="text-xs px-4 py-2 text-red-700">Delete</a> </div> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </main> <?php include "includes/footer.php"; ?> </body> </html>PK �Y�Zɇ��� � add-category.phpnu W+A�� <?php require "../app/includes/function_general.php"; ?> <?php include "includes/header.php"; ?> <?php // include "includes/config.php"; ?> <?php if (!empty($_GET['token_id']) && isset($_GET['action'])) { $token_id = $_GET['token_id']; $action_type = $_GET['action']; } if (isset($token_id) && isset($action_type) && !empty($token_id)) { $sql = "select * from zon_category where id=$token_id"; $run = mysqli_query($con, $sql); $data = mysqli_fetch_assoc($run); } ?> <style> #editor-cat-desc ul, #editor-cat-desc ol { list-style-type: disc; margin: 10px; padding: 10px; } #editor-cat-desc p { margin: 10px 0; } #editor-cat-desc h1, #editor-cat-desc h2, #editor-cat-desc h3, #editor-cat-desc h4, #editor-cat-desc h5, #editor-cat-desc h6 { margin: 10px 0; font-weight: bolder; } </style> <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 mt-6"> <form action="functions/functions.php" method="POST" enctype="multipart/form-data" id="add-page" class="tab"> <?php if(!empty($token_id)) { ?> <input hidden type="text" name="category_id" value="<?php echo $data['id']; ?>"> <?php } ?> <div class="flex gap-6"> <div id="editor-cat-desc" class="input-form w-full"> <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">Name</label> <input id="category_name" value="<?php if(!empty($token_id)) { echo $data['name']; } ?>" required name="game_category" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs" type="text" placeholder="Category Name"> </div> <div class="input-group flex flex-column mt-6"> <label class="text-gray-500 uppercase text-[10px] mb-2">Slug</label> <input required id="category_slug" value="<?php if(!empty($token_id)) { echo $data['slug']; } ?>" required name="game_category_slug" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs" type="text" placeholder="Category Slug"> </div> <div class="input-group flex flex-column mt-6"> <label class="text-gray-500 uppercase text-[10px] mb-2">Description</label> <textarea id="cat-desc-editor" class="py-2 resize-none text-gray-500 dark:bg-zinc-900 border-2 text-gray-400 bg-[white] border-gray-200 outline-none focus:outline focus:outline-blue-500 transition-sm text-xs px-2" name="game_category_description" cols="50" rows="16"><?php if(!empty($token_id)) { echo $data['description']; } ?></textarea> </div> </div> <div class="other-inputs w-80"></div> </div> <button name="<?php if(!empty($token_id)) { echo 'update_category'; } else{ echo 'add_category'; } ?>" class="bg-blue-600 text-white uppercase mt-4 text-sm rounded-sm py-2 px-3 "><?php if(!empty($token_id)) { echo 'update'; } else{ echo 'Add'; } ?></button> </form> </div> </main> <script> ClassicEditor .create(document.querySelector('#cat-desc-editor')) .catch(error => { console.error(error); }); </script> <?php include "includes/footer.php"; ?> </body> </html>PK �Y�Z�_! ! customize.phpnu W+A�� <?php $page = "Customize Layouts"; ?> <?php require "../app/includes/function_general.php"; ?> <?php include "includes/header.php"; ?> <?php // include "includes/config.php"; ?> <?php $query = mysqli_query($con, "SELECT * FROM zon_config"); $config = mysqli_fetch_assoc($query); if (isset($_GET) && !empty($_GET)) { if (isset($_GET['reset']) && isset($_GET['customize'])) { $sql = "UPDATE zon_config SET site_color='#ff3814', section_games_limit=10, featured_game_slider=1, popular_views=3, cursor_color='#ff3814', animate_class='fadeInDown', custom_cursor=1 "; if (mysqli_query($con, $sql)) { echo "<script>window.location.href = '?'; </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 mt-6"> <form action="functions/functions.php" method="post"> <div class="flex gap-10"> <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">Website Color</label> <input type="color" required value="<?php echo $config['site_color']; ?>" name="site_color" class="py-0 text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm w-full px-0 text-xs" placeholder="Number of views"> </div> <!-- <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">Section games limit</label> <input type="number" value="<?php echo $config['section_games_limit']; ?>" required name="section_games_limit" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs" placeholder="Number of views"> </div> --> </div> <div class="flex gap-10 mt-6"> <!-- <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">Featured Game Slider Show</label> <select required name="featured_game_slider" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs"> <option <?php if ($config['featured_game_slider'] == 1) { echo 'selected'; } ?> value="1">Yes</option> <option <?php if ($config['featured_game_slider'] == 0) { echo 'selected'; } ?> value="0">No</option> </select> </div> --> <!-- <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">game popular views limit</label> <input type="number" value="<?php echo $config['popular_views']; ?>" required name="popular_views" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs" placeholder="Number of views"> <label class="text-gray-500 text-[10px] mt-2">How many views will go to your work, then you will call it popular</label> </div> --> </div> <div class="flex gap-10 mt-6"> <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">Animation</label> <select required name="animate_class" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs"> <?php $run = mysqli_query($con, "SELECT * FROM zon_animation_classes"); while ($class = mysqli_fetch_assoc($run)) {?> <option <?php if( $config['animate_class'] == $class['name'] ) { echo "selected"; } ?> value="<?= $class['name'] ?>"><?= $class['name'] ?></option> <?php } ?> </select> <label class="text-gray-500 text-[10px] mt-2">If you want to see how the animation is then you can see it from here. <a target="_blank" class="text-blue-400" href="https://animate.style/">animation list</a> </label> </div> <!-- <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">CURSOR Color</label> <input type="color" required value="<?php echo $config['cursor_color']; ?>" name="cursor_color" class="py-0 text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm w-full px-0 text-xs" placeholder="Number of views"> </div> --> </div> <div class="flex gap-10 mt-6"> <!-- <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">Show Custom Cursor</label> <select required name="custom_cursor" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs"> <option <?php if ($config['custom_cursor'] == 1) { echo 'selected'; } ?> value="1">Yes</option> <option <?php if ($config['custom_cursor'] == 0) { echo 'selected'; } ?> value="0">No</option> </select> </div> --> <!-- <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">CURSOR Color</label> <input type="color" required value="<?php echo $config['cursor_color']; ?>" name="cursor_color" class="py-0 text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm w-full px-0 text-xs" placeholder="Number of views"> </div> --> </div> <div class="flex gap-10 mt-6"> <!-- <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">You want blogs</label> <select required name="blog" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs"> <option <?php if ($config['blog'] == 1) { echo 'selected'; } ?> value="1">Yes</option> <option <?php if ($config['blog'] == 0) { echo 'selected'; } ?> value="0">No</option> </select> </div> --> <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">Gamepix sid</label> <input type="text" required value="<?php echo $config['gamepix_sid']; ?>" name="gamepix_sid" class="py-[15px] px-2 text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm w-full px-0 text-xs" placeholder="Number of views"> </div> </div> <button name="customize_button" class="bg-blue-600 text-white uppercase mt-4 text-xs rounded-sm py-2 px-3 ">Save Changes</button> </form> </div> </div> </main> <?php include "includes/footer.php"; ?> </body> </html>PK �Y�Z�`��& & add-ads.phpnu W+A�� <?php $page = "Add Ads"; ?> <?php require "../app/includes/function_general.php"; ?> <?php include "includes/header.php"; ?> <?php // include "includes/config.php"; ?> <?php if (!empty($_GET['token_id']) && isset($_GET['action'])) { $token_id = $_GET['token_id']; $action_type = $_GET['action']; } if (isset($token_id) && isset($action_type) && !empty($token_id)) { $sql = "select * from zon_ads where id=$token_id"; $run = mysqli_query($con, $sql); $data = mysqli_fetch_assoc($run); } ?> <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 mt-6"> <form action="functions/functions.php" method="POST" enctype="multipart/form-data" id="add-page" class="tab"> <?php if(!empty($token_id)) { ?> <input hidden type="text" name="ad_id" value="<?php echo $data['id']; ?>"> <?php } ?> <div class="flex gap-6"> <div class="input-form w-full"> <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">Name</label> <input id="category_name" value="<?php if(!empty($token_id)) { echo $data['ad_name']; } ?>" required name="ad_name" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs" type="text" placeholder="Ad Name"> </div> <div class="input-group flex flex-column mt-6"> <label class="text-gray-500 uppercase text-[10px] mb-2">Advertise Code</label> <textarea name="ad_code" class="outline-none px-2 dark:bg-zinc-900 py-2 focus:outline-blue-500 transition-sm text-gray-500 text-sm" cols="30" rows="10"><?php if(!empty($token_id)) { echo $data['code']; } ?></textarea> </div> <div class="input-group mt-4"> <input id="ad_contr" <?php if($data['status'] == 1) { echo "checked"; } ?> type="checkbox" value="off" name="ad_contr" class="mr-2"> <label for="ad_contr" class="text-xs text-gray-600 ml-3 select-none">off Advertisement</label> </div> </div> <div class="other-inputs w-80"></div> </div> <button name="ads_up_add" class="bg-blue-600 text-white uppercase mt-4 text-sm rounded-sm py-2 px-3 ">Save</button> </form> </div> </main> <?php include "includes/footer.php"; ?> </body> </html>PK �Y�Z0�a a tools.phpnu W+A�� <?php $page = "Tools"; ?> <?php require "../app/includes/function_general.php"; ?> <?php include "includes/header.php"; ?> <?php // include "includes/config.php"; ?> <body> <main class="d-flex"> <?php include "includes/sidebar.php"; ?> <div class="main w-full px-12 py-6"> <div class="games-list flex gap-6"> <!-- <a href="#" class="py-2 px-6 bg-blue-400 text-white uppercase text-xs rounded-md">ADD</a> --> <div class="h-auto dark:bg-zinc-900 overflow-hidden rounded-xl hover:shadow-lg transition duration-300 hover:shadow-sm cursor-pointer w-60 bg-[white]"> <div class="px-12 py-4 flex flex-column text-center justify-center "> <a class="text-slate-700 hover:text-black font-bold dark:hover:text-gray-100 dark:text-gray-200">GameMonetize</a> <span class="text-xs text-gray-400 mt-1 mb-1">By You can add games easily and quickly with API.</span> <a href="api-settings.php?platform=gamemonetize" class="text-sm text-gray-100 hover:text-white rounded-lg bg-blue-600 py-2 mt-2"> <span class="bi-plus"></span> Add Game</a> </div> </div> <div class="h-auto dark:bg-zinc-900 overflow-hidden rounded-xl hover:shadow-lg transition duration-300 hover:shadow-sm cursor-pointer w-60 bg-[white]"> <div class="px-12 py-4 flex flex-column text-center justify-center "> <a class="text-slate-700 hover:text-black font-bold dark:hover:text-gray-100 dark:text-gray-200">Game Distribution</a> <span class="text-xs text-gray-400 mt-1 mb-1">By You can add games easily and quickly with API.</span> <a href="api-settings.php?platform=gamedistribution" class="text-sm text-gray-100 hover:text-white rounded-lg bg-blue-600 py-2 mt-2"> <span class="bi-plus"></span> Add Game</a> </div> </div> <div class="h-auto dark:bg-zinc-900 overflow-hidden rounded-xl hover:shadow-lg transition duration-300 hover:shadow-sm cursor-pointer w-60 bg-[white]"> <div class="px-12 py-4 flex flex-column text-center justify-center "> <a class="text-slate-700 hover:text-black font-bold dark:hover:text-gray-100 dark:text-gray-200">GamePix</a> <span class="text-xs text-gray-400 mt-1 mb-1">By You can add games easily and quickly with API.</span> <a href="api-settings.php?platform=gamepix" class="text-sm text-gray-100 hover:text-white rounded-lg bg-blue-600 py-2 mt-2"> <span class="bi-plus"></span> Add Game</a> </div> </div> </div> </div> </main> <?php include "includes/footer.php"; ?> </body> </html>PK �Y�Zc���+ �+ auto-fetch.phpnu W+A�� <?php $page = "Auto Fetch Layouts"; ?> <?php require "../app/includes/function_general.php"; ?> <?php include "includes/header.php"; ?> <?php // include "includes/config.php"; ?> <?php $query = mysqli_query($con, "SELECT * FROM zon_config"); $config = mysqli_fetch_assoc($query); // if (isset($_GET) && !empty($_GET)) { // if (isset($_GET['reset']) && isset($_GET['customize'])) { // $sql = "UPDATE zon_config SET site_color='#ff3814', section_games_limit=10, featured_game_slider=1, popular_views=3, cursor_color='#ff3814', animate_class='fadeInDown', custom_cursor=1 "; // if (mysqli_query($con, $sql)) { // echo "<script>window.location.href = '?'; </script>"; // } // } // } if (isset($_POST) && isset($_POST['auto_fetch_true'])) { $auto_fetch = $_POST['auto_fetch']; $auto_fetch_amount = $_POST['auto_fetch_amount']; $auto_fetch_timing = $_POST['auto_fetch_timing']; $auto_fetch_pub = $_POST['auto_fetch_pub']; $sql = "UPDATE zon_config SET auto_fetch=$auto_fetch, auto_fetch_amount=$auto_fetch_amount, auto_fetch_timing=$auto_fetch_timing, auto_fetch_pub='$auto_fetch_pub'"; if ($socket->query($sql)) { header("Location: ?"); } } ?> <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 mt-6"> <form action="" method="post"> <!-- <div class="flex gap-10"> <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">Website Color</label> <input type="color" required value="<?php echo $config['site_color']; ?>" name="site_color" class="py-0 text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm w-full px-0 text-xs" placeholder="Number of views"> </div> <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">Section games limit</label> <input type="number" value="<?php echo $config['section_games_limit']; ?>" required name="section_games_limit" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs" placeholder="Number of views"> </div> </div> --> <div class="flex gap-10 mt-6"> <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">You Want Auto Fetching</label> <select required name="auto_fetch" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs"> <option <?php if ($config['auto_fetch'] == 1) { echo 'selected'; } ?> value="1">Yes</option> <option <?php if ($config['auto_fetch'] == 0) { echo 'selected'; } ?> value="0">No</option> </select> <label class="text-gray-500 text-[10px] mt-2">With this feature you can automate game fetching</label> </div> <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">Publisher</label> <select required name="auto_fetch_pub" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs"> <option <?php if ($config['auto_fetch_pub'] === 'gamepix') { echo 'selected'; } ?> value="gamepix">Gamepix ( recommended )</option> <option <?php if ($config['auto_fetch_pub'] === 'gamedistribution') { echo 'selected'; } ?> value="gamedistribution">GameDistribution</option> <option <?php if ($config['auto_fetch_pub'] === 'gamemonetize') { echo 'selected'; } ?> value="gamemonetize">GameMonetize</option> </select> </div> </div> <div class="flex gap-10 mt-6"> <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">Amount ( maximum amount is 90 )</label> <input id="amount" type="number" name="auto_fetch_amount" maxlength="90" oninput="AmountCheck()" onkeyup="AmountCheck()" onkeypress="AmountCheck()" value="<?php echo $config['auto_fetch_amount'] ?>" class="py-[10px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs" /> <label class="text-gray-500 text-[10px] mt-2">This amount is included in gamepix ( only 12 games fetch in gamepix api)</label> </div> <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">Timing ( every *** minutes )</label> <input id="amount" type="number" name="auto_fetch_timing" maxlength="90" oninput="AmountCheck()" onkeyup="AmountCheck()" onkeypress="AmountCheck()" value="<?php echo $config['auto_fetch_timing'] ?>" class="py-[10px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs" /> </div> <script> var amount = document.getElementById("amount"); function AmountCheck() { if (amount.value > 90) { amount.value = 90; } else { amount.value = amount.value; } } </script> </div> <!-- <div class="flex gap-10 mt-6"> <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">Animation</label> <select required name="animate_class" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs"> <?php $run = mysqli_query($con, "SELECT * FROM zon_animation_classes"); while ($class = mysqli_fetch_assoc($run)) {?> <option <?php if( $config['animate_class'] == $class['name'] ) { echo "selected"; } ?> value="<?= $class['name'] ?>"><?= $class['name'] ?></option> <?php } ?> </select> <label class="text-gray-500 text-[10px] mt-2">If you want to see how the animation is then you can see it from here. <a target="_blank" class="text-blue-400" href="https://animate.style/">animation list</a> </label> </div> <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">CURSOR Color</label> <input type="color" required value="<?php echo $config['cursor_color']; ?>" name="cursor_color" class="py-0 text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm w-full px-0 text-xs" placeholder="Number of views"> </div> </div> <div class="flex gap-10 mt-6"> <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">Show Custom Cursor</label> <select required name="custom_cursor" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs"> <option <?php if ($config['custom_cursor'] == 1) { echo 'selected'; } ?> value="1">Yes</option> <option <?php if ($config['custom_cursor'] == 0) { echo 'selected'; } ?> value="0">No</option> </select> </div> <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">CURSOR Color</label> <input type="color" required value="<?php echo $config['cursor_color']; ?>" name="cursor_color" class="py-0 text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm w-full px-0 text-xs" placeholder="Number of views"> </div> </div> <div class="flex gap-10 mt-6"> <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">You want blogs</label> <select required name="blog" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs"> <option <?php if ($config['blog'] == 1) { echo 'selected'; } ?> value="1">Yes</option> <option <?php if ($config['blog'] == 0) { echo 'selected'; } ?> value="0">No</option> </select> </div> <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">Gamepix sid</label> <input type="text" required value="<?php echo $config['gamepix_sid']; ?>" name="gamepix_sid" class="py-[15px] px-2 text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm w-full px-0 text-xs" placeholder="Number of views"> </div> </div> --> <button name="auto_fetch_true" class="bg-blue-600 text-white uppercase mt-4 text-sm rounded-sm py-2 px-3 ">Save Changes</button> </form> </div> </div> </main> <?php include "includes/footer.php"; ?> </body> </html>PK �Y�Z{Җ pages.phpnu W+A�� <?php $page = "Pages"; ?> <?php require "../app/includes/function_general.php"; ?> <?php include "includes/header.php"; ?> <?php // include "includes/config.php"; ?> <body> <main class="d-flex"> <?php include "includes/sidebar.php"; ?> <div class="main w-full px-12 py-6"> <div class="games-list"> <a href="<?php echo $site_url ?>admin/add-page.php" class="py-2 px-6 bg-blue-400 text-white uppercase text-xs rounded-md">ADD</a> <table class="w-full mt-10 "> <thead class="border-b-2 dark:border-zinc-900 px-16 border-gray-100 py-2"> <td class=" text-gray-400 py-2 text-xs px-6">#Id</td> <td class=" text-gray-400 py-2 text-xs px-6 w-full">Title</td> <td class=" text-gray-400 py-2 text-xs text-right px-6">Action</td> </thead> <tbody class="py-4"> <?php $run = mysqli_query($con, 'select * from zon_pages') ?> <?php while ($row = mysqli_fetch_assoc($run)) { ?> <tr class="bg-[white] dark:bg-zinc-900 px-16 py-4 rounded-lg"> <td class="text-xs px-6 text-gray-500"><?=$row['id']?></td> <td class="text-gray-500 text-xs px-6 py-4"><a href="add-page.php?action=update&token_id=<?=$row['id']?>"><?=$row['title']?></a></td> <td class="text-right relative px-6"> <button data-target="#dc_<?= $row['id'] ?>" class="bi-three-dots-vertical text-gray-500 drop_btn"></button> <div id="dc_<?= $row['id'] ?>" style="z-index: 99;" class="dropdown absolute bg-white text-right right-0 hidden flex-column "> <a href="functions/functions.php?action=delete&token_id=<?= $row['id'] ?>&content_type=page&url=<?php echo $site_url ?>admin/pages.php" class="text-xs px-4 py-2 text-red-700">Delete</a> <a href="add-page.php?action=update&token_id=<?= $row['id'] ?>&content_type=page" class="text-xs px-4 py-2">Edit</a> </div> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </main> <?php include "includes/footer.php"; ?> </body> </html>PK �Y�Zܯ�� � add-game.phpnu W+A�� <?php require "../app/includes/function_general.php"; ?> <?php include "includes/header.php"; ?> <?php // include "includes/config.php"; ?> <?php if (!empty($_GET['token_id']) && isset($_GET['action'])) { $token_id = $_GET['token_id']; $action_type = $_GET['action']; } if (isset($token_id) && isset($action_type) && !empty($token_id)) { $sql = "select * from zon_games where id=$token_id"; $run = mysqli_query($con, $sql); $data = mysqli_fetch_assoc($run); } ?> <style> #desc-editor ul, #desc-editor ol { list-style-type: disc; margin: 10px; padding: 10px; } #desc-editor p { margin: 10px 0; } #desc-editor h1, #desc-editor h2, #desc-editor h3, #desc-editor h4, #desc-editor h5, #desc-editor h6 { margin: 10px 0; font-weight: bolder; } </style> <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 mt-6"> <form action="functions/functions.php" method="POST" enctype="multipart/form-data" id="add-page" class="tab"> <?php if(!empty($token_id)) { ?> <input hidden type="text" name="game_id" value="<?php echo $data['id']; ?>"> <?php } ?> <div class="flex gap-6"> <div id="desc-editor" class="input-form w-full"> <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">Name</label> <input value="<?php if(!empty($token_id)) { echo $data['game_name']; } ?>" required name="game_name" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs" type="text" placeholder="Title"> </div> <!-- <div class="input-group flex flex-column mt-6"> <label class="text-gray-500 uppercase text-[10px] mb-2">Slug</label> <input value="<?php if(!empty($token_id)) { echo $data['game_slug']; } ?>" required name="game_slug" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs" type="text" placeholder="Slug"> </div> --> <div class="input-group flex flex-column mt-6"> <label class="text-gray-500 uppercase text-[10px] mb-2">Description</label> <textarea id="editor-desc" class="py-2 resize-none text-gray-500 dark:bg-zinc-900 border-2 text-gray-400 bg-[white] border-gray-200 outline-none focus:outline focus:outline-blue-500 transition-sm text-xs px-2" name="game_description" cols="50" rows="16"><?php if(!empty($token_id)) { echo $data['game_description']; } ?></textarea> </div> <div class="input-group flex flex-column mt-6"> <label class="text-gray-500 uppercase text-[10px] mb-2">Image Source Type</label> <select id="File_Type" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs" type="text" placeholder="Username"> <option value="URL" selected>URL</option> <option value="File">File</option> </select> </div> <div id="FILE_IMAGE" class="input-group flex flex-column mt-6 hidden"> <label class="text-gray-500 uppercase text-[10px] mb-2">FOR game image</label> <input name="game_image" class="py-0 border-2 border-gray-100 text-gray-500 outline-none rounded-sm focus:outline bg-white h-12 focus:outline-blue-500 transition-sm px-0 text-xs" type="file" placeholder="Game Image"> </div> <div id="URL_IMAGE" class="input-group flex flex-column mt-6 hidden"> <label class="text-gray-500 uppercase text-[10px] mb-2">FOR game image</label> <input value="<?php if(!empty($token_id)) { echo $data['game_image_url']; } ?>" name="game_image_url" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs" type="url" placeholder="Game Image URL"> </div> <div class="input-group flex flex-column mt-6"> <label class="text-gray-500 uppercase text-[10px] mb-2">Game URL</label> <input value="<?php if(!empty($token_id)) { echo $data['game_url']; } ?>" required name="game_frame_url" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs" type="text" placeholder="Game URL"> </div> <div class="input-group flex flex-column mt-6"> <label class="text-gray-500 uppercase text-[10px] mb-2">Game Banner URL</label> <input value="<?php if(!empty($token_id)) { echo $data['game_banner_url']; } ?>" name="game_banner_url" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs" type="text" placeholder="Game Banner URL"> </div> <div class="input-group flex flex-column mt-6"> <label class="text-gray-500 uppercase text-[10px] mb-2">game category</label> <select name="game_category" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm w-full px-3 text-xs" id=""> <?php $query = mysqli_query($con, "select * from zon_category order by id desc"); while ($row = mysqli_fetch_assoc($query)) { ?> <option <?php if(!empty($token_id)) { if ($row['name'] == $data['game_category']) { echo "selected"; } } ?> value="<?= $row['name'] ?>"><?= $row['name'] ?></option> <?php } ?> </select> </div> <div class="input-group flex flex-column mt-6"> <label class="text-gray-500 uppercase text-[10px] mb-2">game action</label> <select name="game_status" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm w-full px-3 text-xs" id=""> <option <?php if(!empty($token_id)) { if ($data['game_published'] == 'Yes') { echo "selected"; } } ?> value="Yes">Publish</option> <option <?php if(!empty($token_id)) { if ($data['game_published'] == 'No') { echo "selected"; } } ?> value="No">unpublish</option> </select> </div> </div> <div class="other-inputs w-80"></div> </div> <button name="<?php if(!empty($token_id)) { echo 'update_game'; } else{ echo 'upload_game'; } ?>" class="bg-blue-600 text-white uppercase mt-4 text-sm rounded-sm py-2 px-3 "><?php if(!empty($token_id)) { echo 'update'; } else{ echo 'Publish'; } ?></button> </form> </div> </main> <script> ClassicEditor .create(document.querySelector('#editor-desc')) .catch(error => { console.error(error); }); </script> <?php include "includes/footer.php"; ?> </body> </html>PK �Y�Z�;i� � advertisement.phpnu W+A�� <?php $page = "Adverisements"; ?> <?php require "../app/includes/function_general.php"; ?> <?php include "includes/header.php"; ?> <?php // include "includes/config.php"; ?> <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"> <table class="w-full mt-10 "> <thead class="border-b-2 dark:border-zinc-900 px-16 border-gray-100 py-2"> <td class=" text-gray-400 py-2 text-xs px-6">#Id</td> <td class=" text-gray-400 py-2 text-xs px-6 w-full">Name</td> <td class=" text-gray-400 py-2 text-xs text-right px-6">Action</td> </thead> <tbody class="py-4"> <?php $run = mysqli_query($con, "select * from zon_ads"); while ($row = mysqli_fetch_assoc($run)) { ?> <tr class="bg-[white] dark:bg-zinc-900 px-16 py-4 rounded-lg"> <td class="text-xs px-6 text-gray-500"><?=$row['id']?></td> <td class="text-gray-500 text-xs px-6 py-4"><a href="add-ads.php?action=update&token_id=<?=$row['id']?>"><?=$row['ad_name']?></a></td> <td class="text-right relative px-6"></td> </tr> <?php } ?> </tbody> </table> </div> </div> </main> <?php include "includes/footer.php"; ?> </body> </html>PK �Y�Z%\�, , includes/header.phpnu W+A�� <?php // session_start(); ?> <!DOCTYPE html> <html lang="en" class="dark:bg-zinc-800"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="robots" content="noindex, nofollow"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <?php if (!empty($page)) { ?> <title> <?php echo $page ?> </title> <?php } else { ?> <title> <?php echo Zon_Config('site_name') ?> </title> <?php } ?> <link rel="stylesheet" href="<?php echo $site_url ?>admin/assets/css/bootstrap.min.css"> <link rel="stylesheet" href="<?php echo $site_url ?>admin/assets/css/style.css"> <link rel="stylesheet" href="<?php echo $site_url ?>admin/assets/css/rte_theme_default.css"> <link rel="stylesheet" href="<?php echo $site_url ?>admin/assets/vendor/bootstrap-icons/bootstrap-icons.css"> <link rel="shortcut icon" href="<?php echo $site_url ?>static/img/logo/<?php echo Zon_Config('site_favicon') ?>" type="image/x-icon"> <script src="<?php echo $site_url ?>js/tailwind.js"></script> <script src="https://cdn.ckeditor.com/ckeditor5/37.0.1/classic/ckeditor.js"></script> <script src="<?php echo $site_url ?>admin/assets/js/rte.js"></script> </head> <div class="mx-2"> <div class="container"> <?php if (Zon_Config('auto_fetch_all_games_fetched') == 1) { ?> <div id="fetched_alert" class="bg-blue-200 relative text-xs capitalize flex gap-4 rounded-md text-blue-400 font-bold py-2.5 px-4 mt-2"> <i class="bi bi-info-circle-fill"></i> All games have been fetched from your ( <?php echo Zon_Config('auto_fetch_game_publisher') ?> ) <button onclick="this.parentNode.classList.add('hidden'), localStorage.setItem('fetched_alert', 1)" class="close-button font-bold text-lg top-[4px] absolute px-1 right-[20px]">×</button> </div> <?php } ?> <?php if (is_dir("../install")) { ?> <div class="bg-red-200 text-xs capitalize flex gap-4 rounded-md text-red-500 font-bold py-2.5 px-4 mt-4"> <i class="bi bi-info-circle-fill"></i> Please delete (./install) folder for security reason. </div> <?php } ?> </div> <script> if (localStorage.getItem('fetched_alert') == 1) { document.getElementById("fetched_alert").classList.add("hidden"); } </script> </div>PK �Y�Z!.h� � includes/ajax/gamesbyquery.phpnu W+A�� <?php include ('../../../config.php'); include ('../../../app/includes/constant.php'); include ('../../../app/includes/app_start.php'); $message = ''; if (isset ($_POST) && !empty ($_POST)) { $query = $_POST['query']; $sql = "SELECT * FROM zon_games WHERE game_name LIKE '%$query%' LIMIT 20 "; $run = mysqli_query($socket, $sql); while ($row = mysqli_fetch_assoc($run)) { if ($row) { // if ($row['game_banner_url'] !== '') { ?> <div class="game-box"> <div class="flex items-center justify-between"> <div class="flex items-center gap-3"> <img class="h-10 w-10 rounded-md" src="<?= $row['game_image_url'] ?>" /> <div class="details"> <span class="text-lg font-bold "> <?= $row['game_name'] ?> </span> <br> <span class="text-gray-400 text-sm "> <?= $row['game_category'] ?> </span> </div> </div> <input type="checkbox" value="<?= $row['id'] ?>" class="h-7 outline-auto focus:outline-blue-500 rounded-lg w-7" name="game_id[]" /> </div> </div> <?php // } else { // $message = 'game not able to add in featured game.'; // } } else { echo 'game not found'; } } } else { echo "Search your game"; } echo $message; ?>PK �Y�Z6s^�, , includes/config.phpnu W+A�� <?php require '../config.php'; // $host_name = 'localhost'; // $sql_db_user = 'root'; // $sql_db_pass = ''; // $sql_db_name = 'zontal'; // $con = mysqli_connect($host_name, $sql_db_user, $sql_db_pass, $sql_db_name); // $site_url = "http://localhost/Zontal/"; ?>PK �Y�Z��y[� � includes/footer.phpnu W+A�� <script src="<?php echo $site_url?>admin/assets/js/main.js"></script> <script> const DROP_BUTTON=document.querySelectorAll(".drop_btn");null!==DROP_BUTTON&&DROP_BUTTON.forEach(e=>{e.addEventListener("click",()=>{let t=e.getAttribute("data-target");document.querySelector(t).classList.toggle("show")})});const TAB_BUTTON=document.querySelectorAll(".tab-button"),TAB=document.querySelectorAll(".tab");function ActiveButton(){TAB_BUTTON.forEach(e=>{e.classList.remove("bg-blue-500"),e.classList.remove("text-gray-100"),e.classList.add("text-gray-500")}),this.classList.add("bg-blue-500"),this.classList.replace("text-gray-500","text-gray-100")}null!==TAB_BUTTON&&TAB_BUTTON.forEach(e=>{e.addEventListener("click",t=>{TAB.forEach(e=>{e.classList.add("hidden"),e.classList.remove("show")});let l=e.getAttribute("data-target");document.querySelector(l).classList.remove("hidden"),document.querySelector(l).classList.toggle("block")})}),null!==TAB_BUTTON&&TAB_BUTTON.forEach(e=>{e.addEventListener("click",ActiveButton)});const USER_PROFILE_UPLOAD_IMAGE_BUTTON=document.getElementById("pic_upload_button");null!==USER_PROFILE_UPLOAD_IMAGE_BUTTON&&USER_PROFILE_UPLOAD_IMAGE_BUTTON.addEventListener("click",()=>{document.getElementById("user_profile_pic").click()});const FILE_TYPE=document.getElementById("File_Type");null!==FILE_TYPE&&(FILE_TYPE.addEventListener("change",()=>{("File"===FILE_TYPE.value||"URL"===FILE_TYPE.value)&&"null"!==FILE_TYPE.value&&(console.warn(FILE_TYPE.value),"File"===FILE_TYPE.value?document.getElementById("FILE_IMAGE").classList.remove("hidden"):document.getElementById("FILE_IMAGE").classList.add("hidden"),"URL"===FILE_TYPE.value?document.getElementById("URL_IMAGE").classList.remove("hidden"):document.getElementById("URL_IMAGE").classList.add("hidden"))}),window.addEventListener("load",()=>{null!==FILE_TYPE&&("File"===FILE_TYPE.value||"URL"===FILE_TYPE.value)&&"null"!==FILE_TYPE.value&&(console.warn(FILE_TYPE.value),"File"===FILE_TYPE.value?document.getElementById("FILE_IMAGE").classList.remove("hidden"):document.getElementById("FILE_IMAGE").classList.add("hidden"),"URL"===FILE_TYPE.value?document.getElementById("URL_IMAGE").classList.remove("hidden"):document.getElementById("URL_IMAGE").classList.add("hidden"))}));const CATEGORY_INPUT=document.getElementById("category_name");null!==CATEGORY_INPUT&&CATEGORY_INPUT.addEventListener("keyup",e=>{var t=e.target.value;document.getElementById("category_slug").innerHTML=t}); console.log(CATEGORY_INPUT) </script> <script> document.querySelectorAll("body").forEach((e) => { e.classList.add("dark:bg-[#121317]"); }); document.querySelectorAll("input, select").forEach((e) => { e.classList.add("dark:bg-zinc-900"); }); </script>PK �Y�Z����� � includes/sidebar.phpnu W+A�� <?php // session_start(); if (!isset($_SESSION['admin-Loggedin']) && !isset($_SESSION['is_admin_Loggedin'])) { @header("location: ../login"); // echo "<script>window.location.href='./login.php';</script>"; } ///include("config.php"); ?> <div class="sidebar sticky w-[350px] h-[100vh]"> <style> .sidebar { position: sticky; top: 0; } .colorpick-eyedropper-input-trigger { display: none; } /* .main { max-width: 400px !important; } */ body { max-width: 1000px; margin: auto; } .container { max-width: 1000px; margin: auto; } .sidebar a { white-space: nowrap; } </style> <!-- <div class="logo px-4 py-6"> --> <!-- <a href="<?php echo $site_url ?>"> <h3 class="fw-bold text-2xl dark:text-gray-100 text-center uppercase text-gray-600 "><?php echo Zon_Config('site_name') ?></h3> </a> --> <!-- </div> --> <?php $zon['page'][0] = explode("/", $_SERVER['PHP_SELF'])[2] ?? 'index.php'; ?> <ul class="list px-4 mt-2"> <li class="<?php if($zon['page'][0] === 'index.php') { echo "bg-blue-600 text-white hover:text-white"; } else { ?> text-gray-500 hover:text-gray-700 <?php } ?> my-1 px-3 list-style-none"><a class="text-docoration-none py-2 block text-[13px] " href="index.php"><span class="bi-speedometer2 mr-2"></span> Dashboard</a></li> <li class="text-gray-500 hover:text-gray-700 my-1 px-3 list-style-none"><a class="text-docoration-none py-2 block text-[13px] " href="/" target="_blank"><span class="bi-house mr-2"></span> Home</a></li> <li class="<?php if($zon['page'][0] === 'games.php') { echo "bg-blue-600 text-white hover:text-white"; } else { ?> text-gray-500 hover:text-gray-700 <?php } ?> my-1 px-3 list-style-none"><a class="text-docoration-none py-2 block text-[13px] " href="games.php"><span class="bi-controller mr-2"></span> Games</a></li> <li class="<?php if($zon['page'][0] === 'featured_games.php') { echo "bg-blue-600 text-white hover:text-white"; } else { ?> text-gray-500 hover:text-gray-700 <?php } ?> my-1 px-3 list-style-none"><a class="text-docoration-none py-2 block text-[13px] " href="featured_games.php"><span class="bi-stickies mr-2"></span> Featured Games</a></li> <li class="<?php if($zon['page'][0] === 'categories.php') { echo "bg-blue-600 text-white hover:text-white"; } else { ?> text-gray-500 hover:text-gray-700 <?php } ?> my-1 px-3 list-style-none"><a class="text-docoration-none py-2 block text-[13px] " href="categories.php"><span class="bi-columns-gap mr-2"></span> Categories</a></li> <li class="<?php if($zon['page'][0] === 'users.php') { echo "bg-blue-600 text-white hover:text-white"; } else { ?> text-gray-500 hover:text-gray-700 <?php } ?> my-1 px-3 list-style-none"><a class="text-docoration-none py-2 block text-[13px] " href="users.php"><span class="bi-person mr-2"></span> Users</a></li> <!-- <li class="<?php if($zon['page'][0] === 'comments.php') { echo "bg-blue-600 text-white hover:text-white"; } else { ?> text-gray-500 hover:text-gray-700 <?php } ?> my-1 px-3 list-style-none"><a class="text-docoration-none py-2 block text-[13px] " href="comments.php"><span class="bi-chat-square-text mr-2"></span> Comments</a></li> --> <li class="<?php if($zon['page'][0] === 'pages.php') { echo "bg-blue-600 text-white hover:text-white"; } else { ?> text-gray-500 hover:text-gray-700 <?php } ?> my-1 px-3 list-style-none"><a class="text-docoration-none py-2 block text-[13px] " href="pages.php"><span class="bi-collection mr-2"></span> Pages</a></li> <!-- <li class="<?php if($zon['page'][0] === 'blog.php') { echo "bg-blue-600 text-white hover:text-white"; } else { ?> text-gray-500 hover:text-gray-700 <?php } ?> my-1 px-3 list-style-none"><a class="text-docoration-none py-2 block text-[13px] " href="blog.php"><span class="bi-clipboard mr-2"></span> Blog</a></li> --> <li class="<?php if($zon['page'][0] === 'reports.php') { echo "bg-blue-600 text-white hover:text-white"; } else { ?> text-gray-500 hover:text-gray-700 <?php } ?> my-1 px-3 list-style-none"><a class="text-docoration-none py-2 block text-[13px] " href="reports.php"><span class="bi-bug mr-2"></span> Reports</a></li> <!-- <li class="<?php if($zon['page'][0] === 'auto-fetch.php') { echo "bg-blue-600 text-white hover:text-white"; } else { ?> text-gray-500 hover:text-gray-700 <?php } ?> my-1 px-3 list-style-none"><a class="text-docoration-none py-2 block text-[13px] " href="auto-fetch.php"><span class="bi-arrow-repeat mr-2"></span> Auto Fetching</a></li> --> <!-- <li class="<?php if($zon['page'][0] === 'section.php') { echo "bg-blue-600 text-white hover:text-white"; } else { ?> text-gray-500 hover:text-gray-700 <?php } ?> my-1 px-3 list-style-none"><a class="text-docoration-none py-2 block text-[13px] " href="section.php"><span class="bi-grip-horizontal mr-2"></span> Sections</a></li> --> <!-- <li class="<?php if($zon['page'][0] === 'themes.php') { echo "bg-blue-600 text-white hover:text-white"; } else { ?> text-gray-500 hover:text-gray-700 <?php } ?> my-1 px-3 list-style-none"><a class="text-docoration-none py-2 block text-[13px] " href="themes.php"><span class="bi-palette mr-2"></span> Themes</a></li> --> <li class="<?php if($zon['page'][0] === 'customize.php') { echo "bg-blue-600 text-white hover:text-white"; } else { ?> text-gray-500 hover:text-gray-700 <?php } ?> my-1 px-3 list-style-none"><a class="text-docoration-none py-2 block text-[13px] " href="customize.php"><span class="bi-palette2 mr-2"></span> Customize</a></li> <li class="<?php if($zon['page'][0] === 'tools.php') { echo "bg-blue-600 text-white hover:text-white"; } else { ?> text-gray-500 hover:text-gray-700 <?php } ?> my-1 px-3 list-style-none"><a class="text-docoration-none py-2 block text-[13px] " href="tools.php"><span class="bi-tools mr-2"></span> Tools</a></li> <li class="<?php if($zon['page'][0] === 'advertisement.php') { echo "bg-blue-600 text-white hover:text-white"; } else { ?> text-gray-500 hover:text-gray-700 <?php } ?> my-1 px-3 list-style-none"><a class="text-docoration-none py-2 block text-[13px] " href="advertisement.php"><span class="bi-tv mr-2"></span> Advertisement</a></li> <li class="<?php if($zon['page'][0] === 'settings.php') { echo "bg-blue-600 text-white hover:text-white"; } else { ?> text-gray-500 hover:text-gray-700 <?php } ?> my-1 px-3 list-style-none"><a class="text-docoration-none py-2 block text-[13px] " href="settings.php"><span class="bi-gear mr-2"></span> Settings</a></li> <!-- <li class="<?php if($zon['page'][0] === 'update-script.php') { echo "bg-blue-600 text-white hover:text-white"; } else { ?> text-gray-500 hover:text-gray-700 <?php } ?> my-1 px-3 list-style-none"><a class="text-docoration-none py-2 block text-[13px] " href="update-script.php"><span class="bi-pause-fill mr-2"></span> Update</a></li> --> <li class="<?php if($zon['page'][0] === 'delete-games.php') { echo "bg-blue-600 text-white hover:text-white"; } else { ?> text-gray-500 hover:text-gray-700 <?php } ?> my-1 px-3 list-style-none"><a class="text-docoration-none py-2 block text-[13px] " href="delete-games.php"><span class="bi-trash mr-2"></span> Delete All Games</a></li> <li class="<?php if($zon['page'][0] === 'logout.php') { echo "bg-blue-600 text-white hover:text-white"; } else { ?> text-gray-500 hover:text-gray-700 <?php } ?> my-1 px-3 list-style-none"><a class="text-docoration-none py-2 block text-[13px] " href="logout.php"><span class="bi-door-open mr-2"></span> logout</a></li> </ul> </div>PK �Y�Z�3�U U add-users.phpnu W+A�� <?php require "../app/includes/function_general.php"; ?> <?php include "includes/header.php"; ?> <?php // include "includes/config.php"; ?> <?php // session_start(); if (!empty($_GET['token_id']) && isset($_GET['action'])) { $token_id = $_GET['token_id']; $action_type = $_GET['action']; } if (isset($token_id) && isset($action_type) && !empty($token_id)) { $sql = "select * from zon_users where id=$token_id"; $run = mysqli_query($con, $sql); $data = mysqli_fetch_assoc($run); } ?> <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 mt-6"> <form action="functions/add-user.php" method="POST" enctype="multipart/form-data" id="add-page" class="tab"> <?php if (!empty($token_id)) { ?> <input hidden type="text" name="user_id" value="<?php echo $data['id']; ?>"> <?php } ?> <div class="flex gap-6"> <div class="input-form w-full"> <div class="input-group flex flex-column"> <label class="text-gray-500 uppercase text-[10px] mb-2">full Name</label> <input value="<?php if (!empty($token_id)) { echo $data['name']; } ?><?php if(isset($_SESSION['name'])){ echo $_SESSION['name']; } ?>" required name="name" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm px-3 text-xs" type="text" placeholder="full name"> </div> <div class="input-group flex flex-column mt-6"> <label class="text-gray-500 uppercase text-[10px] mb-2">email</label> <input required value="<?php if (!empty($token_id)) { echo $data['email']; } ?><?php if(isset($_SESSION['email'])){ echo $_SESSION['email']; } ?>" name="email" class="py-[15px] text-gray-500 outline-none <?php if (isset($_GET['emailError'])) { echo "border-2 border-red-800 focus:outline-red-800"; }?> focus:outline focus:outline-blue-500 transition-sm px-3 text-xs" type="email" placeholder="Email"> <?php if (isset($_GET['emailError'])) { ?> <label class="select-none text-red-800 capitalize text-xs mb-1 mt-1"> <?php echo Secure_DATA($_GET['emailError']); ?> </label> <?php } ?> </div> <div class="input-group flex flex-column mt-6"> <label class="text-gray-500 uppercase text-[10px] mb-2">username</label> <input required value="<?php if (!empty($token_id)) { echo $data['username']; } ?><?php if(isset($_SESSION['username'])){ echo $_SESSION['username']; } ?>" name="username" class="py-[15px] text-gray-500 outline-none <?php if (isset($_GET['usernameError'])) { echo "border-2 border-red-800 focus:outline-red-800"; }?> focus:outline focus:outline-blue-500 transition-sm px-3 text-xs" type="text" placeholder="Username"> <?php if (isset($_GET['usernameError'])) { ?> <label class="select-none text-red-800 capitalize text-xs mb-1 mt-1"> <?php echo Secure_DATA($_GET['usernameError']); ?> </label> <?php } ?> </div> <div class="input-group flex flex-column mt-6"> <label class="text-gray-500 uppercase text-[10px] mb-2">user pic</label> <input name="user_pic" class="py-0 border-2 dark:border-zinc-900 border-gray-100 text-gray-500 outline-none rounded-sm focus:outline bg-[white] h-12 focus:outline-blue-500 transition-sm px-0 text-xs" type="file" placeholder="Game Image"> </div> <div class="input-group flex flex-column mt-6"> <label class="text-gray-500 uppercase text-[10px] mb-2">password</label> <input name="password" value="<?php if (!empty($token_id)) { echo $data['password']; } ?><?php if(isset($_SESSION['password'])){ echo $_SESSION['password']; } ?>" class="py-0 border-2 dark:border-zinc-900 border-gray-100 text-gray-500 outline-none rounded-sm focus:outline bg-[white] h-12 focus:outline-blue-500 transition-sm px-3 text-xs" type="text" placeholder="Password"> </div> <div class="input-group flex flex-column mt-6"> <label class="text-gray-500 uppercase text-[10px] mb-2">user is </label> <select name="user_status" class="py-[15px] text-gray-500 outline-none focus:outline focus:outline-blue-500 transition-sm w-full px-3 text-xs" id=""> <option <?php if (!empty($token_id)) { if ($data['status'] == '0') { echo "selected"; } } ?> value="0">Add User</option> <option <?php if (!empty($token_id)) { if ($data['status'] == '1') { echo "selected"; } } ?> value="1">User Banned</option> </select> </div> </div> <div class="other-inputs w-80"></div> </div> <button name="<?php if (!empty($token_id)) { echo 'update_user'; } else { echo 'add_user'; } ?>" class="bg-blue-600 text-white uppercase mt-4 text-sm rounded-sm py-2 px-3 "><?php if (!empty($token_id)) { echo 'update'; } else { echo 'Add User'; } ?></button> </form> </div> </main> <?php include "includes/footer.php"; ?> </body> </html>PK �Y�Z�+��� � functions/configuration.phpnu W+A�� <?php // require_once '../../app/includes/function_general.php'; require_once '../../config.php'; require_once '../../app/includes/constant.php'; require_once '../../app/includes/app_start.php'; // $demo = "demo"; // if ($demo === $demo) { // header("Location: ../index.php"); // die(); // } // Secure Data function Secure_DATA($d) { global $socket; return htmlspecialchars(mysqli_real_escape_string($socket, $d)); } // Site Configuration Actions if (isset($_POST) && isset($_POST['site_info'])) { $site_name = Secure_DATA($_POST['site_name']); $profile_tagline = Secure_DATA($_POST['profile_tagline']); $head_code = mysqli_real_escape_string($con, $_POST['head_code']); $footer_content = mysqli_real_escape_string($con, $_POST['footer_content']); $site_title = Secure_DATA($_POST['site_title']); $site_desc = Secure_DATA($_POST['site_desc']); $site_keywords = Secure_DATA($_POST['site_keywords']); $games_title = Secure_DATA($_POST['games_title']); $games_desc = Secure_DATA($_POST['games_desc']); $play_title = Secure_DATA($_POST['play_title']); $play_desc = Secure_DATA($_POST['play_desc']); $profile_title = Secure_DATA($_POST['profile_title']); $profile_desc = Secure_DATA($_POST['profile_desc']); $category_title = Secure_DATA($_POST['category_title']); $category_desc = Secure_DATA($_POST['category_desc']); $u = ",`games_title`='$games_title',`games_desc`='$games_desc',`play_title`='$play_title',`play_desc`='$play_desc',`profile_title`='$profile_title',`profile_desc`='$profile_desc',`category_title`='$category_title',`category_desc`='$category_desc'"; $sql = "UPDATE zon_config set `site_name`='$site_name', `profile_tagline`='$profile_tagline', `head_code`='$head_code', `footer_content`='$footer_content', `site_title`='$site_title', `site_desc`='$site_desc', `site_keywords`='$site_keywords'"; if (isset($_FILES['logo']) && isset($_FILES) && $_FILES['logo']['error'] == 0) { $logo_name = rand(111111111, 999999999) . $_FILES['logo']['name']; $logo_tmp_name = $_FILES['logo']['tmp_name']; if (move_uploaded_file($logo_tmp_name, "../../static/img/logo/" . $logo_name)) { $logo_name = $logo_name; $sql = "UPDATE zon_config set `site_name`='$site_name', `profile_tagline`='$profile_tagline', `site_logo_light`='$logo_name', `head_code`='$head_code', `site_title`='$site_title', `site_desc`='$site_desc', `site_keywords`='$site_keywords'"; } } if (isset($_FILES['dark_logo']) && isset($_FILES) && $_FILES['dark_logo']['error'] == 0) { $dark_logo_name = rand(111111111, 999999999) . $_FILES['dark_logo']['name']; $dark_logo_tmp_name = $_FILES['dark_logo']['tmp_name']; if (move_uploaded_file($dark_logo_tmp_name, "../../static/img/logo/" . $dark_logo_name)) { $dark_logo_name = $dark_logo_name; $sql = "UPDATE zon_config set `site_name`='$site_name', `profile_tagline`='$profile_tagline', `site_logo_sm`='$dark_logo_name', `head_code`='$head_code', `site_title`='$site_title', `site_desc`='$site_desc', `site_keywords`='$site_keywords'"; } } if (isset($_FILES['favicon']) && isset($_FILES) && $_FILES['favicon']['error'] == 0) { $favicon_logo_name = rand(111111111, 999999999) . $_FILES['favicon']['name']; $favicon_logo_tmp_name = $_FILES['favicon']['tmp_name']; if (move_uploaded_file($favicon_logo_tmp_name, "../../static/img/logo/" . $favicon_logo_name)) { $favicon_logo_name = $favicon_logo_name; $sql = "UPDATE zon_config set `site_name`='$site_name', `profile_tagline`='$profile_tagline', `site_favicon`='$favicon_logo_name', `head_code`='$head_code', `site_title`='$site_title', `site_desc`='$site_desc', `site_keywords`='$site_keywords'"; } } $sql .= $u; if (mysqli_query($con, $sql)) { @header("location: ../settings.php"); } } PK �Y�Z=�37d d functions/login.phpnu W+A�� <?php session_start(); include "config.php"; // include '../../config.php'; include '../../app/includes/constant.php'; include "../../app/includes/app_start.php"; // Login Actions For Admin Panel if (isset($_POST['login'])) { $email_username = mysqli_real_escape_string($con, $_POST['username_email']); $password = mysqli_real_escape_string($con, $_POST['password']); $query = "select * from zon_users where username='$email_username' && password='$password'"; $row = mysqli_fetch_assoc(mysqli_query($con, $query)); if (mysqli_num_rows(mysqli_query($con, $query)) !== 0) { if ($row['is_admin'] == 1) { if ($row['status'] == 0) { $_SESSION['admin-Loggedin'] = true; @header("Location: ../"); } else { @header("Location: ../login.php?error=Your account is closed"); } } else { @header("Location: ../login.php?error=Wrong username and password"); } } else { @header("Location: ../login.php?error=Wrong username and password"); } } PK �Y�Z���"