diff --git a/api/api.backend.php b/api/api.backend.php index 3bea16e..8a64381 100644 --- a/api/api.backend.php +++ b/api/api.backend.php @@ -26,7 +26,7 @@ function checkRemoteFile($ip=null){ curl_setopt($curlInit, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($curlInit, CURLOPT_HEADER, true); curl_setopt($curlInit, CURLOPT_RETURNTRANSFER, true); - curl_setopt($curlInit, CURLOPT_USERAGENT, 'UnPS-GAMATechnologies (UnPS WebQuery/4-2.8; +http://unps.us)'); + curl_setopt($curlInit, CURLOPT_USERAGENT, 'UnPS-GAMATechnologies (UnPS WebQuery/4-2.9; +http://unps.us)'); curl_setopt($curlInit, CURLOPT_HTTPHEADER, $header); $response = curl_exec($curlInit); @@ -58,7 +58,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/?$short
"; } } if(checkRemoteFile($link) !== true) return "
Dead Link: $link
"; @@ -72,7 +72,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/?$short
Your link deletion password (write this down): $dpass
"; else: return '
ERROR: ['.$sdb->error.']
'; endif; }