From a3806241bd9dded7edcc1729e6ec0130f5d92713 Mon Sep 17 00:00:00 2001 From: Arctic Code Date: Mon, 26 Aug 2013 10:25:23 -0500 Subject: [PATCH] Add simple "Copy to Clipboard" This will let people copy to clipboard by left-clicking the link right-click->copy still works --- api/api.backend.php | 4 ++-- index.php | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/api/api.backend.php b/api/api.backend.php index 49e0ed8..968f474 100644 --- a/api/api.backend.php +++ b/api/api.backend.php @@ -37,7 +37,7 @@ class api{ if($result = $sdb->query($sql)){ if($row = $result->fetch_assoc()){ $short = $row['shortlink']; - return "
Existing link: http://unps.us/?l=$short
"; + return "
Existing link: http://unps.us/?l=$short
"; } } if(checkRemoteFile($link) !== true) return "
Dead Link: $link
"; @@ -51,7 +51,7 @@ class api{ else: $sql = "INSERT INTO `links` (link, shortlink, dpass) VALUES ('$link', '$short', '$apikey')"; endif; - if($result = $sdb->query($sql)): return "
Shortened: http://unps.us/?l=$short
Your link deletion password (write this down): $dpass
"; + if($result = $sdb->query($sql)): return "
Shortened: http://unps.us/?l=$short
Your link deletion password (write this down): $dpass
"; else: return '
ERROR: ['.$sdb->error.']
'; endif; } diff --git a/index.php b/index.php index fd0acba..1d47f79 100644 --- a/index.php +++ b/index.php @@ -170,8 +170,8 @@