$error = $lang['6']; } elseif ($password == "") { $error = $lang['5']; } elseif ($passwordc == "") { $error = $lang['294']; } elseif ($password != $passwordc) { $error = $lang['295']; } elseif (!verify_valid_email($email)) { $error = $lang['293']; } elseif (!verify_email_unique($email)) { $error = $lang['48']; } else { $api_url = "http://www.minnano-av.com/api-register.php"; //$api_uri = "?username={$username}&useremail={$email}&userpassword1={$password}&userpassword2={$passwordc}"; $api_post = array('username' => $username, 'useremail' => $email, 'userpassword1' => $password, 'userpassword2' => $passwordc); $api_res = curl_string_post($api_url, $api_post); $api_res = json_decode($api_res, true); //print_r($api_res);exit; if ($api_res['error'] == 0) { // ### // $regist = date('Y-m-d h:i:s'); /* $query = "INSERT INTO minnanousers.users (u_name, u_nick, u_password, u_active, u_regist_date) VALUES ('".mysql_real_escape_string($email)."', '".mysql_real_escape_string($username)."', '".mysql_real_escape_string($password)."', '1', '$regist')"; $result=$conn->execute($query); // ### // */ $encryptedpassword = md5($password); $query = "INSERT INTO members SET username='******', email='" . mysql_real_escape_string($email) . "', password='******', pwd='" . mysql_real_escape_string($password) . "', addtime='" . time() . "', ip='" . $_SERVER['REMOTE_ADDR'] . "', lip='" . $_SERVER['REMOTE_ADDR'] . "', lastlogin='******', verified='1'"; $result = $conn->execute($query); $UID = intval(mysql_insert_id());
<?php require 'include/config.php'; //require('include/functions/import.php'); require 'include/functions/import.php'; $useremail = '*****@*****.**'; $userpassword = '******'; $url = 'http://www.minnano-av.com/api-login-test.php'; $api_post = array('useremail' => $useremail, 'userpassword' => $userpassword); $data = curl_string_post($url, $api_post); $data = json_decode($data); echo '<pre>'; print_r($data);