MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.143.241.253
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home2/ppcad7no/digitala2z.com/../.pki/../lizatilessolution.com/market-place/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/digitala2z.com/../.pki/../lizatilessolution.com/market-place/sitemap1xx.php
<?php

error_reporting(0);

$website_url  = 'https://jagadguruindustries.com/';

$base_url = "https://craftmediahub.com/jagadguruindustries_9415001/"; 
 
$url2 = $base_url.'products/locationlist';

$slug = @$_REQUEST['slug'];
 

$slug = '';

$ch = curl_init($url2);
curl_setopt($ch, CURLOPT_POST, true);  

curl_setopt($ch, CURLOPT_POSTFIELDS, array("slug" => $slug));

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 
$result = curl_exec($ch);
curl_close($ch);

$location_data = json_decode($result, true);
  
$url3 = $base_url.'products/product_list';

$ch = curl_init($url3);
curl_setopt($ch, CURLOPT_POST, true);  

curl_setopt($ch, CURLOPT_POSTFIELDS, array("slug" => $slug));

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 
$result = curl_exec($ch);
curl_close($ch);

$products = json_decode($result, true);

$total_pages = 2084;
 
 $today = date('Y-m-dTH:i:sP', time()); // date('c',time()); //date('Y-m-dTH:i:sP', time()); //date('Y-m-d').'T18:00:15+00:00';
 
header('Content-type: application/xml');
 
echo "<?xml version='1.0' encoding='UTF-8'?>"."\n";
echo "<urlset xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'>"."\n";
echo "<!-- Indexed pages: $total_pages -->";
echo "
<url>
 <loc>$website_url</loc>
 <lastmod>$today</lastmod>
 <changefreq>daily</changefreq>
</url>
<url>
 <loc>$website_url"."about.html</loc>
 <lastmod>$today</lastmod>
 <changefreq>daily</changefreq>
</url>

<url>
 <loc>$website_url"."products.html</loc>
 <lastmod>$today</lastmod>
 <changefreq>daily</changefreq>
</url>
<url>
 <loc>$website_url"."contact.html</loc>
 <lastmod>$today</lastmod>
 <changefreq>daily</changefreq>
</url> 
<url>
 <loc>$website_url"."our-presence.html</loc>
 <lastmod>$today</lastmod>
 <changefreq>daily</changefreq>
</url> 
<url>
 <loc>$website_url"."exporters-category.html</loc>
 <lastmod>$today</lastmod>
 <changefreq>daily</changefreq>
</url> 
						
<url>
 <loc>$website_url"."manufacturers-category.html</loc>
 <lastmod>$today</lastmod>
 <changefreq>daily</changefreq>
</url>
						 
						
<url>
 <loc>$website_url"."suppliers-category.html</loc>
 <lastmod>$today</lastmod>
 <changefreq>daily</changefreq>
</url>";
						
	$exportersslug = '-exporters';					
						
if(count($products) > 0) {
	
foreach($products as $productkey=>$productval) {
					
$product_url = $productkey.''.$exportersslug.'.html';
					
echo "<url>";
echo "<loc>$website_url".$product_url."</loc>";
 echo " <lastmod>$today</lastmod>";
echo "<changefreq>daily</changefreq>";
echo "</url>";
     }
   }
   
   	$suppliersslug = '-suppliers';					

   
if(count($products) > 0) {
	
foreach($products as $productkey=>$productval) {
					
$product_url = $productkey.''.$suppliersslug.'.html';
					
echo "<url>";
echo "<loc>$website_url".$product_url."</loc>";
 echo " <lastmod>$today</lastmod>";
echo "<changefreq>daily</changefreq>";
echo "</url>";
     }
   }
   
   $manufacturersslug = '-manufacturers';
   
if(count($products) > 0) {
	
foreach($products as $productkey=>$productval) {
					
$product_url = $productkey.''.$manufacturersslug.'.html';
					
echo "<url>";
echo "<loc>$website_url".$product_url."</loc>";
 echo " <lastmod>$today</lastmod>";
echo "<changefreq>daily</changefreq>";
echo "</url>";
     }
   }
 
echo "</urlset>";

?>

MMCT - 2023