rtoss - Blame information for rev 48

Subversion Repositories:
Rev:
Rev Author Line No. Line
48 roytam 1 <?php
2 if(isset($_GET['sitemap'])) {
3  header('Content-Type: text/xml');
4  echo '<'.'?xml version="1.0" encoding="UTF-8"?>
5 <urlset xmlns="http://www.google.com/schemas/sitemap/0.84" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84&#13;&#10;http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
6 ';
7  
8  $f = glob('*');
9  foreach ($f as $fi) {
10   if(strpos($fi,'.php')===false && strpos($fi,'.html')===false)
11    echo '<url>
12 <loc>http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/'.$fi.'</loc>
13 </url>
14 ';
15  }
16  echo '</urlset>';
17 }
18 else
19  header('Location: home.html');
20 ?>