Subversion Repositories oidinfo_new_design

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. <?php
  2.  
  3. $files = glob(__DIR__.'/../*.htm');
  4. $files = array_merge($files,glob(__DIR__.'/../doc/*.htm'));
  5. $files = array_merge($files,glob(__DIR__.'/../gestion/*.htm'));
  6. $files = array_merge($files,glob(__DIR__.'/../errors/*.htm'));
  7.  
  8. file_put_contents('../test_sitemap.htm','');
  9.  
  10. foreach ($files as $file) {
  11.  
  12.         $file = substr($file, strlen(__DIR__.'/../'));
  13.  
  14.         file_put_contents('../test_sitemap.htm','<a href="'.$file.'">'.$file.'</a><br>'."\n", FILE_APPEND);
  15. }
  16.  
  17. echo "Done.\n";
  18.