Guest User

Auto Sitemap Shuriken

a guest
Feb 20th, 2020
294
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. header("Content-type: text/xml");
  3. $sitemapBox="<?xml version='1.0' encoding='UTF-8'?><urlset xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'>";
  4. foreach(glob('data/*.php') as $page){
  5.     $sitemap = explode('data/',$page);
  6.     $sitemap = explode('srz.php',$sitemap[1]);
  7.     $sitemapBox .= "<url><loc>https://shuriken.cc/$sitemap[0]html</loc></url>";
  8. }
  9. $sitemapBox .= "</urlset>";
  10. echo $sitemapBox;
  11. exit();
  12. ?>
RAW Paste Data