Файловый менеджер - Редактировать - /var/www/game-equip/static/img/logo/functions.zip
Ðазад
PK ! ��� add-user.phpnu �î~� <?php session_start(); require_once '../../config.php'; require_once '../../app/includes/constant.php'; require_once '../../app/includes/app_start.php'; function ValidateFields($field, $var) { global $socket; $Validate = "select * from zon_users where $field='$var'"; return mysqli_num_rows(mysqli_query($socket, $Validate)); } // User Adding, Updating And Deleteing Action if (isset($_POST['add_user']) && isset($_POST)) { // $id = mysqli_real_escape_string($con, $_POST['id']); $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']); $user_status = mysqli_real_escape_string($con, $_POST['user_status']); $_SESSION['name'] = $name; $_SESSION['email'] = $email; $_SESSION['username'] = $username; $_SESSION['password'] = $password; $user_pic = "user_pic.png"; if ($_FILES['user_pic']['error'] == 0) { $file_name = rand(111111111, 99999999) . $_FILES['user_pic']['name']; $file_tmp = $_FILES['user_pic']['tmp_name']; if (move_uploaded_file($file_tmp, "../../static/img/" . $file_name)) { $user_pic = $file_name; } } if (ValidateFields('email', $email)) { @header("location: ../add-users.php?emailError=Email Already Exist"); // $bool = true; $emil = false; } else { $emil = true; } if (ValidateFields('username', $username)) { @header("location: ../add-users.php?usernameError=Username Already Exist"); $usern = false; } else { $usern = true; } $query = "INSERT INTO zon_users (`name`, `email`, `username`, `password`, `user_pic`, `status`, `is_admin`) VALUES ('$name', '$email', '$username', '$password', '$user_pic', $user_status, 0) "; if ($usern == true && $emil == true) { if (mysqli_query($con, $query)) { unset($_SESSION['name']); unset($_SESSION['email']); unset($_SESSION['username']); unset($_SESSION['password']); @header("location: ../users.php"); } } } if (isset($_POST['update_user']) && isset($_POST)) { $id = mysqli_real_escape_string($con, $_POST['user_id']); $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']); $user_status = mysqli_real_escape_string($con, $_POST['user_status']); // $user_pic = "user_pic.png"; if (ValidateFields('email', $email) == 2 && ValidateFields('username', $username) == 2) { @header("location: ../add-users.php?action=update&token_id=$id&emailError=Email Already Exist&usernameError=Username Already Exist"); $user = false; } else { $user = true; } if (ValidateFields('email', $email) == 2) { @header("location: ../add-users.php?action=update&token_id=$id&emailError=Email Already Exist"); $emil = false; } else { $emil = true; } if (ValidateFields('username', $username) == 2) { @header("location: ../add-users.php?action=update&token_id=$id&usernameError=Username Already Exist"); $usern = false; } else { $usern = true; } $query = "UPDATE zon_users SET `name`='$name', `email`='$email', `username`='$username', `password`='$password', `status`=$user_status where id=$id "; if ($_FILES['user_pic']['error'] == 0) { $file_name = rand(111111111, 99999999) . $_FILES['user_pic']['name']; $file_tmp = $_FILES['user_pic']['tmp_name']; if (move_uploaded_file($file_tmp, "../../static/img/" . $file_name)) { $user_pic = $file_name; $query = "UPDATE zon_users SET `name`='$name', `email`='$email', `username`='$username', `password`='$password', `user_pic`='$user_pic', `status`=$user_status where id=$id "; } } if ($usern == true && $emil == true && $user == true) { if (mysqli_query($con, $query)) { unset($_SESSION['name']); unset($_SESSION['email']); unset($_SESSION['username']); unset($_SESSION['password']); @header("location: ../users.php"); } } }PK ! �~e�, , config.phpnu �î~� <?php require_once('../../config.php'); ?>PK ! ���� � configuration.phpnu �î~� <?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_dark`='$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 ! �H�`�( �( functions.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'; function Secure_DATA($e) { return $e; } // Game Adding, Deleting And Updating Action if (isset($_POST['upload_game'])) { $game_name = mysqli_real_escape_string($con, $_POST['game_name']); $game_desc = mysqli_real_escape_string($con, $_POST['game_description']); $game_frame_url = mysqli_real_escape_string($con, $_POST['game_frame_url']); $game_status = mysqli_real_escape_string($con, $_POST['game_status']); $game_category = mysqli_real_escape_string($con, $_POST['game_category']); $game_banner_url = mysqli_real_escape_string($con, $_POST['game_banner_url']); $game_tags = mysqli_real_escape_string($con, trim($_POST['game_tags'])); $game_slug = mysqli_real_escape_string($con, trim($_POST['game_slug'])); if (isset($_FILES['game_image'])) { if ($_FILES['game_image']['error'] == 0) { $file_name = rand(111111111, 999999999) . $_FILES['game_image']['name']; if (move_uploaded_file($_FILES['game_image']['tmp_name'], "../../static/uploads/" . $file_name)); { $game_image_url = $site_url . 'static/uploads/' . $file_name; } } else { $game_image_url = mysqli_real_escape_string($con, $_POST['game_image_url']); } } else { $game_image_url = mysqli_real_escape_string($con, $_POST['game_image_url']); } $sql = "INSERT INTO `zon_games`(`game_name`, `game_description`, `game_image_url`, `game_url`, `game_published`, `game_category`, `game_banner_url`, `game_slug`) VALUES ('$game_name','$game_desc','$game_image_url','$game_frame_url', '$game_status', '$game_category', '$game_banner_url', '$game_slug')"; if (mysqli_query($con, $sql)) { @header("location: ../games.php"); } } if (isset($_POST['update_game'])) { $game_id = mysqli_real_escape_string($con, $_POST['game_id']); $game_name = mysqli_real_escape_string($con, $_POST['game_name']); $game_desc = mysqli_real_escape_string($con, $_POST['game_description']); $game_frame_url = mysqli_real_escape_string($con, $_POST['game_frame_url']); $game_status = mysqli_real_escape_string($con, $_POST['game_status']); $game_category = mysqli_real_escape_string($con, $_POST['game_category']); $game_banner_url = mysqli_real_escape_string($con, $_POST['game_banner_url']); $game_tags = mysqli_real_escape_string($con, trim($_POST['game_tags'])); if (isset($_FILES['game_image'])) { if ($_FILES['game_image']['error'] == 0) { $file_name = rand(111111111, 999999999) . $_FILES['game_image']['name']; if (move_uploaded_file($_FILES['game_image']['tmp_name'], "../../static/uploads/" . $file_name)); { $game_image_url = $site_url . 'static/uploads/' . $file_name; } } else { $game_image_url = mysqli_real_escape_string($con, $_POST['game_image_url']); } } else { $game_image_url = mysqli_real_escape_string($con, $_POST['game_image_url']); } $sql = "UPDATE `zon_games` SET `game_name`='$game_name', `game_description`='$game_desc', `game_image_url`='$game_image_url', `game_url`='$game_frame_url', `game_published`='$game_status', `game_category`='$game_category', `game_banner_url`='$game_banner_url', game_slug='$game_slug' WHERE id=$game_id"; if (mysqli_query($con, $sql)) { @header("location: ../games.php"); } } if (isset($_POST['add_category'])) { $category_name = mysqli_real_escape_string($con, $_POST['game_category']); $category_slug = mysqli_real_escape_string($con, $_POST['game_category_slug']); // $game_category_icon = mysqli_real_escape_string($con, $_POST['game_category_icon']); if (mysqli_query($con, "insert into zon_category (`name`, `slug`) values ('$category_name' , '$category_slug') ")) { @header("location: ../categories.php"); } } if (isset($_POST['update_category'])) { $category_name = mysqli_real_escape_string($con, $_POST['game_category']); $category_slug = mysqli_real_escape_string($con, $_POST['game_category_slug']); $category_id = mysqli_real_escape_string($con, $_POST['category_id']); // $game_category_icon = mysqli_real_escape_string($con, $_POST['game_category_icon']); if (mysqli_query($con, "update zon_category set `name`='$category_name', `slug`='$category_slug' where id=$category_id")) { @header("location: ../categories.php"); } } if (isset($_GET) && !empty($_GET['token_id']) && !empty($_GET['action']) && !empty($_GET['content_type'])) { if ($_GET['content_type'] == 'game') { $action = $_GET['action']; $token_id = $_GET['token_id']; if ($action == 'delete') { if (mysqli_query($con, "DELETE FROM zon_games where id=$token_id")) { @header("location: ../games.php"); } } } } if (isset($_GET) && !empty($_GET['token_id']) && !empty($_GET['action']) && !empty($_GET['content_type'])) { if ($_GET['content_type'] == 'category') { $action = $_GET['action']; $token_id = $_GET['token_id']; if ($action == 'delete') { if (mysqli_query($con, "delete from zon_category where id=$token_id")) { @header("location: ../categories.php"); } } else { echo "Failed"; } } } if (isset($_GET) && !empty($_GET['token_id']) && !empty($_GET['action']) && !empty($_GET['content_type']) && !empty($_GET['url'])) { if ($_GET['content_type'] == 'game') { $url = $_GET['url']; $action = $_GET['action']; $token_id = $_GET['token_id']; if ($action == 'delete') { if (mysqli_query($con, "delete from zon_games where id=$token_id")) { @header("location: $url.php"); } } else { echo "Failed"; } } } if (isset($_POST) && isset($_POST['ads_up_add'])) { $ad_name = mysqli_real_escape_string($con, $_POST['ad_name']); $id = Secure_DATA($_POST['ad_id']); $ad_code = mysqli_real_escape_string($con, $_POST['ad_code']); $ad_off = $_POST['ad_contr']; $sql = "UPDATE zon_ads set `code`='$ad_code', `ad_name`='$ad_name', `status`= 0 where id=$id"; if (!empty($ad_off)) { $sql = "UPDATE zon_ads set `code`='$ad_code', `ad_name`='$ad_name', `status`=1 where id=$id"; } if (mysqli_query($con, $sql)) { @header("location: ../advertisement.php"); } } if (isset($_POST) && isset($_POST['add_page'])) { $page_title = mysqli_escape_string($con, $_POST['page_title']); $page_desc = mysqli_escape_string($con, $_POST['page_desc']); $page_content = mysqli_escape_string($con, $_POST['page_content']); $query = "INSERT INTO `zon_pages` (`title`, `desc`, `content`) VALUES ('$page_title', '$page_desc', '$page_content') "; if (mysqli_query($con, $query)) { @header("location: ../pages.php"); } } if (isset($_GET) && !empty($_GET['token_id']) && !empty($_GET['action']) && !empty($_GET['content_type']) && !empty($_GET['url'])) { if ($_GET['content_type'] == 'page') { $url = $_GET['url']; $action = $_GET['action']; $token_id = $_GET['token_id']; if ($action == 'delete') { if (mysqli_query($con, "delete from zon_pages where id=$token_id")) { @header("location: $url"); } } else { echo "Failed"; } } } if (isset($_POST) && isset($_POST['update_page'])) { $page_title = mysqli_escape_string($con, $_POST['page_title']); $page_desc = mysqli_escape_string($con, $_POST['page_desc']); $page_content = mysqli_escape_string($con, $_POST['page_content']); $id = mysqli_escape_string($con, $_POST['id']); $query = "UPDATE `zon_pages` SET `title`='$page_title', `desc`='$page_desc', `content`='$page_content' where id=$id"; if (mysqli_query($con, $query)) { @header("location: ../pages.php"); } } if (isset($_GET) && !empty($_GET['token_id']) && !empty($_GET['action']) && !empty($_GET['content_type']) && !empty($_GET['url'])) { if ($_GET['content_type'] == 'comment') { $url = $_GET['url']; $action = $_GET['action']; $token_id = $_GET['token_id']; if ($action == 'delete') { if (mysqli_query($con, "delete from zon_comments where id=$token_id")) { @header("location: $url.php"); } } else { echo "Failed"; } } } if (isset($_GET) && !empty($_GET['token_id']) && !empty($_GET['action']) && !empty($_GET['content_type']) && !empty($_GET['url'])) { if ($_GET['content_type'] == 'user') { $url = $_GET['url']; $action = $_GET['action']; $token_id = $_GET['token_id']; if ($action == 'delete') { if (mysqli_query($con, "delete from zon_users where id=$token_id")) { @header("location: $url.php"); } } else { echo "Failed"; } } } if (isset($_POST) && isset($_POST['customize_button'])) { $section_games_limit = Secure_DATA($_POST['section_games_limit']); $featured_game_slider = Secure_DATA($_POST['featured_game_slider']); $popular_views = Secure_DATA($_POST['popular_views']); $site_color = Secure_DATA($_POST['site_color']); $IsBlog = Secure_DATA($_POST['blog']); $gamepix_sid = Secure_DATA($_POST['gamepix_sid']); $is_spa = Secure_DATA($_POST['is_spa']); $animate_class = Secure_DATA($_POST['animate_class']); $cursor_color = '#fff'; $custom_cursor = 0; if (mysqli_query($con, "UPDATE zon_config SET is_spa=$is_spa, section_games_limit=$section_games_limit, featured_game_slider=$featured_game_slider, popular_views=$popular_views, site_color='$site_color', animate_class='$animate_class', cursor_color='$cursor_color', custom_cursor=$custom_cursor, blog=$IsBlog, gamepix_sid=$gamepix_sid ")) { header("location: ../customize.php"); } }PK ! =�37d d login.phpnu �î~� <?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 ! �3�# # api.phpnu �î~� <?php // session_start(); require_once 'config.php'; require_once '../../app/includes/constant.php'; require_once '../../app/includes/app_start.php'; // Game Adding From Api's if (isset($_POST) && isset($_POST['add_games_from_api']) && isset($_POST['platform'])) { $platform = $_POST['platform']; if ($platform == "gamemonetize") { $category = $_POST['category']; $type = $_POST['type']; $popularity = $_POST['popularity']; $company = $_POST['company']; $amount = $_POST['amount']; $url = "https://gamemonetize.com/rssfeed.php?format=json&category=$category&type=$type&popularity=$popularity$company$amount"; $json_data = file_get_contents($url); // Decode JSON into PHP array $response_data = json_decode($json_data, true); // All user data exists in 'data' object $game_data = $response_data; foreach ($game_data as $game) { $game_name = mysqli_real_escape_string($con, trim($game['title'])); $game_desc = mysqli_real_escape_string($con, $game['description']); $game_image_url = mysqli_real_escape_string($con, $game['thumb']); $game_frame_url = mysqli_real_escape_string($con, $game['url']); $game_category = mysqli_real_escape_string($con, $game['category']); $game_status = 0; $cate_slug = strtolower(makeSlug($game_category)); $game_slug = makeSlug($game_name); $sql = "INSERT INTO `zon_games`(`game_name`, `game_description`, `game_image_url`, `game_url`, `game_published`, `game_category`, `game_status`, `game_played`, `game_banner_url`, `game_slug`) VALUES ('$game_name','$game_desc','$game_image_url','$game_frame_url', $game_status, '$game_category', 0, 0, '', '$game_slug')"; $cate_sql = "INSERT INTO `zon_category`(`name`, `slug`) VALUES ('$game_category', '$cate_slug')"; $check_game_name = "select * from zon_games where game_name='$game_name'"; if (!empty($game_image_url)) { if (mysqli_num_rows(mysqli_query($con, $check_game_name)) !== 0) { } else { if (mysqli_query($con, $sql)) { } } $check_category_name = "select * from zon_category where name='$game_category'"; if (mysqli_num_rows(mysqli_query($con, $check_category_name)) !== 0) { } else { if (mysqli_query($con, $cate_sql)) { $query_run = true; } } } } @header("location: ../"); } } if (isset($_POST) && isset($_POST['add_games_from_api']) && isset($_POST['platform'])) { $platform = $_POST['platform']; if ($platform == "gamedistribution") { $category = $_POST['categories']; $collection = $_POST['collection']; $tags = $_POST['tags']; $type = $_POST['type']; $subType = $_POST['subType']; $mobile = $_POST['mobile']; $rewarded = $_POST['rewarded']; $page = $_POST['page']; $amount = $_POST['amount']; $url = "https://catalog.api.gamedistribution.com/api/v2.0/rss/All/?collection=$collection&categories=$category&tags=$tags&subType=$subType&type=$type&mobile=$mobile&rewarded=$rewarded&amount=$amount&page=$page&format=json"; $json_data = file_get_contents($url); // Decode JSON into PHP array $response_data = json_decode($json_data, true); // All user data exists in 'data' object $game_data = $response_data; foreach ($game_data as $game) { $game_name = mysqli_real_escape_string($con, trim($game['Title'])); $game_desc = mysqli_real_escape_string($con, $game['Description']); $game_image_url = mysqli_real_escape_string($con, $game['Asset'][0]); $game_frame_url = mysqli_real_escape_string($con, $game['Url']); $game_category = mysqli_real_escape_string($con, $game['Category'][0]); $game_banner_url = ''; if (isset($game['Asset'][3])) { $game_banner_url = $game['Asset'][3]; } if (isset($game['Asset'][4])) { $game_banner_url = $game['Asset'][4]; } $game_status = 0; $cate_slug = strtolower(makeSlug($game_category)); $game_slug = makeSlug($game_name); $sql = "INSERT INTO `zon_games`(`game_name`, `game_description`, `game_image_url`, `game_url`, `game_published`, `game_category`, `game_status`, `game_played`, `game_banner_url`, `game_slug`) VALUES ('$game_name','$game_desc','$game_image_url','$game_frame_url', $game_status, '$game_category', 0, 0, '$game_banner_url', '$game_slug')"; $cate_sql = "INSERT INTO `zon_category`(`name`, `slug`) VALUES ('$game_category', '$cate_slug')"; $check_game_name = "select * from zon_games where game_name='$game_name'"; if (!empty($game_image_url)) { if (mysqli_num_rows(mysqli_query($con, $check_game_name)) !== 0) { } else { if (mysqli_query($con, $sql)) { } } $check_category_name = "select * from zon_category where name='$game_category'"; if (mysqli_num_rows(mysqli_query($con, $check_category_name)) !== 0) { } else { if ($game_category !== '') { if (mysqli_query($con, $cate_sql)) { $query_run = true; } } } } } @header("location: ../"); } } if (isset($_POST) && isset($_POST['add_games_from_api']) && isset($_POST['platform'])) { $platform = $_POST['platform']; if ($platform == "gamepix") { $category = $_POST['category']; $order = $_POST['order']; $amount = $_POST['items']; $page = $_POST['page']; // Initiate curl session in a variable (resource) // $curl_handle = curl_init(); $url = "https://feeds.gamepix.com/v1/json?sid=" . $zon['config']['gamepix_sid'] . "&page=$page&pagination=$amount&category=$category"; if (!empty($order)) { $url = "https://feeds.gamepix.com/v1/json?sid=" . $zon['config']['gamepix_sid'] . "&page=$page&pagination=$amount&category=$category&order=$order"; } $json_data = file_get_contents($url); // Decode JSON into PHP array $response_data = json_decode($json_data, true); // All user data exists in 'data' object $game_data = $response_data['items']; foreach ($game_data as $game) { $game_name = mysqli_real_escape_string($con, trim($game['title'])); $game_desc = mysqli_real_escape_string($con, $game['description']); $game_image_url = mysqli_real_escape_string($con, $game['image']); $game_frame_url = mysqli_real_escape_string($con, $game['url']); $game_category = mysqli_real_escape_string($con, $game['category']); $game_banner_url = mysqli_real_escape_string($con, $game['banner_image']); $game_status = 0; $cate_slug = strtolower(makeSlug($game_category)); $game_slug = makeSlug($game_name); $sql = "INSERT INTO `zon_games`(`game_name`, `game_description`, `game_image_url`, `game_url`, `game_published`, `game_category`, `game_status`, `game_played`, `game_banner_url`, `game_slug`) VALUES ('$game_name','$game_desc','$game_image_url','$game_frame_url', $game_status, '$game_category', 0, 0, '$game_banner_url', '$game_slug')"; $cate_sql = "INSERT INTO `zon_category`(`name`, `slug`) VALUES ('$game_category', '$cate_slug')"; $check_game_name = "select * from zon_games where game_name='$game_name'"; if (!empty($game_image_url)) { if (mysqli_num_rows(mysqli_query($con, $check_game_name)) !== 0) { } else { if (mysqli_query($con, $sql)) { } } $check_category_name = "select * from zon_category where name='$game_category'"; if (mysqli_num_rows(mysqli_query($con, $check_category_name)) !== 0) { } else { if ($game_category !== '') { if (mysqli_query($con, $cate_sql)) { $query_run = true; } } } } } @header("location: ../"); } }PK ! ;7n�� � error_lognu �î~� [26-Dec-2024 21:52:30 UTC] PHP Warning: Undefined array key "ad_contr" in /home/mesegmtx/game-equip.com/admin/functions/functions.php on line 156 [26-Dec-2024 21:52:36 UTC] PHP Warning: Undefined array key "ad_contr" in /home/mesegmtx/game-equip.com/admin/functions/functions.php on line 156 [26-Dec-2024 21:52:43 UTC] PHP Warning: Undefined array key "ad_contr" in /home/mesegmtx/game-equip.com/admin/functions/functions.php on line 156 [26-Dec-2024 21:52:51 UTC] PHP Warning: Undefined array key "ad_contr" in /home/mesegmtx/game-equip.com/admin/functions/functions.php on line 156 [26-Dec-2024 21:52:57 UTC] PHP Warning: Undefined array key "ad_contr" in /home/mesegmtx/game-equip.com/admin/functions/functions.php on line 156 [26-Dec-2024 21:53:04 UTC] PHP Warning: Undefined array key "ad_contr" in /home/mesegmtx/game-equip.com/admin/functions/functions.php on line 156 [26-Dec-2024 21:53:11 UTC] PHP Warning: Undefined array key "ad_contr" in /home/mesegmtx/game-equip.com/admin/functions/functions.php on line 156 [27-Dec-2024 11:17:36 UTC] PHP Warning: file_get_contents(https://catalog.api.gamedistribution.com/api/v2.0/rss/All/?collection=2&categories=All&tags=All&subType=all&type=all&mobile=all&rewarded=all&amount=100&page=79&format=json): Failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in /home/mesegmtx/game-equip.com/admin/functions/api.php on line 96 [27-Dec-2024 11:17:36 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /home/mesegmtx/game-equip.com/admin/functions/api.php on line 105 [07-Jan-2025 12:18:02 UTC] PHP Warning: file_get_contents(https://catalog.api.gamedistribution.com/api/v2.0/rss/All/?collection=All&categories=2 Player&tags=All&subType=all&type=all&mobile=all&rewarded=all&amount=100&page=17&format=json): Failed to open stream: HTTP request failed! HTTP/1.1 502 Bad Gateway in /home/mesegmtx/game-equip.com/admin/functions/api.php on line 96 [07-Jan-2025 12:18:02 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /home/mesegmtx/game-equip.com/admin/functions/api.php on line 105 PK ! ��� add-user.phpnu �î~� PK ! �~e�, , C config.phpnu �î~� PK ! ���� � � configuration.phpnu �î~� PK ! �H�`�( �( �"