Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
28 | daniel-mar | 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 | if (strpos($file,'__') === 0) continue; |
||
15 | if (strpos($file, ".raw.") !== false) continue; |
||
16 | |||
17 | file_put_contents('../test_sitemap.htm','<a href="'.$file.'">'.$file.'</a><br>'."\n", FILE_APPEND); |
||
18 | } |
||
19 | |||
20 | echo "Done.\n"; |