/**
  * Create a new user
  *
  * @access	private
  */
 private function create()
 {
     if ($this->check_post_data()) {
         try {
             $to_read['table'] = 'user';
             $to_read['columns'] = array('USER_ID');
             $to_read['condition_columns'][':u'] = 'user_username';
             $to_read['condition_select_types'][':u'] = 'LIKE';
             $to_read['condition_values'][':u'] = $this->_new_user->_username;
             $to_read['value_types'][':u'] = 'str';
             $user = $this->_db->read($to_read);
             if (!empty($user)) {
                 throw new Exception('Username already used!');
             }
             $this->_new_user->create();
             Session::monitor_activity('added a new member: ' . $this->_new_user->_username);
             if ($this->_new_user->_result_action === true && VPost::send_pwd(false)) {
                 $to = $this->_new_user->_email;
                 $subject = 'Your password for ' . WS_NAME;
                 $message = 'This is your password: '******'Location: index.php?ns=users&ctl=manage');
             } elseif ($this->_new_user->_result_action === true) {
                 header('Location: index.php?ns=users&ctl=manage');
             }
         } catch (Exception $e) {
             $this->_action_msg = ActionMessages::custom_wrong($e->getMessage());
         }
     }
 }