$error_email = ''; $error_new=''; $email_success = 0; $new_success = 0; $delay_failed_login=(int) $defaultsarray['failed_login_delay']; $delay_failed_attempts=(int) $defaultsarray['failed_login_attempts']; if(isset($_POST['create_login_info'])) { //create new account with low access level...for free tools section. $e_addr=trim($_POST['new_email']); $user=trim($_POST['new_username']); $pass=trim($_POST['new_pword']); $res=mrr_create_account($user,$pass,$e_addr); $error_new=$res['newid']; $newid=$res['msg']; } elseif(isset($_POST['email_login_info'])) { //Forgot Password process.... $e_addr=trim($_POST['id_email_forgot']); $error_email=mrr_reset_acct_pass_email($e_addr); } elseif(isset($_POST['username'])) { //login process... $sql = "select users.*, DATE_ADD(users.linedate_failed, INTERVAL ".$delay_failed_login." SECOND) as delayed_access, (select view_access from user_levels where user_levels.access_level=users.access_level order by id asc limit 1) as view_access_level
function new_user() { //create new account with low access level...for free tools section. global $lang; $e_addr=trim($_POST['new_email']); $user=trim($_POST['new_username']); $pass=trim($_POST['new_pword']); $utype=$_POST['new_acct_type']; $res=mrr_create_account($user,$pass,$e_addr,$utype); $error_new=$res['msg']; $newid=$res['newid']; $editing=$res['auto_edit']; display_xml_response("<rslt>1</rslt><newid>".$newid."</newid><msg><![CDATA[".$error_new."]]></msg><AutoEdit><![CDATA[".$editing."]]></AutoEdit><AutoSelect><![CDATA[".$utype."]]></AutoSelect>"); }