public function ACT_doregister() { if (!$this->acl->check('guest')) { $this->deny(); } if (!$this->config->getVar('register_allowed')) { $this->deny(); } $user = array('user_name' => $_POST['user_name'], 'user_password' => $_POST['user_password'], 'user_password_repeat' => $_POST['user_password_repeat'], 'user_nickname' => $_POST['user_nickname'], 'email' => $_POST['email'], 'website' => $_POST['website'], 'memo' => $_POST['memo']); //Plugin: reCaptcha Validate Start---------------------------------------- if ($this->config->getVar('register_captcha') == 1 && method_exists('reCaptcha', 'validate')) { $validation = reCaptcha::validate(); if ($validation !== true) { $request['specifier'] = $validation; $this->locator->redirect('error_register_failed', $request); } } //Plugin: reCaptcha Validate End---------------------------------------- MDL_User_Edit::create($user); $this->locator->redirect('passport_login'); }