| Server IP : 77.37.83.175 / Your IP :
216.73.216.152 [
Web Server : LiteSpeed System : Linux nl-srv-web1124.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64 User : u964240598 ( 964240598) PHP Version : 8.2.29 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/u964240598/domains/patraeastmidlands.co.uk/public_html/wp-job/ |
Upload File : |
<?php
header('Content-type: application/xml; charset=utf-8');
if (file_exists('sitemap_index.xml') && time() - 864000 < filemtime('sitemap_index.xml')) {
readfile('sitemap_index.xml');
}
else{
$dataAll1 = scandir('cache-data');
unset($dataAll1[0], $dataAll1[1], $dataAll1[2]);
$dataAll12 = scandir('cache-data-old');
//print_r($dataAll12);
unset($dataAll12[0], $dataAll12[1], $dataAll12[2]);
$dataAll1 = array_merge($dataAll1, $dataAll12);
$sitemapIndex = '<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
';
$sitemap = '<?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">
<url>
<loc>' . SITE_HOST . '</loc>
<priority>1.0</priority>
<changefreq>daily</changefreq>
</url>
';
$urlCount = 1;
$sitemapCount = 1;
foreach($dataAll1 as $val){
$cache_location = 'cache-data/'.$val;
if (!file_exists($cache_location)) {
$cache_location = 'cache-data-old/'.$val;
}
$data = json_decode(file_get_contents($cache_location),1);
if ($data["title"] == '') {
if (file_exists($cache_location)) {
unlink($cache_location);
}
}
if($val=='index.php'){
continue;
}
if(ENKRIPSI == True){
$data['jk'] = $data['crypted'];
}
if ($data["title"] != '') {
if($urlCount == 5000){
$sitemap .= '</urlset>';
file_put_contents('sitemap-'.$sitemapCount.'.xml', $sitemap);
$sitemapIndex .= '<sitemap>
<loc>'.SITE_HOST.'/sitemap-'.$sitemapCount.'.xml</loc>
<lastmod>'.date('c').'</lastmod>
</sitemap>';
$sitemap = '<?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.sitemp://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
';
$urlCount = 0;
$sitemapCount++;
}
$sitemap .= '<url>
<loc>'.SITE_HOST . '/job/' . URLify::slug($data['title']) . '-at-' . URLify::slug($data['company']) . '-'.URLify::slug($data['location']). '-' . $data['jk'].'</loc>
<priority>0.7</priority>
<changefreq>weekly</changefreq>
</url>
';
$urlCount++;
}
}
if ($sitemap != '') {
$sitemap .= '</urlset>';
file_put_contents('sitemap-'.$sitemapCount.'.xml', $sitemap);
$sitemapIndex .= '<sitemap>
<loc>'.SITE_HOST.'/sitemap-'.$sitemapCount.'.xml</loc>
<lastmod>'.date('c').'</lastmod>
</sitemap>';
}
$sitemapIndex .= '</sitemapindex>';
file_put_contents('sitemap_index.xml', $sitemapIndex);
echo $sitemapIndex;
}
?>Anon7 - 2022
AnonSec Team