403Webshell
Server IP : 192.169.170.185  /  Your IP : 216.73.216.97
Web Server : Apache
System : Linux p3plmcpnl495852.prod.phx3.secureserver.net 4.18.0-553.52.1.lve.el8.x86_64 #1 SMP Wed May 21 15:31:29 UTC 2025 x86_64
User : akhilnew ( 1712764)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/akhilnew/public_html/fisheriesjournal/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/akhilnew/public_html/fisheriesjournal/sitemap_archives_2023.php
<?php
require_once('inc/config.php');
header("Content-Type: application/xml; charset=utf-8");
echo '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL;
echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . PHP_EOL;

$stmt = $mysqli->prepare("SELECT archivesid, year, refnumber, volume, issue, part, file FROM archives WHERE (year = 2023 AND status = 'enabled')") or die("An error occurred. Please try after some time.");
$stmt->execute();
$stmt->store_result();
$stmt->bind_result($archivesid, $year, $refnumber, $volume, $issue, $part, $file);
while ($stmt->fetch()) {
echo "<url>" . PHP_EOL;
echo "<loc>{$baseurl}archives/?year={$year}&amp;vol={$volume}&amp;issue={$issue}&amp;part={$part}</loc>" . PHP_EOL;
echo "<lastmod>" . date('Y-m-d') . "</lastmod>" . PHP_EOL;
echo "<changefreq>monthly</changefreq>" . PHP_EOL;
echo "<priority>0.8</priority>" . PHP_EOL;
echo "</url>" . PHP_EOL;

echo "<url>" . PHP_EOL;
echo "<loc>{$baseurl}archives/?year={$year}&amp;vol={$volume}&amp;issue={$issue}&amp;part={$part}&amp;ArticleId={$archivesid}</loc>" . PHP_EOL;
echo "<lastmod>" . date('Y-m-d') . "</lastmod>" . PHP_EOL;
echo "<changefreq>monthly</changefreq>" . PHP_EOL;
echo "<priority>0.8</priority>" . PHP_EOL;
echo "</url>" . PHP_EOL;

echo "<url>" . PHP_EOL;
echo "<loc>{$archivesdir}{$year}/vol{$volume}issue{$issue}/Part{$part}/{$file}</loc>" . PHP_EOL;
echo "<lastmod>" . date('Y-m-d') . "</lastmod>" . PHP_EOL;
echo "<changefreq>monthly</changefreq>" . PHP_EOL;
echo "<priority>0.8</priority>" . PHP_EOL;
echo "</url>" . PHP_EOL;
}
$stmt->close();

echo '</urlset>' . PHP_EOL;

Youez - 2016 - github.com/yon3zu
LinuXploit