Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $html = glob("*html");
- $html = array_diff($html, array('index.html'));
- srand(crc32(md5($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])));
- $limit = rand(25,35);
- shuffle($html);
- $html = array_slice($html, 0, $limit);
- foreach($html as $page){
- list($name, $ext) = explode(".", $page);
- $name = str_replace("-", " ", $name);
- echo "<a href=\"/${page}\">${name}</a></br>\n";
- }
Add Comment
Please, Sign In to add comment