blob: d77e1e23e1bc756b70530d4e386e16ddc2959104 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<?php
require 'functions.php';
ob_start("sanitize_output");
require 'db.php';
$url = $db->get($_GET["goto"]);
if( ! $url || $url == "" ){
do_output("<p>This url wasn't found on this server.</p>", "404 Not Found", false, "<h1>404 - Not found</h1>");
}
header($_SERVER['SERVER_PROTOCOL'] . " 301 Moved Permanently");
header("Location: ".$url);
exit;
|