Preview: sitemap-genrator.php
Size: 8.93 KB
/home/godevadmin/public_html/admin/sitemap-genrator.php
<?php
include("../include/config.php");
include("../include/functions.php");
validate_admin();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>Sitemap Generator</title>
<!-- favicon icon-->
<link rel="shortcut icon" href="images/favicon.ico">
</head>
<body>
<?php echo htmlentities("<urlset>"); echo "<br>"; ?>
<?php echo htmlentities("<url>");
echo htmlentities("<loc>"); echo SITE_URL; echo htmlentities("</loc>");
echo htmlentities("<changefreq>"); echo "daily";?><?php echo htmlentities("</changefreq>");
echo htmlentities("<priority>"); ?>1<?php echo htmlentities("</priority>");
echo htmlentities("</url>"); echo "<br>";?>
<?php echo htmlentities("<url>");
echo htmlentities("<loc>"); echo SITE_URL."local-grocery-store/"; echo htmlentities("</loc>");
echo htmlentities("<changefreq>"); echo "daily";?><?php echo htmlentities("</changefreq>");
echo htmlentities("<priority>"); ?>0.90<?php echo htmlentities("</priority>");
echo htmlentities("</url>"); echo "<br>";?>
<?php $sqlcategory=$obj->query("select * from tbl_maincategory where status=1 and parent_id=0");
while($reccategory=$obj->fetchNextObject($sqlcategory)){
echo htmlentities("<url>");
echo htmlentities("<loc>"); echo SITE_URL."local-grocery-store/".buildURL($reccategory->slug); echo htmlentities("</loc>");
echo htmlentities("<changefreq>"); echo "daily";?><?php echo htmlentities("</changefreq>");
echo htmlentities("<priority>"); ?>0.90<?php echo htmlentities("</priority>");
echo htmlentities("</url>"); echo "<br>";
} ?>
<?php echo htmlentities("<url>");
echo htmlentities("<loc>"); echo SITE_URL."mexican-grocery-store-chicago"; echo htmlentities("</loc>");
echo htmlentities("<changefreq>"); echo "daily";?><?php echo htmlentities("</changefreq>");
echo htmlentities("<priority>"); ?>0.90<?php echo htmlentities("</priority>");
echo htmlentities("</url>"); echo "<br>";?>
<?php echo htmlentities("<url>");
echo htmlentities("<loc>"); echo SITE_URL."indian-grocery-store-chicago"; echo htmlentities("</loc>");
echo htmlentities("<changefreq>"); echo "daily";?><?php echo htmlentities("</changefreq>");
echo htmlentities("<priority>"); ?>0.90<?php echo htmlentities("</priority>");
echo htmlentities("</url>"); echo "<br>";?>
<?php echo htmlentities("<url>");
echo htmlentities("<loc>"); echo SITE_URL."american-grocery-store-chicago"; echo htmlentities("</loc>");
echo htmlentities("<changefreq>"); echo "daily";?><?php echo htmlentities("</changefreq>");
echo htmlentities("<priority>"); ?>0.90<?php echo htmlentities("</priority>");
echo htmlentities("</url>"); echo "<br>";?>
<?php $sql=$obj->query("select * from stores where status=1 and in_stock=1");
while($rec=$obj->fetchNextObject($sql)){
echo htmlentities("<url>");
echo htmlentities("<loc>"); echo SITE_URL."store/".buildURL($rec->storename); echo htmlentities("</loc>");
echo htmlentities("<changefreq>"); echo "daily";?><?php echo htmlentities("</changefreq>");
echo htmlentities("<priority>"); ?>0.85<?php echo htmlentities("</priority>");
echo htmlentities("</url>"); echo "<br>";
} ?>
<?php echo htmlentities("<url>");
echo htmlentities("<loc>"); echo SITE_URL."about-myvalue365"; echo htmlentities("</loc>");
echo htmlentities("<changefreq>"); echo "daily";?><?php echo htmlentities("</changefreq>");
echo htmlentities("<priority>"); ?>0.50<?php echo htmlentities("</priority>");
echo htmlentities("</url>"); echo "<br>";?>
<?php echo htmlentities("<url>");
echo htmlentities("<loc>"); echo SITE_URL."contact"; echo htmlentities("</loc>");
echo htmlentities("<changefreq>"); echo "daily";?><?php echo htmlentities("</changefreq>");
echo htmlentities("<priority>"); ?>0.50<?php echo htmlentities("</priority>");
echo htmlentities("</url>"); echo "<br>";?>
<?php echo htmlentities("<url>");
echo htmlentities("<loc>"); echo SITE_URL."career"; echo htmlentities("</loc>");
echo htmlentities("<changefreq>"); echo "daily";?><?php echo htmlentities("</changefreq>");
echo htmlentities("<priority>"); ?>0.50<?php echo htmlentities("</priority>");
echo htmlentities("</url>"); echo "<br>";?>
<?php echo htmlentities("<url>");
echo htmlentities("<loc>"); echo SITE_URL."privacy-policy"; echo htmlentities("</loc>");
echo htmlentities("<changefreq>"); echo "daily";?><?php echo htmlentities("</changefreq>");
echo htmlentities("<priority>"); ?>0.50<?php echo htmlentities("</priority>");
echo htmlentities("</url>"); echo "<br>";?>
<?php echo htmlentities("<url>");
echo htmlentities("<loc>"); echo SITE_URL."seller/"; echo htmlentities("</loc>");
echo htmlentities("<changefreq>"); echo "daily";?><?php echo htmlentities("</changefreq>");
echo htmlentities("<priority>"); ?>0.50<?php echo htmlentities("</priority>");
echo htmlentities("</url>"); echo "<br>";?>
<?php echo htmlentities("<url>");
echo htmlentities("<loc>"); echo SITE_URL."blog"; echo htmlentities("</loc>");
echo htmlentities("<changefreq>"); echo "daily";?><?php echo htmlentities("</changefreq>");
echo htmlentities("<priority>"); ?>0.90<?php echo htmlentities("</priority>");
echo htmlentities("</url>"); echo "<br>";?>
<?php echo htmlentities("<url>");
echo htmlentities("<loc>"); echo SITE_URL."review-order"; echo htmlentities("</loc>");
echo htmlentities("<changefreq>"); echo "daily";?><?php echo htmlentities("</changefreq>");
echo htmlentities("<priority>"); ?>0.50<?php echo htmlentities("</priority>");
echo htmlentities("</url>"); echo "<br>";?>
<?php echo htmlentities("<url>");
echo htmlentities("<loc>"); echo SITE_URL."be-a-hero"; echo htmlentities("</loc>");
echo htmlentities("<changefreq>"); echo "daily";?><?php echo htmlentities("</changefreq>");
echo htmlentities("<priority>"); ?>0.80<?php echo htmlentities("</priority>");
echo htmlentities("</url>"); echo "<br>";?>
<?php echo htmlentities("<url>");
echo htmlentities("<loc>"); echo SITE_URL."forgot-password"; echo htmlentities("</loc>");
echo htmlentities("<changefreq>"); echo "daily";?><?php echo htmlentities("</changefreq>");
echo htmlentities("<priority>"); ?>0.50<?php echo htmlentities("</priority>");
echo htmlentities("</url>"); echo "<br>";?>
<?php
$sql=$obj->query("select * from stores where status=1 and in_stock=1");
while($rec=$obj->fetchNextObject($sql)){
$sqlcategory=$obj->query("select * from tbl_maincategory where status=1 and parent_id=0 and storeid like '%$rec->storeid%'");
while($reccategory=$obj->fetchNextObject($sqlcategory)){
echo htmlentities("<url>");
echo htmlentities("<loc>"); echo SITE_URL."chicago/".buildURL($reccategory->slug)."/".buildURL($rec->storename); echo htmlentities("</loc>");
echo htmlentities("<changefreq>"); echo "daily";?><?php echo htmlentities("</changefreq>");
echo htmlentities("<priority>"); ?>0.90<?php echo htmlentities("</priority>");
echo htmlentities("</url>"); echo "<br>";
} } ?>
<?php
$sql=$obj->query("select * from stores where status=1 and in_stock=1");
while($rec=$obj->fetchNextObject($sql)){
$sqlcategory=$obj->query("select * from tbl_maincategory where status=1 and parent_id=0 and storeid like '%$rec->storeid%'");
while($reccategory=$obj->fetchNextObject($sqlcategory)){
$sqlsubcategory=$obj->query("select * from tbl_maincategory where status=1 and parent_id='$reccategory->id'");
while($recsubcategory=$obj->fetchNextObject($sqlsubcategory)){
echo htmlentities("<url>");
echo htmlentities("<loc>"); echo SITE_URL."chicago/".buildURL($recsubcategory->slug)."/".buildURL($rec->storename); echo htmlentities("</loc>");
echo htmlentities("<changefreq>"); echo "daily";?><?php echo htmlentities("</changefreq>");
echo htmlentities("<priority>"); ?>0.89<?php echo htmlentities("</priority>");
echo htmlentities("</url>"); echo "<br>";
} } } ?>
<?php
$sql=$obj->query("select * from tbl_product where status=1");
while($rec=$obj->fetchNextObject($sql)){
echo htmlentities("<url>");
echo htmlentities("<loc>"); echo SITE_URL."grocery-store/".strtolower(preg_replace('/-+/', '-',buildURL(str_replace('&','-',$rec->product_name))))."/".$rec->id; echo htmlentities("</loc>");
echo htmlentities("<changefreq>"); echo "daily";?><?php echo htmlentities("</changefreq>");
echo htmlentities("<priority>"); ?>0.80<?php echo htmlentities("</priority>");
echo htmlentities("</url>"); echo "<br>";
} ?>
<?php
$sql=$obj->query("select * from tbl_blog where status=1");
while($rec=$obj->fetchNextObject($sql)){
echo htmlentities("<url>");
echo htmlentities("<loc>"); echo SITE_URL."blog/".$rec->id."/".buildURL(str_replace('&','-',$rec->title)); echo htmlentities("</loc>");
echo htmlentities("<changefreq>"); echo "daily";?><?php echo htmlentities("</changefreq>");
echo htmlentities("<priority>"); ?>0.90<?php echo htmlentities("</priority>");
echo htmlentities("</url>"); echo "<br>";
} ?>
</body>
</html>
Directory Contents
Dirs: 10 × Files: 414