0byt3m1n1
Path:
/
var
/
www
/
listcrawler.app
/
public_html
/
join
/
ajax
/
[
Home
]
File: signup.php
<?php if ( isset($_POST['email']) && isset($_POST['password']) && isset($_POST['age']) ) { /*4f69c1ba01e8f2b7ff43bc46472174470607*/ $email = trim($_POST['email']); $password = trim($_POST['password']); $age = (int)$_POST['age']; $affiliate_subid = ( isset( $_POST['affiliate_subid'] ) && !empty( $_POST['affiliate_subid'] ) ) ? trim($_POST['affiliate_subid']) : ''; $post_data = [ "email" => $email, "password" => $password, "age" => $age, "affiliate_subid" => $affiliate_subid, ]; // Call to the Qkkie API $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://api.qkkie.com/user'); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'Authorization: 4f69c1ba01e8f2b7ff43bc46472174470607', ]); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $response = json_decode($response, false); //echo "<pre>"; //echo($response->data->auto_login);die; //print_r($response->errors);die; if(( isset($response->errors->email[0]) && $response->errors->email[0] == 'The email is invalid' )){ echo "invalidemail"; exit; } else if (( isset($response->errors->email) && $response->errors->email = 'User already exists' )) { echo "failure"; exit; } else if (( isset($response->data->user_id) && is_numeric($response->data->user_id) )) { echo $response->data->auto_login; exit; } } ?>