ok
This commit is contained in:
parent
d9b52ecc81
commit
dd46e97768
3 changed files with 11 additions and 3 deletions
|
@ -53,6 +53,10 @@ $renderData = array(
|
||||||
'charset' => Configuration::getConfig('charset'),
|
'charset' => Configuration::getConfig('charset'),
|
||||||
'currentpage' => $_SERVER['PHP_SELF']
|
'currentpage' => $_SERVER['PHP_SELF']
|
||||||
],
|
],
|
||||||
|
'php' => [
|
||||||
|
'sessionid' => \session_id(),
|
||||||
|
'time' => \time()
|
||||||
|
],
|
||||||
'user' => [
|
'user' => [
|
||||||
'loggedin' => Users::loggedIn()
|
'loggedin' => Users::loggedIn()
|
||||||
]
|
]
|
||||||
|
|
|
@ -66,11 +66,13 @@
|
||||||
<div class="hidden" id="headerLoginForm">
|
<div class="hidden" id="headerLoginForm">
|
||||||
<form method="post" action="/login">
|
<form method="post" action="/login">
|
||||||
<input type="hidden" name="redirect" value="{{ sakura.currentpage }}" />
|
<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>
|
<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>
|
<label for="headerLoginPassword">Password:</label>
|
||||||
<input class="inputStyling" type="password" id="headerLoginPassword" name="password" />
|
<input type="password" id="headerLoginPassword" name="password" />
|
||||||
<input class="inputStyling" type="submit" id="headerLoginButton" name="submit" value="Login" />
|
<input type="submit" id="headerLoginButton" name="submit" value="Login" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -1213,4 +1213,6 @@ textarea.inputStyling {
|
||||||
/* Header login thing */
|
/* Header login thing */
|
||||||
#headerLoginForm {
|
#headerLoginForm {
|
||||||
background: #9475B2;
|
background: #9475B2;
|
||||||
|
box-shadow: 0 0 5px #8364A1;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue