'.$url; header("HTTP/1.0 200 OK"); $vivod=file_get_contents($addr); if ($vivod==''){$vivod=file_get_contents('.'.$url.'.css');} if ($vivod==''){$vivod=file_get_contents('.'.$url.'.html');} if ($vivod==''){$vivod=file_get_contents('.'.$url.'');} if ($vivod==''){$vivod=file_get_contents('.'.$url.'/index.html');} if ($vivod=='' and $type!==false){$url=strstr($url, '?', true); $vivod=file_get_contents('.'.$url.'');} if (isset($_GET['p']) && is_numeric($_GET['p'])) { $vivod = file_get_contents('./index.html');} $allHeaders = getallheaders(); $cont=$allHeaders['Accept']; if (strpos($cont, 'text/html')!==false){ $vivod = str_replace("https://www.", "https://", $vivod); $vivod = str_replace("http://www.", "https://", $vivod); $vivod = str_replace("http://", "https://", $vivod); //$vivod = iconv('windows-1251//IGNORE', 'utf-8//IGNORE', $vivod); } if (strpos($url, 'yandex')!==false){ echo file_get_contents('.'.$url.''); exit();} $vivod = preg_replace_callback('/]*>(.*?)<\/article>/is', function ($matches) { return preg_replace('/]*>/i', '', $matches[0]); }, $vivod); if ($vivod == '') { $urjson = $_SERVER["REQUEST_URI"]; $urjson = str_replace(["/", ".html"], "", $urjson); $dir = '1/' . $urjson . '.json'; if (file_exists($dir)) { $filenameWithoutExtension = pathinfo($dir, PATHINFO_FILENAME); $jsonContent = file_get_contents($dir); $jsonData = json_decode($jsonContent, true); $fileData = ['title' => $jsonData['title'], 'image' => $jsonData['image'], 'header' => $jsonData['name'], 'description' => $jsonData['description'], 'text' => $jsonData['text'], 'filename' => $filenameWithoutExtension, 'time' => filemtime($dir)]; $fileData['time'] = isset($jsonData['pubtime']) && !empty($jsonData['pubtime']) ? $jsonData['pubtime'] : filemtime($dir); $vivod = file_get_contents('shabl.html'); $vivod = str_replace(["https://www.", "http://www.", "http://"], "https://", $vivod); $vivod = str_replace(["{title}", "{image}", "{description}", "{header}", "{body}", "{url}", "{date}"], [$fileData['title'], "", $fileData['description'], $fileData['header'], "".$fileData['text'], $fileData['filename'], date("d.m.Y", $fileData['time'] - 5 * 60 * 60)], $vivod);}} if (strpos($vivod, '










') !== false) { $dir = '1/'; $files = array_diff(scandir($dir), ['..', '.']); $fileData = []; foreach ($files as $file) { $filenameWithoutExtension = pathinfo($file, PATHINFO_FILENAME); $filePath = $dir . $file; $jsonContent = file_get_contents($filePath); $jsonData = json_decode($jsonContent, true); if ($jsonData['enabl'] == '1') {$fileData[] = ['title' => $jsonData['title'], 'filename' => $filenameWithoutExtension, 'time' => filemtime($filePath), 'image' => $jsonData['image']];}} usort($fileData, fn($a, $b) => $b['time'] - $a['time']); $page = isset($_GET['p']) ? max(1, intval($_GET['p'])) : 1; $perPage = 10; $total = count($fileData); $totalPages = ceil($total / $perPage); $start = ($page - 1) * $perPage; $paginatedData = array_slice($fileData, $start, $perPage); $output = ''; if (strpos($_SERVER['HTTP_USER_AGENT'], 'cp9adminlol') !== false) {$output .= '
добавить или редактировать статью

';} foreach ($paginatedData as $data) { if($data['image']!=''){$data['image'] = ' '.$data['title'].''; } $output .= '

'.$data['title'].'


'.$data['image'].'

';} $output .= '
';$vivod = str_replace('










', $output, $vivod);} $vivod = str_replace('', '', $vivod); $vivod = str_replace(['-', '-', '"', '"', '"', '"', '"', '', '...', ' '], ['-', '-', '"', '"', '"', '"', '"', '', '...', ' '], $vivod); $vivod = str_replace("", "", $vivod); $vivod = str_replace('irksimvol.ru', 'irksimvol.ru', $vivod); $vivod = str_replace('Irksimvol', 'Irksimvol', $vivod); $vivod = str_replace('', '', $vivod); //$vivod = str_replace('', '', $vivod); //$vivod = str_replace('', '', $vivod); //$vivod = str_replace('', '', $vivod); $vivod = str_replace("", "", $vivod); $vivod = str_replace("", "", $vivod); $vivod = preg_replace('/window._wpemojiSettings.*?<\/style>/is', '', $vivod); $nm=$_SERVER[SERVER_NAME]; $nm = str_replace('.ru', '', $nm); $vivod = str_replace('
Для любых предложений по сайту: irksimvol@cp9.ru
', '
Для любых предложений по сайту: '.$nm.'@cp9.ru
Для любых предложений по сайту: irksimvol@cp9.ru
', $vivod); $vivod = str_replace('91229158', '91229158', $vivod); $vivod = str_replace('
Для любых предложений по сайту: irksimvol@cp9.ru
', '
Для любых предложений по сайту: irksimvol@cp9.ru
', $vivod); $vivod = str_replace('', '', $vivod); $rezka='