Skip to content

Commit

Permalink
Update ul.php
Browse files Browse the repository at this point in the history
  • Loading branch information
biscoe916 committed May 29, 2013
1 parent 47d0f37 commit d98288b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ul.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
$url = urldecode($_GET["img_url"]);
$sk = urldecode($_GET["secret_key"]);
$file_path = urldecode($_GET["directory"]).rand(1,9999).basename($url);
$return = array("resp_str" => $_GET["resp_str"]);
$resp_str = $_GET["resp_str"]
$return = array("resp_str" => $resp_str);
if(!$url || !$file_path || !$sk || !$resp_str) { // Ensure we have all of the required data
$return["status"] = "failed";
$return["fail_reason"] = "Missing Data";
Expand All @@ -21,4 +22,5 @@
$return["fail_reason"] = "Unknown Error";
}
}
echo 'pResponse('.json_encode($return).')';
?>

0 comments on commit d98288b

Please sign in to comment.