Файловый менеджер - Редактировать - /home/u532192970/domains/madresa.xyz/public_html/static/img/logo/xhr.zip
Ðазад
PK �(�Z�#�� � categories.phpnu �[��� <?php require_once '../config.php'; require_once '../app/includes/constant.php'; require_once '../app/includes/app_start.php'; function getMoreCategories($l) { global $socket; $query = "SELECT * FROM zon_category ORDER BY id DESC LIMIT $l"; $game_sql = $socket->query($query); $data = []; while ($row = $game_sql->fetch_assoc()) { $data[] = $row; } return $data; } $page = $_POST['page'] ?? 1; $limit = 8; $row = ($page - 1) * $limit - $limit; // echo $row; foreach (getMoreCategories(" $row, $limit ") as $category) { $total_games = num_rows(T_ZON_GAMES, "game_category='" . $category['name'] . "'"); // if ($total_games > 0) { ?> <li> <a href="<?php echo $site_url . 'category/?n=' . urlencode($category['name']); ?>" class="flex items-center gap-4"> <svg xmlns="http://www.w3.org/2000/svg" width="19px" height="19px" fill="none" stroke-width="1.1" viewBox="0 0 24 24" color="#000000"> <path style="stroke: var(--zon-common-text-color);" stroke="#000000" stroke-width="1.1" d="M2 17V7a4 4 0 0 1 4-4h3.9a.6.6 0 0 1 .6.6v16.8a.6.6 0 0 1-.6.6H6a4 4 0 0 1-4-4Z"></path> <path style="stroke: var(--zon-common-text-color);" fill="#000000" stroke="#000000" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round" d="M6.5 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM17.5 14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"></path> <path style="stroke: var(--zon-common-text-color);" stroke="#000000" stroke-width="1.1" d="M22 17V7a4 4 0 0 0-4-4h-3.9a.6.6 0 0 0-.6.6v16.8a.6.6 0 0 0 .6.6H18a4 4 0 0 0 4-4Z"></path> </svg> <div class="text"> <span class="capitalize text-md"> <?= str_replace("-", " ", $category['name']) ?> </span> <p style="color: var(--zon-muted-color)" class="text-xs"> <?php echo $total_games ?> Games </p> </div> </a> </li> <?php // } } ?>PK �(�Z�w� ] ] new-games.phpnu �[��� <?php require_once '../config.php'; require_once '../app/includes/constant.php'; require_once '../app/includes/app_start.php'; $page = $_POST['page'] ?? 1; $limit = 30; $row = ($page - 1) * $limit; $query = "SELECT * from zon_games order by id desc limit $row,$limit"; $run = mysqli_query($con, $query); // $game = mysqli_fetch_all($run); while ($game = mysqli_fetch_assoc($run)) { if ($zon['config']['theme'] === 'garud') { ?> <div class="game wow <?php echo $zon['config']['animate_class'] ?> "> <a href="<?= $site_url . 'game/' . makeSlug($game['game_name']) . '/' . $game['id'] ?>" class="game__thumb"> <img src="<?= $game['game_image_url'] ?>" alt="<?= $game['game_name'] ?>" /> </a> <a href="<?= $site_url . 'game/' . makeSlug($game['game_name']) . '/' . $game['id'] ?>" class="game_name"> <?= $game['game_name'] ?> </a> </div> <?php } else { ?> <div class="rounded-lg wow <?php echo $zon['config']['animate_class'] ?>"> <div class="game-card w-full"> <a href="<?= $site_url . 'game/' . makeSlug($game['game_name']) . '/' . $game['id'] ?>"> <img src="<?php echo $game['game_banner_url'] == '' ? $game['game_image_url'] : $game['game_banner_url'] ?>" /> </a> <div class="game-details gap-4"> <a href="<?php echo $site_url . 'game/' . makeSlug($game['game_name']) . '/' . $game['id'] ?>" class="text-md line-clamp-2 font-semibold"> <?= $game['game_name'] ?> </a> <a style="color: var(--zon-muted-color);" class="text-sm" href="<?php echo $site_url ?>category/?n=<?= urlencode($game['game_category']) ?>"><?= $game['game_category'] ?></a> <div class="game-meta rounded-lg mt-3 w-fit bg-[var(--zon-gmeta-bg-color)] px-2 py-0.5 flex items-center gap-2"> <span> <svg xmlns="http://www.w3.org/2000/svg" width="19px" height="19px" fill="none" stroke-width="1.1" viewBox="0 0 24 24" color="#000000"> <path stroke="#000000" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round" d="M17.5 17.5c2.5 3.5 6.449.915 5.5-2.5-1.425-5.129-2.2-7.984-2.603-9.492A2.032 2.032 0 0 0 18.438 4H5.562c-.918 0-1.718.625-1.941 1.515C2.78 8.863 2.033 11.802 1.144 15c-.948 3.415 3 6 5.5 2.5"> </path> <path stroke="#000000" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round" d="M16 4v2a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2V4M8 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM16 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"> </path> </svg> </span> <span class="text-xs"> <?= $game['game_played'] ?> Plays </span> </div> </div> </div> </div> <?php } ?> <?php } ?>PK �(�Z��ho� � like.phpnu �[��� <?php require_once '../config.php'; require_once '../app/includes/constant.php'; require_once '../app/includes/app_start.php'; $game_id = mysqli_real_escape_string($socket, $_POST['gi']); $ui = $_SERVER['REMOTE_ADDR']; if (num_rows(T_ZON_LIKES, "game_id=$game_id && user_ip='$ui'") > 0) { if (mysqli_query($socket, "DELETE FROM " . T_ZON_LIKES . " WHERE game_id=$game_id && user_ip='$ui' ")) { echo json_encode(["like" => formatNumber(num_rows(T_ZON_LIKES, "game_id=$game_id")), "dislike" => formatNumber(num_rows(T_ZON_DISLIKES, "game_id=$game_id"))]); } } else { if (mysqli_query($socket, "INSERT INTO " . T_ZON_LIKES . " (user_ip, game_id) VALUES ('$ui', $game_id) ")) { mysqli_query($socket, "DELETE FROM " . T_ZON_DISLIKES . " WHERE game_id=$game_id && user_ip='$ui' "); echo json_encode(["like" => formatNumber(num_rows(T_ZON_LIKES, "game_id=$game_id")), "dislike" => formatNumber(num_rows(T_ZON_DISLIKES, "game_id=$game_id"))]); } }PK �(�Z�?��� � popular-games.phpnu �[��� <?php require_once '../config.php'; require_once '../app/includes/constant.php'; require_once '../app/includes/app_start.php'; $page = $_POST['page'] ?? 1; $limit = 30; $row = ($page - 1) * $limit; $query = "SELECT * FROM zon_games WHERE game_played > " . $zon['config']['popular_views'] . " limit $row,$limit"; // $query = "SELECT * FROM zon_games"; $run = mysqli_query($con, $query); // $game = mysqli_fetch_all($run); foreach (getGamesByPopular("LIMIT $row,$limit") as $game) { if ($zon['config']['theme'] === 'garud') { ?> <div class="game new__badges wow <?php echo $zon['config']['animate_class'] ?> "> <a href="<?= $site_url . 'game/' . makeSlug($game['game_name']) . '/' . $game['id'] ?>" class="game__thumb"> <img src="<?= $game['game_image_url'] ?>" alt="<?= $game['game_name'] ?>" /> </a> <a href="<?= $site_url . 'game/' . makeSlug($game['game_name']) . '/' . $game['id'] ?>" class="game_name"> <?= $game['game_name'] ?> </a> </div> <?php } else { ?> <div class="rounded-lg wow <?php echo $zon['config']['animate_class'] ?>"> <div class="game-card w-full"> <a href="<?= $site_url . 'game/' . makeSlug($game['game_name']) . '/' . $game['id'] ?>"> <img src="<?php echo $game['game_banner_url'] == '' ? $game['game_image_url'] : $game['game_banner_url'] ?>" /> </a> <div class="game-details gap-4"> <a href="<?php echo $site_url . 'game/' . makeSlug($game['game_name']) . '/' . $game['id'] ?>" class="text-md line-clamp-2 font-semibold"> <?= $game['game_name'] ?> </a> <a style="color: var(--zon-muted-color);" class="text-sm" href="<?php echo $site_url ?>category/?n=<?= urlencode($game['game_category']) ?>"> <?= $game['game_category'] ?> </a> <div class="game-meta rounded-lg mt-3 w-fit bg-[var(--zon-gmeta-bg-color)] px-2 py-0.5 flex items-center gap-2"> <span> <svg xmlns="http://www.w3.org/2000/svg" width="19px" height="19px" fill="none" stroke-width="1.1" viewBox="0 0 24 24" color="#000000"> <path stroke="#000000" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round" d="M17.5 17.5c2.5 3.5 6.449.915 5.5-2.5-1.425-5.129-2.2-7.984-2.603-9.492A2.032 2.032 0 0 0 18.438 4H5.562c-.918 0-1.718.625-1.941 1.515C2.78 8.863 2.033 11.802 1.144 15c-.948 3.415 3 6 5.5 2.5"> </path> <path stroke="#000000" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round" d="M16 4v2a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2V4M8 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM16 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"> </path> </svg> </span> <span class="text-xs"> <?= $game['game_played'] ?> Plays </span> </div> </div> </div> </div> <?php } ?> <?php } ?>PK �(�Z���� � games-by-category.phpnu �[��� <?php require_once '../config.php'; require_once '../app/includes/constant.php'; require_once '../app/includes/app_start.php'; $page = $_POST['page'] ?? 1; $category = $_POST['category'] ?? ''; $limit = 30; $row = ($page - 1) * $limit; $query = "SELECT * from zon_games WHERE game_category='$category' order by id asc limit $row,$limit"; $run = mysqli_query($con, $query); if (num_rows(T_ZON_GAMES, "game_category='$category'") > 0) { while ($game = mysqli_fetch_assoc($run)) { if ($zon['config']['theme'] === 'garud') { ?> <div class="game wow <?php echo $zon['config']['animate_class'] ?> "> <a href="<?= $site_url . 'game/' . makeSlug($game['game_name']) . '/' . $game['id'] ?>" class="game__thumb"> <img src="<?= $game['game_image_url'] ?>" alt="<?= $game['game_name'] ?>" /> </a> <a href="<?= $site_url . 'game/' . makeSlug($game['game_name']) . '/' . $game['id'] ?>" class="game_name"> <?= $game['game_name'] ?> </a> </div> <?php } else { ?> <div class="rounded-lg wow <?php echo $zon['config']['animate_class'] ?> "> <div class="game-card w-full"> <a href="<?= $site_url . 'game/' . makeSlug($game['game_name']) . '/' . $game['id'] ?>"> <img src="<?php echo $game['game_banner_url'] == '' ? $game['game_image_url'] : $game['game_banner_url'] ?>" /> </a> <div class="game-details gap-4"> <a href="<?php echo $site_url . 'game/' . makeSlug($game['game_name']) . '/' . $game['id'] ?>" class="text-md line-clamp-2 font-semibold"> <?= $game['game_name'] ?> </a> <a style="color: var(--zon-muted-color);" class="text-sm" href="<?php echo $site_url ?>category/?n=<?= urlencode($game['game_category']) ?>"> <?= $game['game_category'] ?> </a> <div class="game-meta rounded-lg mt-3 w-fit bg-[var(--zon-gmeta-bg-color)] px-2 py-0.5 flex items-center gap-2"> <span> <svg xmlns="http://www.w3.org/2000/svg" width="19px" height="19px" fill="none" stroke-width="1.1" viewBox="0 0 24 24" color="#000000"> <path stroke="#000000" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round" d="M17.5 17.5c2.5 3.5 6.449.915 5.5-2.5-1.425-5.129-2.2-7.984-2.603-9.492A2.032 2.032 0 0 0 18.438 4H5.562c-.918 0-1.718.625-1.941 1.515C2.78 8.863 2.033 11.802 1.144 15c-.948 3.415 3 6 5.5 2.5"> </path> <path stroke="#000000" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round" d="M16 4v2a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2V4M8 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM16 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"> </path> </svg> </span> <span class="text-xs"> <?= $game['game_played'] ?> Plays </span> </div> </div> </div> </div> <?php } } } else { echo "There are no games in this category right now."; } ?>PK �(�Z~�hk k login.phpnu �[��� <?php require_once '../config.php'; require_once '../app/includes/constant.php'; require_once '../app/includes/app_start.php'; $email_username = mysqli_real_escape_string($con, $_POST['usernameEmail']); $password = mysqli_real_escape_string($con, $_POST['password']); // $user_id = mysqli_real_escape_string($con, $_POST['id']); $query = "select * from zon_users where (email='$email_username' || username='$email_username') && password='$password'"; $row = mysqli_fetch_assoc(mysqli_query($con, $query)); if (mysqli_num_rows(mysqli_query($con, $query)) !== 0) { if ($row['status'] == 0) { $_SESSION['Loggedin'] = true; $_SESSION['Loggedin_user'] = $email_username; if ($row['is_admin'] == 1) { $_SESSION['is_admin_Loggedin'] = true; } $user_data = mysqli_fetch_assoc(mysqli_query($con, "select * from zon_users where username='$email_username' || email='$email_username'")); $_SESSION['Loggedin_user_id'] = $user_data['id']; // @header("Location: ../"); echo "You loggedin successfully."; } else { echo "Your account is closed."; // @header("Location: ../login?error=Your account is closed"); } } else { echo "Wrong username or email and password"; // @header("Location: ../login?error=Wrong username or email and password"); } ?>PK �(�Z�b�� � dislike.phpnu �[��� <?php require_once '../config.php'; require_once '../app/includes/constant.php'; require_once '../app/includes/app_start.php'; $game_id = mysqli_real_escape_string($socket, $_POST['gi']); $ui = $_SERVER['REMOTE_ADDR']; if (num_rows(T_ZON_DISLIKES, "game_id=$game_id && user_ip='$ui'") > 0) { if (mysqli_query($socket, "DELETE FROM " . T_ZON_DISLIKES . " WHERE game_id=$game_id && user_ip='$ui' ")) { echo json_encode(["like" => formatNumber(num_rows(T_ZON_LIKES, "game_id=$game_id")), "dislike" => formatNumber(num_rows(T_ZON_DISLIKES, "game_id=$game_id"))]); } } else { if (mysqli_query($socket, "INSERT INTO " . T_ZON_DISLIKES . " (user_ip, game_id) VALUES ('$ui', $game_id) ")) { mysqli_query($socket, "DELETE FROM " . T_ZON_LIKES . " WHERE game_id=$game_id && user_ip='$ui' "); echo json_encode(["like" => formatNumber(num_rows(T_ZON_LIKES, "game_id=$game_id")), "dislike" => formatNumber(num_rows(T_ZON_DISLIKES, "game_id=$game_id"))]); } }PK �(�Z�� update-userinfo.phpnu �[��� <?php require_once '../config.php'; require_once '../app/includes/constant.php'; require_once '../app/includes/app_start.php'; require_once '../app/includes/function_general.php'; // change profile setting action if (isset($_POST['change_settings'])) { // $url = Secure_DATA($_GET['url']); $name = Secure_DATA($_POST['name']); $id = Secure_DATA($_POST['change_settings']); $username = Secure_DATA($_POST['username']); $email = Secure_DATA($_POST['email']); $password = Secure_DATA($_POST['new_password']); $user_pic = ''; $query = "UPDATE zon_users set `name`='$name', `email`='$email', `username`='$username' where id=$id"; if ($_FILES['avatar_img']) { $user_pic = rand(111111111, 999999999) . $_FILES['avatar_img']['name']; if (move_uploaded_file($_FILES['avatar_img']['tmp_name'], "../static/img/" . $user_pic)) { } } if (!empty($password)) { $query = "UPDATE zon_users set `name`='$name', `email`='$email', `username`='$username', `password`='$password' where id=$id"; } else { if ($_FILES['avatar_img']['error'] == 0) { $query = "UPDATE zon_users set `name`='$name', `email`='$email', `username`='$username', `user_pic`='$user_pic' where id=$id"; } } if ($_FILES['avatar_img']['error'] == 0 && !empty($password)) { $query = "UPDATE zon_users set `name`='$name', `email`='$email', `username`='$username', `password`='$password', `user_pic`='$user_pic' where id=$id"; } if ($username !== $zon['user']['username']) { if (num_rows(T_ZON_USERS, "username='$username'") > 0) { echo "Username is a Exist."; } else { if (mysqli_query($con, $query)) { // @header("location: $url"); echo "Profile updated successfully"; } } } else { if (mysqli_query($con, $query)) { // @header("location: $url"); echo "Profile updated successfully"; } } } PK �(�Z�p�-a a all-games.phpnu �[��� <?php require_once '../config.php'; require_once '../app/includes/constant.php'; require_once '../app/includes/app_start.php'; $page = $_POST['page'] ?? 1; $limit = 30; $row = ($page - 1) * $limit; $query = "SELECT * from zon_games order by id asc limit $row,$limit"; $run = mysqli_query($con, $query); // $game = mysqli_fetch_all($run); while ($game = mysqli_fetch_assoc($run)) { if ($zon['config']['theme'] === 'garud') { ?> <div class="game new__badges wow <?php echo $zon['config']['animate_class'] ?> "> <a href="<?= $site_url . 'game/' . makeSlug($game['game_name']) . '/' . $game['id'] ?>" class="game__thumb"> <img src="<?= $game['game_image_url'] ?>" alt="<?= $game['game_name'] ?>" /> </a> <a href="<?= $site_url . 'game/' . makeSlug($game['game_name']) . '/' . $game['id'] ?>" class="game_name"> <?= $game['game_name'] ?> </a> </div> <?php } else { ?> <div class="rounded-lg wow <?php echo $zon['config']['animate_class'] ?> "> <div class="game-card w-full"> <a href="<?php echo $site_url . 'game/' . makeSlug($game['game_name']) . '/' . $game['id'] ?>"> <img src="<?php echo $game['game_banner_url'] == '' ? $game['game_image_url'] : $game['game_banner_url'] ?>" /> </a> <div class="game-details gap-4"> <a href="<?php echo $site_url . 'game/' . makeSlug($game['game_name']) . '/' . $game['id'] ?>" class="text-md line-clamp-2 font-semibold"> <?= $game['game_name'] ?> </a> <a style="color: var(--zon-muted-color);" class="text-sm" href="<?php echo $site_url ?>category/?n=<?= urlencode($game['game_category']) ?>"> <?= $game['game_category'] ?> </a> <div class="game-meta rounded-lg mt-3 w-fit bg-[var(--zon-gmeta-bg-color)] px-2 py-0.5 flex items-center gap-2"> <span> <svg xmlns="http://www.w3.org/2000/svg" width="19px" height="19px" fill="none" stroke-width="1.1" viewBox="0 0 24 24" color="#000000"> <path stroke="#000000" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round" d="M17.5 17.5c2.5 3.5 6.449.915 5.5-2.5-1.425-5.129-2.2-7.984-2.603-9.492A2.032 2.032 0 0 0 18.438 4H5.562c-.918 0-1.718.625-1.941 1.515C2.78 8.863 2.033 11.802 1.144 15c-.948 3.415 3 6 5.5 2.5"> </path> <path stroke="#000000" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round" d="M16 4v2a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2V4M8 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM16 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"> </path> </svg> </span> <span class="text-xs"> <?= $game['game_played'] ?> Plays </span> </div> </div> </div> </div> <?php } ?> <?php } ?>PK �(�Z�z�-� � report.phpnu �[��� <?php require_once '../config.php'; require_once '../app/includes/constant.php'; require_once '../app/includes/app_start.php'; if (isset($_POST) && !empty($_POST)) { if (isset($_POST['problem']) && !empty($_POST['problem'])) { $game_name = $_POST['game_name']; $report_sub = mysqli_real_escape_string($socket, htmlspecialchars($_POST['problem'])); $game_id = $_POST['game_id']; if (mysqli_query($socket, "INSERT INTO " . T_ZON_REPORTS . " (game_name, report_subject, game_id) VALUES ('$game_name', '$report_sub', $game_id) ")) { echo 1; } } } else { echo "error"; }PK �(�Zn ��� � register.phpnu �[��� <?php require_once '../config.php'; require_once '../app/includes/constant.php'; require_once '../app/includes/app_start.php'; // require_once '../app/includes/genera.php'; // print_r($_POST); if (isset($_POST['signup']) && isset($_POST)) { $name = mysqli_real_escape_string($con, $_POST['name']); $email = mysqli_real_escape_string($con, $_POST['email']); $username = mysqli_real_escape_string($con, $_POST['username']); $password = mysqli_real_escape_string($con, $_POST['password']); $message = "All Input Field are required"; if (!empty($name) && !empty($email) && !empty($username) && !empty($password)) { if (num_rows(T_ZON_USERS, "email='$email'") > 0) { echo "Email Already Exist"; } else if (num_rows(T_ZON_USERS, "username='$username'") > 0) { echo "Username Already Exist"; } else { $user_pic = "user_pic.png"; $query = "INSERT INTO zon_users (`name`, `email`, `username`, `password`, `user_pic`, `status`, `is_admin`) VALUES ('$name', '$email', '$username', '$password', '$user_pic', 0, 0) "; if (mysqli_query($con, $query)) { $_SESSION['Loggedin'] = true; $_SESSION['Loggedin_user'] = $username; echo "You registered successfully."; } } } else { echo $message; } }PK �(�ZB�T� � live-search.phpnu �[��� <?php require_once '../config.php'; require_once '../app/includes/constant.php'; require_once '../app/includes/app_start.php'; $s = $_POST['query'] ?? ''; $limit = 20; // $row = ($page - 1) * $limit; // $query = "SELECT * from zon_games WHERE game_name LIKE '%$s%' limit $row,$limit"; // $run = mysqli_query($con, $query); if (num_rows(T_ZON_GAMES, " game_name LIKE '%$s%' ") > 0) { foreach (getGamesByQuery($s, $limit) as $game) { ?> <div class="m-game-card"> <a class="m-game-link" href="<?= $site_url ?>g/<?= makeSlug($game['game_name']) ?>"> <picture style="background-image: url('<?= $game['game_image_url'] ?>')" class="m-game-thumbnail"> <div class="m-game-details"> <p> <?= $game['game_name'] ?> </p> </div> </picture> </a> </div> <?php } } else { echo 0; } ?>PK �(�Z�#�� � categories.phpnu �[��� PK �(�Z�w� ] ] new-games.phpnu �[��� PK �(�Z��ho� � � like.phpnu �[��� PK �(�Z�?��� � � popular-games.phpnu �[��� PK �(�Z���� � �'