This commit is contained in:
flash 2015-03-29 21:04:55 +02:00
parent d9b52ecc81
commit dd46e97768
3 changed files with 11 additions and 3 deletions

View file

@ -53,6 +53,10 @@ $renderData = array(
'charset' => Configuration::getConfig('charset'),
'currentpage' => $_SERVER['PHP_SELF']
],
'php' => [
'sessionid' => \session_id(),
'time' => \time()
],
'user' => [
'loggedin' => Users::loggedIn()
]

View file

@ -66,11 +66,13 @@
<div class="hidden" id="headerLoginForm">
<form method="post" action="/login">
<input type="hidden" name="redirect" value="{{ sakura.currentpage }}" />
<input type="hidden" name="session" value="{{ php.sessionid }}" />
<input type="hidden" name="time" value="{{ php.time }}" />
<label for="headerLoginUserName">Username:</label>
<input class="inputStyling" type="text" id="headerLoginUserName" name="username" />
<input type="text" id="headerLoginUserName" name="username" />
<label for="headerLoginPassword">Password:</label>
<input class="inputStyling" type="password" id="headerLoginPassword" name="password" />
<input class="inputStyling" type="submit" id="headerLoginButton" name="submit" value="Login" />
<input type="password" id="headerLoginPassword" name="password" />
<input type="submit" id="headerLoginButton" name="submit" value="Login" />
</form>
</div>
{% endif %}

View file

@ -1213,4 +1213,6 @@ textarea.inputStyling {
/* Header login thing */
#headerLoginForm {
background: #9475B2;
box-shadow: 0 0 5px #8364A1;
text-align: center;
}