85 $this->
widget = new \YAWK\widget();
101 if (\
YAWK\user::isLoggedIn(
$db, $this->currentUser))
125 if (isset($this->loginboxLoginBtnMarginTop) && (!empty($this->loginboxLoginBtnMarginTop)))
127 if (substr($this->loginboxLoginBtnMarginTop, -2) !=
"px")
129 $this->loginboxLoginBtnMarginTop = $this->loginboxLoginBtnMarginTop.
"px";
132 $this->loginboxLoginBtnMarginMarkup =
" style=\"margin-top:$this->loginboxLoginBtnMarginTop;\"";
136 $this->loginboxLoginBtnMarginMarkup =
'';
141 if (isset($this->loginboxWidth) && (!empty($this->loginboxWidth)))
144 if (substr($this->loginboxWidth, -1) !=
"%")
146 $this->loginboxWidth = $this->loginboxWidth.
"%";
149 $this->loginboxWidthMarkup =
" style=\"width:$this->loginboxWidth;\"";
152 if ($this->loginboxWidth ===
"100%" || $this->loginboxWidth ===
"100" || ($this->loginboxWidth ===
"0"))
154 $this->loginboxWidthMarkup =
'';
159 $this->loginboxWidthMarkup =
'';
164 if (isset($this->loginboxFormClass) && (!empty($this->loginboxFormClass)))
167 $this->loginboxFormClassMarkup =
" class=\"$this->loginboxFormClass\"";
171 $this->loginboxFormClassMarkup =
'';
176 if (isset($this->loginboxProcessingMode) && (!empty($this->loginboxProcessingMode)))
178 if ($this->loginboxProcessingMode ===
"html")
180 $this->loginboxProcessingModeFormMarkup =
" action=\"index.html\" ";
181 $this->loginboxProcessingModeSubmitBtnType =
"submit";
187 $this->loginboxProcessingModeFormMarkup =
"";
189 $this->loginboxProcessingModeSubmitBtnType =
"submit";
202 if (isset($this->loginboxGreetingTextType) && ($this->loginboxGreetingTextType ===
"GLOBALTEXT"))
204 $this->loginboxGreetingTextType =
"p";
207 if (isset($this->loginboxGreetingTextClass) && (!empty($this->loginboxGreetingTextClass)))
209 $this->loginboxGreetingTextClassMarkup =
' class="'.$this->loginboxGreetingTextClass.
'"';
213 $this->loginboxGreetingTextClassMarkup =
'';
217 if (isset($this->loginboxRedirect) && (!empty($this->loginboxRedirect)))
220 $this->loginboxRedirect = rawurlencode($this->loginboxRedirect);
222 $this->loginboxLogoutBtnMarkup =
'<a href="logout" id="logoutBtn" style="margin-top:'.$this->loginboxLoginBtnMarginTop.
'" class="'.$this->loginboxLogoutBtnClass.
'" target="_self">'.$this->loginboxLogoutBtnText.
'</a>';
226 $this->loginboxLogoutBtnMarkup =
'<a href="logout" id="logoutBtn" style="margin-top:'.$this->loginboxLoginBtnMarginTop.
'" class="'.$this->loginboxLogoutBtnClass.
'" target="_self">'.$this->loginboxLogoutBtnText.
'</a>';
231 if ($this->loginboxGreeting ===
"greeting-max")
233 $this->loginboxGreetingMarkup =
'<'.$this->loginboxGreetingTextType.$this->loginboxGreetingTextClassMarkup.
'>'.$this->loginboxGreetingText.
' '.$this->currentUser.
' <small>'.$this->loginboxGreetingSubtext.
'</small></'.$this->loginboxGreetingTextType.
'>'.$this->loginboxLogoutBtnMarkup.
'';
237 if ($this->loginboxGreeting ===
"greeting-min")
239 $this->loginboxGreetingMarkup =
'<'.$this->loginboxGreetingTextType.$this->loginboxGreetingTextClassMarkup.
'>'.$this->loginboxGreetingText.
' <small>'.$this->loginboxGreetingSubtext.
'</small></'.$this->loginboxGreetingTextType.
'>'.$this->loginboxLogoutBtnMarkup.
'';
243 if ($this->loginboxGreeting ===
"greeting-button")
249 if ($this->loginboxGreeting ===
"greeting-none")
251 $this->loginboxGreetingMarkup =
'';
262 echo
"<script type=\"text/javascript\" src=\"system/engines/jquery/notify/bootstrap-notify.min.js\"></script>";
263 echo
"<link rel=\"stylesheet\" href=\"system/engines/jquery/notify/bootstrap-notify.min.css\">";
265 echo
"<script type=\"text/javascript\" src=\"system/engines/jquery/jquery.validate.min.js\"></script>";
269 echo
"<script type=\"text/javascript\" src=\"system/engines/jquery/messages_de.min.js\"></script>";
272 echo
"<script type=\"text/javascript\" src=\"system/widgets/loginbox/js/loginbox.ajax.min.js\"></script>";
287 echo
"<div class=\"col-md-12\"".$this->loginboxLoginBtnMarginMarkup.
">";
290 echo
"<div id=\"heading\">";
291 echo $this->
getHeading($this->loginboxHeading, $this->loginboxSubtext);
295 echo
"<form name=\"login\" ".$this->loginboxProcessingModeFormMarkup.$this->loginboxFormClassMarkup.
" id=\"loginForm\" role=\"form\" method=\"POST\"".$this->loginboxWidthMarkup.
">
296 <input type=\"text\" id=\"user\" name=\"user\" value=\"".
$username.
"\" class=\"form-control\" placeholder=\"Benutzername\">
297 <input type=\"password\" id=\"password\" name=\"password\" value=\"".
$password.
"\" class=\"form-control\" placeholder=\"Passwort\">
298 <input type=\"hidden\" name=\"login\" value=\"login\">
299 <input type=\"hidden\" id=\"loginboxRedirect\" name=\"loginboxRedirect\" value=\"".$this->loginboxRedirect.
"\">
300 <input type=\"hidden\" id=\"loginboxRedirectTime\" name=\"loginboxRedirectTime\" value=\"".$this->loginboxRedirectTime.
"\">
301 <input type=\"hidden\" id=\"loginboxLogoutBtnText\" name=\"logoutBtnText\" value=\"".$this->loginboxLogoutBtnText.
"\">
302 <input type=\"hidden\" id=\"loginboxLogoutBtnClass\" name=\"logoutBtnClass\" value=\"".$this->loginboxLogoutBtnClass.
"\">
303 <input type=\"hidden\" id=\"loginboxGreeting\" name=\"loginboxGreeting\" value=\"".$this->loginboxGreeting.
"\">
304 <input type=\"hidden\" id=\"loginboxGreetingText\" name=\"loginboxGreetingText\" value=\"".$this->loginboxGreetingText.
"\">
305 <input type=\"hidden\" id=\"loginboxGreetingTextType\" name=\"loginboxGreetingTextType\" value=\"".$this->loginboxGreetingTextType.
"\">
306 <input type=\"hidden\" id=\"loginboxGreetingTextClass\" name=\"loginboxGreetingTextClass\" value=\"".$this->loginboxGreetingTextClass.
"\">
307 <input type=\"hidden\" id=\"loginboxGreetingSubtext\" name=\"loginboxGreetingSubtext\" value=\"".$this->loginboxGreetingSubtext.
"\">
308 <input type=\"hidden\" id=\"loginboxGreetingShowName\" name=\"loginboxGreetingShowName\" value=\"".$this->loginboxGreetingShowName.
"\">
309 <input type=\"".$this->loginboxProcessingModeSubmitBtnType.
"\" name=\"submit\" id=\"submit\" class=\"$this->loginboxLoginBtnClass\" value=\"$this->loginboxLoginBtnText\"".$this->loginboxLoginBtnMarginMarkup.
">
311 <div id=\"thankYouMessage\"></div>
324 <div class=\"col-md-12\">
325 ".$this->loginboxGreetingMarkup.
"
static getCurrentLanguageStatic()
returns the currently set backend language, but is static callable
static isAnybodyThere($db)
check, if a session username is set and if user is logged in
This class serves methods to create backup from files.
if(isset($_POST['save'])) $settings