SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | $html = glob("*html"); | |
3 | $html = array_diff($html, array('index.html')); | |
4 | srand(crc32(md5($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']))); | |
5 | $limit = rand(25,35); | |
6 | shuffle($html); | |
7 | $html = array_slice($html, 0, $limit); | |
8 | foreach($html as $page){ | |
9 | list($name, $ext) = explode(".", $page); | |
10 | $name = str_replace("-", " ", $name); | |
11 | echo "<a href=\"/${page}\">${name}</a></br>\n"; | |
12 | } |