Sanatize() - No Input Provided, Aborting"); include('api/dbsettings.php'); $output = strip_tags($input); $output = stripslashes($output); $output = $apidb->real_escape_string($output); return $output; } $unpsAPI = new api(); if(!empty($_POST['link']) && !empty($_POST['linkmod'])){ 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 http://unps.us.
"); } switch ($_POST['linkmod']){ case "shorten": $short = sanitize($_POST['link']); if(strpos($short, "http://") === false && strpos($short, "https://") === false){ $short = "http://$short"; } echo $unpsAPI->shorten($short); break; default: die("
I don't know what you want to do... [-Check linkmod-]
"); } }else{ die("
I can't do my job if I'm not given a link to work on...
"); } ?>