public function verify_users_submitAction()
    {
        if (empty($_SERVER['HTTP_X_REQUESTED_WITH'])) {
            error404();
        }
        $model = new AdminModel();
        $data['role'] = 'user';
        $id = post('id', 'int');
        $model->setVerifyUser($id, $data);
        $response['error'] = 0;
        $response['target_h']['#verify' . $id] = Lang::translate('VERIFY_USERS_SUBMITTED');
        /*-------------USER DETAILS------------*/
        $userdetails = $model->getUserByID($id);
        $to = $userdetails->email;
        $user_nikname = $userdetails->nickname;
        /*-------------USER DETAILS------------*/
        $message = '
		
		Dear, ' . $user_nikname . '<br />
		
		<br>
		You are now verified to use CSGOBattle.com. You may join ladders and challenge other players for skins. Please follow all of our rules to ensure the best possible experience. Welcome to CSGOBattle!<br>
		<br>
		Best regards, <br>
		CSGOBattle.com Support Team 
		
		';
        $subject = 'User Verification';
        $headers = "MIME-Version: 1.0\r\n" . "Content-type: text/html; charset=utf-8\r\n";
        //mail($to, $subject, $message, $headers);
        //mail new s
        $body = $message;
        //  $to='*****@*****.**';
        $mail = new PHPMailer();
        $mail->SMTPDebug = 1;
        $mail->IsSMTP();
        $mail->SMTPAuth = true;
        // enable SMTP authentication
        $mail->SMTPSecure = "ssl";
        // sets the prefix to the servier
        $mail->Host = "smtp.gmail.com";
        // sets GMAIL as the SMTP server
        $mail->Port = 465;
        // set the SMTP port for the GMAIL server
        $mail->Username = "******";
        // MAIL username
        $mail->Password = "******";
        // MAIL password
        $mail->From = "*****@*****.**";
        $mail->FromName = "CSGO";
        $mail->Subject = 'New Registeration CSGO';
        $mail->Body = $body;
        //HTML Body
        $mail->AltBody = "CSGO";
        // optional, comment out and test
        $mail->WordWrap = 50;
        // set word wrap
        $mail->MsgHTML($body);
        $mail->AddAddress($to, "Contact");
        $mail->IsHTML(true);
        // send as HTML
        if (!$mail->Send()) {
            //echo $mail->ErrorInfo;
            return $mail->ErrorInfo;
        } else {
        }
        //mail new ends
        echo json_encode($response);
        exit;
    }