Initial commit
[2ch-be.git] / dev-test / rewrite / tools / chk_input.php
blob29fe0cfea33672f34c7ea94d67316571065b5800
1 <?php
3 $a = $_REQUEST;
5 $id = trim($a['id']);
6 $pts = trim($a['points']);
7 $opr = trim($a['opr']);
9 if ($id == null || $pts == null){
10 echo "No ID";
11 exit;
13 if((filter_var($id, FILTER_VALIDATE_INT) == false) || (filter_var($pts, FILTER_VALIDATE_INT) == false)){
14 echo("Invalid ID or Points");
15 exit;
18 $ip = $_SERVER['REMOTE_ADDR'];
20 //echo "correct";
22 $exec = shell_exec("php /home/auth/secure_html/subpoints.php $id $pts $ip $opr") or die("error!");
23 echo $exec;