Newbie Spellweaver
- Joined
- Mar 9, 2016
- Messages
- 29
- Reaction score
- 0
As we know after voting successfully, GTOP sends the server variables
VoterIP
Successful
Reason
pingUsername
Though gtop was able to access my pingback.php, it failed and returned an error for all variables that says something like
I tried printing out $_POST on a file but it shows an empty array.What could be the cause of GTOP's sent variables be blank?
My pingback.php is like this until the error lines
This code was working some months ago.
VoterIP
Successful
Reason
pingUsername
Though gtop was able to access my pingback.php, it failed and returned an error for all variables that says something like
Code:
PHP Notice: Undefined index: VoterIP in pingback.php on line 19, referer: http://***/pingback.php?VoterIP=***&pingUsername=***&Successful=0&Reason=Vote%20accepted&pingbackURL=***
My pingback.php is like this until the error lines
PHP:
$authorized = array("198.148.82.98", "198.148.82.99");
if(!in_array($_SERVER["REMOTE_ADDR"],$authorized)) {
exit;
}
$voterIP = $mysqli->real_escape_string($_POST["VoterIP"]);
$success = abs($_POST["Successful"]);
$reason = $mysqli->real_escape_string($_POST["Reason"]);
$pingUsername = $mysqli->real_escape_string($_POST["pingUsername"]);
This code was working some months ago.