mirror of
https://github.com/gamaio/unps.us-Shortener.git
synced 2024-12-22 02:02:40 +00:00
Remove Delete link password
This may get reimplemented so that people can delete links if they want to. Probably as part of the user model.
This commit is contained in:
parent
10d2b06223
commit
3040f69456
@ -72,7 +72,7 @@ class api{
|
|||||||
else: $sql = "INSERT INTO `links` (link, shortlink, dpass) VALUES ('$link', '$short', '$apikey')";
|
else: $sql = "INSERT INTO `links` (link, shortlink, dpass) VALUES ('$link', '$short', '$apikey')";
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
if($result = $sdb->query($sql)): return "<div id=\"success\">Shortened: <a onclick=\"copyToClipboard('http://unps.us/?$short');\" href=\"http://unps.us/?$short\" target=\"$short\">http://unps.us/?$short</a><br />Your link deletion password (write this down): $dpass</div>";
|
if($result = $sdb->query($sql)): return "<div id=\"success\">Shortened: <a onclick=\"copyToClipboard('http://unps.us/?$short');\" href=\"http://unps.us/?$short\" target=\"$short\">http://unps.us/?$short</a>";
|
||||||
else: return '<div id="error">ERROR: ['.$sdb->error.']</div>';
|
else: return '<div id="error">ERROR: ['.$sdb->error.']</div>';
|
||||||
endif;
|
endif;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user