Ejemplo n.º 1
0
 /**
  * Make div with login form
  * If login_error exists in session
  * it will also add that error to the form
  *
  * @param Registry $Registry
  * @return string html
  */
 protected static function makeLoginBlock(Registry $Registry)
 {
     $Translator = $Registry->Tr;
     $error = !empty($_SESSION['login_error']) ? $_SESSION['login_error'] : '';
     d('$error: ' . $error);
     $aVals = array($Translator['Username'], $Translator['Password'], $Translator['Remember me'], $Translator['Username required'], $Translator['Forgot password?'], $Translator['Log in'], $error);
     return \tplLoginform::parse($aVals, false);
 }
Ejemplo n.º 2
0
 /**
  * Make div with login form
  * If login_error exists in session
  * it will also add that error to the form
  *
  * @param Registry $Registry
  *
  * @return string html
  */
 protected static function makeLoginBlock(Registry $Registry)
 {
     $error = !empty($_SESSION['login_error']) ? $_SESSION['login_error'] : '';
     d('$error: ' . $error);
     $aVals = array($error);
     return \tplLoginform::parse($aVals, false);
 }