1
0
mirror of https://github.com/Chouchen/shorturl.git synced 2018-06-07 06:34:38 +02:00

Creation of the world.

This commit is contained in:
Shikiryu
2010-12-23 11:26:25 +00:00
commit 0cb5bac454
12 changed files with 922 additions and 0 deletions

17
redir.php Normal file
View File

@@ -0,0 +1,17 @@
<?
session_start();
include 'class/ShortURL.php';
$url = new ShortURL();
$name = $_GET['name'];
$_SESSION['msg'] = '';
$ret = $url->findThisUrl($name);
if($ret == null){
header("Location: 404.html");
}else{
header("Location: ".$ret[0]);
}