ÿØÿàJFIFÿÛ„ ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/oladi/code/sitemap/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/oladi/code/sitemap/list.php
<?php
global $DB,$INFO;
$query = $DB->query("SELECT menus_id,menus_parentid,menus_fname,time_post FROM tb_menus ORDER BY `menus_pos` ASC");
$txt_menu = '';
while($row = $DB->fetch_row($query))
{
    $categories[] = $row;
}
header('Content-type: text/xml');
echo '<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="'.$INFO['home_url'].'sitemap.xsl"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
echo '<url>
                  <loc>'.$INFO['home_url'].'home/index.xml</loc>
                  <lastmod>'.date('Y-m-d').'</lastmod>
                  <changefreq>monthly</changefreq>
                  <priority>0.8</priority>
               </url>
               <url>
                  <loc>'.$INFO['home_url'].'recommend/index.xml</loc>
                  <lastmod>'.date('Y-m-d').'</lastmod>
                  <changefreq>monthly</changefreq>
                  <priority>0.8</priority>
               </url>
               <url>
                  <loc>'.$INFO['home_url'].'hot/index.xml</loc>
                  <lastmod>'.date('Y-m-d').'</lastmod>
                  <changefreq>monthly</changefreq>
                  <priority>0.8</priority>
               </url>
               ';
foreach($categories as $key=>$row) {
    if ($row['menus_parentid'] == 0) {
        $v_tmp_parent_id = $row['menus_id'];
        $arr_sub = array();
        foreach ($categories as $key2 => $row2) {
            if ($v_tmp_parent_id == $row2['menus_parentid']) {
                $arr_sub[] = array( 'menus_fname' => $row2['menus_fname'],
                    'time_post' => $row2['time_post']
                );
            }
        }
        if($row['menus_fname']=='genres'){
            foreach($arr_sub as $val3){
                echo '<url>
                  <loc>'.$INFO['home_url'].'g/'.$val3['menus_fname'].'.xml</loc>
                  <lastmod>'.date('Y-m-d',strtotime($val3['time_post'])).'</lastmod>
                  <changefreq>monthly</changefreq>
                  <priority>0.8</priority>
               </url>';
            }
        }
        /*if($row['menus_fname']=='rank'){
            foreach($arr_sub as $val3){
                echo '<url>
                  <loc>'.$INFO['home_url'].'s/'.$val3['menus_fname'].'.xml</loc>
                  <lastmod>'.date('Y-m-d',strtotime($val3['time_post'])).'</lastmod>
                  <changefreq>monthly</changefreq>
                  <priority>0.8</priority>
               </url>';
            }
        }*/
    }else{

    }
}
echo '</urlset>';
exit();
?>

ZeroDay Forums Mini