Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ALL);
- ignore_user_abort(true);
- ini_set('display_errors', 'on');
- ini_set('error_log','error_log.txt');
- header('Content-Type: text/html; charset=UTF-8');
- require_once('../api4door/db/conf.php');
- // функция генерации рандомной хуйни:
- function randsub($count) {
- $symbols = "qwertyuiopasdfghjklzxcvbnm1234567890";
- $word = ''; $i = 0;
- $count = $count - 1;
- while($i<=$count) {
- $word .= $symbols[mt_rand(0, strlen($symbols)-4)];
- $i++;
- }
- return $word;
- }
- // домены:
- $doorhost = file('../api4door/db/url.txt');
- shuffle($doorhost);
- $i = 1;
- foreach ($doorhost as $line) {
- $dor = randsub($subsize).'.'.trim($line);
- $linkhost[] = '<a href="http://'.$dor.'/">'.$dor.'</a> ';
- $i++;
- if ($i == 25) break;
- }
- $nosub = file('../api4door/db/nosub.txt');
- shuffle($nosub);
- $i = 1;
- foreach ($nosub as $line) {
- $line = trim($line);
- $linkhost[] = '<a href="http://'.$line.'/">'.$line.'</a> ';
- $i++;
- if ($i == 10) break;
- }
- $linkhost = implode("\n ", $linkhost);
- echo '<!DOCTYPE html>
- <html lang="ru">
- <head>
- <meta charset="utf-8">
- <title>Карта сайта</title>
- </head>
- <body>'.$linkhost.'</body>
- </html>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement