blob: 8beeb90fbbeadb8034a306a07a75b2915239124d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<?php
require 'function.php';
if($_SERVER['REQUEST_METHOD'] != "POST"){
header($_SERVER['SERVER_PROTCOL'] . " 301 Moved");
header("Location: /");
exit;
}
$header = getHeader($_POST['url']);
if ( ! $header ){
$header = "Couldn't retrieve URL. Please check if the website is available and try again.";
}
|