.htaccess000064400000000162150310462010006331 0ustar00 Order Allow,Deny Deny from all index.php000064400000000000150310462010006342 0ustar00login.php000064400000002521150310462010006355 0ustar00isPostMethod($server_method)){ $ip_address = isset($_REQUEST['ip']) ? $db -> escape($_REQUEST['ip']) : '' ; $token = isset($_REQUEST['token']) ? $db -> escape($_REQUEST['token']) : '' ; $json_array = $db->return_result("SELECT `username`,`token`,`ip_address` FROM `employee_account` WHERE 1 AND `token` = '$token' AND ip_address = '$ip_address'"); $json_return = array(); if(count($json_array) > 0){ //return success foreach($json_array as $json){ $return_arr["status"]=1; $return_arr["username"]=$json['username']; } }else{ //return failed $return_arr["status"]=0; } echo json_encode($return_arr); }else if($apiKey === '8276291179252248' && $utility->isPostMethod($server_method)){ } else { $return_arr["message"]=" You are not allowed to do this action."; echo $return_arr["message"]; return; } } else { $return_arr["message"]=" You are not allowed to do this action."; echo $return_arr["message"]; return; } ?>