'image/jpeg', 'gif' => 'image/gif', ); if (in_array($pp['extension'], array_keys($arr))) header('Content-Type: '.$arr[$pp['extension']]); //header('Content-Type: '.mime_content_type($file)); include("{$_SERVER['DOCUMENT_ROOT']}/links/index.php"); //iconv('windows-1251', 'utf-8', $echo_links); if (stripos($content, '
') !== false) $content = str_ireplace('
', '
'.$echo_links.'
', $content); else $content .= '
'.$echo_links; echo $content; function show404($comment = '') { $message = 'Запрашиваемая страница не найдена'; $heading = "404 Страница не найдена"; header("HTTP/1.1 404 Not Found"); header("Status: 404 Not Found"); $_SERVER['REDIRECT_STATUS'] = 404; echo << {$heading}

{$heading}

{$message}
{$comment}


EOT; exit(0); }