connect_errno > 0) die('Unable to connect to database [' . $shortdb->connect_error . '] - Check dbsettings.php'); // This has been depreciated. Still here for backwards compatibility with existing links if(!empty($_GET['l'])){ $link = $shortdb->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()){ $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()){ $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...

Oh noes! An error has occured.
Your link: lob.li/12345