<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
echo"
<divclass=\"alert alert-warning\" id=\"warning\">
Yourlink:<ahref=\"$link\">
<spanclass=\"longlink\">$link</span></a> is not a lob.li link and has not been shortened.
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>");
<!--<ahref=\"#\" 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!-Thesanitizefunctionseemstohavefailed.Thisshouldn'thappen,maybe<ahref=\"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>";