mirror of
https://github.com/gamaio/unps.us-Shortener.git
synced 2025-07-30 13:50:17 +00:00
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:
11
process.php
11
process.php
@@ -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>");
|
||||
}
|
||||
|
Reference in New Issue
Block a user