0,0 → 1,20 |
<?php |
|
$files = glob(__DIR__.'/../*.htm'); |
$files = array_merge($files,glob(__DIR__.'/../doc/*.htm')); |
$files = array_merge($files,glob(__DIR__.'/../gestion/*.htm')); |
$files = array_merge($files,glob(__DIR__.'/../errors/*.htm')); |
|
file_put_contents('../test_sitemap.htm',''); |
|
foreach ($files as $file) { |
|
$file = substr($file, strlen(__DIR__.'/../')); |
|
if (strpos($file,'__') === 0) continue; |
if (strpos($file, ".raw.") !== false) continue; |
|
file_put_contents('../test_sitemap.htm','<a href="'.$file.'">'.$file.'</a><br>'."\n", FILE_APPEND); |
} |
|
echo "Done.\n"; |