Remove Delete link option and unps.core.js

Based on statistics, the Delete option is never used, so it's useless
unps.core.js contains code primarly to change submit button to reflect
current selected option
This commit is contained in:
Arctic Code
2014-03-01 20:47:27 -06:00
parent fe9ed5e198
commit 3d04529e5a
2 changed files with 11 additions and 17 deletions

View File

@@ -34,17 +34,6 @@
}
echo $unpsAPI->shorten($apidb, $key, $shortdb, $short);
break;
case "dellink":
if(empty($_POST['password'])) die("<div id=\"error\">Something went wrong somewhere, but there's no password here</div>");
$link = sanitize($_POST['link']);
$password = sanitize($_POST['password']);
$link = explode("=", $link);
if(count($link) != 2){
die("<div id=\"error\">I'm sorry, but something went wrong... did you paste the whole link?</div>");
}
$link = $link[1];
echo $unpsAPI->delShort($apidb, $key, $shortdb, $link, $password);
break;
default:
die("<div id=\"error\">I don't know what you want to do... [-Check linkmod-]</div>");
}