From b784347291ae6b7cecd807f470fcc21ff40fab84 Mon Sep 17 00:00:00 2001 From: Arctic Code Date: Wed, 29 Jan 2014 01:45:00 -0600 Subject: [PATCH] Change shortened links to reflect last commit on index.php All future shortened links will be unps.us/?id --- 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 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; }