Your link: lob.li/$short
",
"
",
"
ERROR! - Your link:
$link didn't resolve to a website.
Please check your link and try again.
",
"
ERROR! - Well this is embarrassing... This never happens, but I appear to have suffered a database error.
Here's what I know: $error
",
"
ERROR! - The sanitize function seems to have failed. This shouldn't happen, maybe
c0de forgot a semi-colon somewhere or something.
"
);
if(empty($_GET['token']) || $_GET['token'] != $_SESSION['token'] || empty($_POST[$catchid]) || $_POST[$catchid] != $catchVal){
die("Oh Noes! Something happened and I can't continue.
Please try again by using the form located at
http://unps.us.
");
}
require('Include/PHP/functions.php');
if(!empty($_POST['link'])){
$short = sanitize($_POST['link']);
if(strpos($short, "http://") === false && strpos($short, "https://") === false){
$short = "http://$short";
}
//echo shorten($shortdb, $short);
}
}else{ die("I can't do my job if I'm not given a link to work on...
"); }
?>