Aurora EvolutionScript

iFrame Setup

http://areebmajeed.me/projects/MyPHPWall/wall.php?api=[API]&user;=[USER-NAME]

Simply replace [API] with your API key found at My Sites page, and [USER-NAME] with the username of the user.

POSTback Values

Whenever a user clicks an ad successfully, we'll send few values to your API handler asking it to handle the user payments. We'll send the following details:

$_POST['u'] The username of the user who needs to be credited.
$_POST['pwd'] Your password used for authentication.
$_POST['a'] Amount to be credited (would be like this 0.0001).
$_POST['cid'] The ID of the campaign which user clicked.

Sample POSTback API Handler

<?php
$password = 'XYZThisIsMyPwd';
$pwd = $_POST['pwd'];
$amount = $_POST['amount'];
$user = $_POST['u'];
if($pwd == $password) {
// Simply credit cash to the user, sample query down
mysqli_query("UPDATE users SET balance = balance + '$amount' WHERE user_name = '$user'");	
echo "Done, credited.";	
exit();	
} else {
	echo "Invalid password.";
}
?>



Copyrighted MyPHPWall 2018