/** * Constructor * */ function __construct() { parent::__construct(); // Call userRegisterOpenID if ($this->user->loginCheck()) { // Redirect to previous page if (isset($_SESSION['breadcrumbs'])) { foreach ($_SESSION['breadcrumbs'] as $val) { if (!preg_match('#^user/[login|logout|register|edit]#i', $val)) { suxFunct::redirect(suxFunct::makeUrl($val)); break; } } } // Nothing of value was found, redirect to user page suxFunct::redirect(suxFunct::makeUrl('/user/profile/' . $_SESSION['nickname'])); } else { // Too many password failures? if ($this->user->maxPasswordFailures()) { $this->r->title .= " | {$this->r->gtext['pw_failure']}"; $this->tpl->display('pw_failure.tpl'); die; } } }