5 $username = trim($a['email']);
6 $int = trim($a['points']);
8 if ($username == null){
13 if (filter_var($username,FILTER_VALIDATE_EMAIL
)) {
14 $username = (filter_var($username, FILTER_SANITIZE_EMAIL
));
20 if(!ctype_digit(ltrim((string)$int, '-'))) {
21 echo("Invalid amount of points");
25 $ip = $_SERVER['REMOTE_ADDR'];
29 $exec = shell_exec("php /home/auth/secure_html/setpoints.php $username $int $ip") or die("error!");