From 4807406cdf9527e1341ddb0af09450c8b0f17496 Mon Sep 17 00:00:00 2001 From: Arctic Code Date: Mon, 26 Aug 2013 09:33:52 -0500 Subject: [PATCH] Add #success div to successful actions This is to fix the alignment and for color coding advantages --- api/api.backend.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/api.backend.php b/api/api.backend.php index 29d53b1..49e0ed8 100644 --- a/api/api.backend.php +++ b/api/api.backend.php @@ -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; } @@ -81,7 +81,7 @@ class api{ if($apikey == $password){ $sql = "DELETE FROM `links` WHERE `shortlink` = '$link' AND `dpass` = '$apikey' LIMIT 1;"; if(!$result = $sdb->query($sql)) return '
ERROR: ['.$sdb->error.'
]'; - echo "Deleted: $link"; + echo "
Deleted: $link
"; return; }else{ return "
The password doesn't match. Delete $link aborted!
"; } } @@ -104,7 +104,7 @@ class api{ $sql = "INSERT INTO `manual` (time, apikey, ip, link, reason) VALUES(NOW(), '$apikey', '$ip', '$link', '$reason');"; if(!$result = $sdb->query($sql)) return '
ERROR: ['.$sdb->error.']
'; - return "Reported $link. Please check back in a day or two"; + return "
Reported $link. Please check back in a day or two
"; } // End Short