<spanclass=\"longlink2\">$link</span></a> is not a lob.li link.<br> However we found that it has been shortened. <a href=\"http://lob.li/$short\"title=\"$title\">lob.li/$short</a>
die("<div id=\"danger\" class=\"alert alert-danger\">Oh Noes! Something happened and I can't continue.<br />Please try again by using the form located at <a href=\"http://lob.li\">lob.li</a>.</div>");
}
$link=$_POST['link'];
$trTtl=$redis->ttl("links:$link");
if($trTtl==-2){// Didn't find links:linkid, checking if long link
$trTtl=$redis->ttl("llinks:$link");
if($trTtl==-2){// Didn't find that either, give error
die("<div id=\"danger\" class=\"alert alert-danger\">Oh Noes! Something happened and I can't continue.<br />Please try again by using the form located at <a href=\"http://lob.li\">lob.li</a>.</div>");
<!--<a href=\"#\" id=\"newlink\" title=\"New Link\"> This would require changing how I generate links, and I don't feel like doing it right now - 6/22/12 1:21am EST
ERROR! - Your link: <a href=\"$link\"target=\"$link\">$link</a>didn't resolve to a website. <br />Please check your link and try again.
</div>
";
break;
case "3": // DB Error
$error = $reShort[1];
echo "
<div class=\"alert alert-danger\" id=\"danger\">
ERROR! - Well this is embarrassing... This never happens, but I appear to have suffered a database error. <br />Here'swhatIknow:$error
</div>
";
break;
case "4": // Sanitize Failure Error
echo "
<divclass=\"alert alert-danger\" id=\"danger\">
ERROR! - The sanitize function seems to have failed. This shouldn't happen, maybe <a href=\"mailto:c0de@unps.us\">c0de</a> forgot a semi-colon somewhere or something.
</div>
";
break;
default:
echo"<div id=\"danger\" class=\"alert alert-danger\">Oh Noes! Something happened and I can't continue.<br />Please try again by using the form located at <a href=\"http://lob.li\">lob.li</a>.</div>";