/** * @return bool * @param string $s_input * @param string[] field names $a_keys * @desc Test whether a short URL is already taken by another page */ public function Test($s_input, $a_keys) { $this->SetMessage(str_replace('{0}', htmlspecialchars($s_input), $this->GetMessage())); require_once 'authentication-manager.class.php'; $manager = new AuthenticationManager($this->GetSiteSettings(), $this->GetDataConnection()); $taken = $manager->IsEmailRegistered($s_input); unset($manager); return !$taken; }