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.
",
"
Your Resolved link:
$link
",
"
Your link:
$link is not a lob.li link.
However we found that it has been shortened.
lob.li/$short
",
"
Your link:
$link is not a lob.li link and has not been shortened.
"
);
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
lob.li.
");
}
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);
foreach($messages as $message){
echo $message;
}
}else{ die("I can't do my job if I'm not given a link to work on...
"); }
?>