real_escape_string(strtolower(stripslashes(strip_tags($_GET['l'])))); $link = str_replace('/', '', $link); $sql = "SELECT * FROM `links` WHERE `shortlink` = '$link' LIMIT 1;"; if($result = $shortdb->query($sql)){ if($row = $result->fetch_assoc()){ tracking($sdb, $link); $link = $row['link']; header("location:$link"); exit(5); // Stop script execution to save on resources } } } // New way to check for valid short links, two characters shorter than the if statement above if(!empty($_GET)){ $key = key($_GET); if($key == "stats"){ header("location:http://s.lob.li"); exit(11); } if($key == "resolv"){ header("location:http://r.lob.li"); exit(12); } if($key == "about"){ header("location:http://a.lob.li"); exit(13); } $link = $shortdb->real_escape_string(strtolower(stripslashes(strip_tags($key)))); $link = str_replace('/', '', $link); $sql = "SELECT * FROM `links` WHERE `shortlink` = '$link' LIMIT 1;"; if($result = $shortdb->query($sql)){ if($row = $result->fetch_assoc()){ tracking($sdb, $link); $link = $row['link']; header("location:$link"); exit(5); // Stop script execution to save on resources } } } ?> lob.li - Objective Links

Please give me a link to shorten...

loading.... Please Wait