diff options
| author | Horus3 | 2014-11-10 12:11:17 +0100 |
|---|---|---|
| committer | Horus3 | 2014-11-10 12:11:17 +0100 |
| commit | 771f805803f0cd67730ebbc7cb63e2312e4ca6c8 (patch) | |
| tree | ee537ecb393334e19dc9d7e589a2bb523ea37b17 /getheader.php | |
| download | httpheader-771f805803f0cd67730ebbc7cb63e2312e4ca6c8.tar.gz | |
init
Diffstat (limited to 'getheader.php')
| -rw-r--r-- | getheader.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/getheader.php b/getheader.php new file mode 100644 index 0000000..a27400e --- /dev/null +++ b/getheader.php @@ -0,0 +1,12 @@ +<?php + +require 'function.php'; + +if($_SERVER['REQUEST_METHOD'] != "POST"){ + header($_SERVER['SERVER_PROTCOL'] . " 301 Moved"); + header("Location: /"); + exit; +} + +$header = getHeader($_POST['url']); + |
