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