SHARE
TWEET

Auto Sitemap Shuriken

a guest Feb 20th, 2020 187 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top