Skip to content

Commit

Permalink
Now has a bit of error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
pjb304 committed Jul 18, 2016
1 parent 7e92050 commit 5b5e8bc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions reciever/upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ function lastIPv6Group($ipv6) {
for($i = 4; $i < 8; $i++){ //We want the last 4 sections of the IP address
$ip_str .= str_pad($tokens[$i], 4, "0", STR_PAD_LEFT);
}
return str_pad($tokens[7], 4, "0", STR_PAD_LEFT);
error_log("IP = ".$ip_str);
return $ip_str;
# return str_pad($tokens[7], 4, "0", STR_PAD_LEFT);
}

//echo $_GET["ip"];
Expand Down Expand Up @@ -61,7 +63,8 @@ function lastIPv6Group($ipv6) {
}else{
header("HTTP/1.0 500");
echo "Query failure";
};
error_log($stmt->error);
}
$stmt->close();
exit();

Expand Down

0 comments on commit 5b5e8bc

Please sign in to comment.