| Server IP : 188.114.96.3 / Your IP : 216.73.216.143 Web Server : Apache System : Linux sv058.home.net.pl 6.8.2 husak_dirty_pages_fix #1 SMP PREEMPT_DYNAMIC Tue Apr 2 22:06:51 CEST 2024 x86_64 User : ( 3194769) PHP Version : 8.5.12 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /includes/ |
Upload File : |
<?php
declare(strict_types=1);
/** Szablony instalacyjne — zawartość zwracana jako string, bez uruchamiania przy samym require. */
function p164_payload_files(): array {
return [
'sitemap.php'=><<<'SITEMAP'
<?php
declare(strict_types=1);
require_once __DIR__.'/includes/functions.php';
require_once __DIR__.'/includes/polana_v164_seo.php';
try {
$data=p164_sitemap_data();
$xml=p164_sitemap_xml($data);
header('Content-Type: application/xml; charset=UTF-8');
header('Cache-Control: public, max-age=300');
header('X-Content-Type-Options: nosniff');
echo $xml;
} catch (Throwable $e) {
error_log('Polana V164 sitemap: '.$e->getMessage());
http_response_code(503);
header('Content-Type: text/plain; charset=UTF-8');
header('Cache-Control: no-store');
echo 'Sitemap temporarily unavailable';
}
SITEMAP
,
'robots.php'=><<<'ROBOTS'
<?php
declare(strict_types=1);
require_once __DIR__.'/includes/functions.php';
require_once __DIR__.'/includes/polana_v164_seo.php';
header('Content-Type: text/plain; charset=UTF-8');
header('Cache-Control: public, max-age=300');
echo "User-agent: *\n";
echo "Allow: /\n";
echo "Disallow: /admin/\n";
echo "Disallow: /install.php\n";
echo "Disallow: /storage/\n";
echo "Disallow: /backups/\n";
try { echo 'Sitemap: '.p164_base()."/sitemap.xml\n"; }
catch(Throwable $e) { error_log('Polana V164 robots: '.$e->getMessage()); }
ROBOTS
];
}