193 lines
12 KiB
Smarty
193 lines
12 KiB
Smarty
{% include 'global/header.tpl' %}
|
|
{% if sakura.lockAuth %}
|
|
<h1 class="stylised" style="line-height: 1.8em; text-align: center;">Authentication is currently disallowed, try again later.</h1>
|
|
{% else %}
|
|
<div class="loginPage">
|
|
<div class="loginCont">
|
|
<div class="loginForm">
|
|
<div class="head">
|
|
Login to {{ sakura.siteName }}
|
|
</div>
|
|
<form method="post" action="/authenticate" id="loginForm">
|
|
<input type="hidden" name="redirect" value="{{ auth.redirect }}" />
|
|
<input type="hidden" name="session" value="{{ php.sessionid }}" />
|
|
<input type="hidden" name="time" value="{{ php.time }}" />
|
|
<input type="hidden" name="mode" value="login" />
|
|
<div class="leftAlign">
|
|
<label for="loginUserName">Username:</label>
|
|
</div>
|
|
<div class="centreAlign">
|
|
<input class="inputStyling" type="text" id="loginUserName" name="username" autofocus="true" />
|
|
</div>
|
|
<div class="leftAlign">
|
|
<label for="loginPassword">Password:</label>
|
|
</div>
|
|
<div class="centreAlign">
|
|
<input class="inputStyling" type="password" id="loginPassword" name="password" />
|
|
</div>
|
|
<div class="subLinks centreAlign">
|
|
<input class="inputStyling" name="remember" type="checkbox" class="ignore-css" id="loginRemember" /><label for="loginRemember">Remember Me</a>
|
|
</div>
|
|
<div class="centreAlign">
|
|
<input class="inputStyling" type="submit" id="loginButton" name="submit" value="Login" />
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="passwordForm">
|
|
<div class="head">
|
|
Lost Password
|
|
</div>
|
|
<form method="post" action="/authenticate" id="passwordForm">
|
|
<input type="hidden" name="mode" value="forgotpassword" />
|
|
<input type="hidden" name="session" value="{{ php.sessionid }}" />
|
|
<input type="hidden" name="time" value="{{ php.time }}" />
|
|
<div class="leftAlign">
|
|
<label for="forgotUserName">Username:</label>
|
|
</div>
|
|
<div class="centreAlign">
|
|
<input class="inputStyling" type="text" id="forgotUserName" name="username" />
|
|
</div>
|
|
<div class="leftAlign">
|
|
<label for="forgotEmail">E-mail:</label>
|
|
</div>
|
|
<div class="centreAlign">
|
|
<input class="inputStyling" type="text" id="forgotEmail" name="email" />
|
|
</div>
|
|
<div class="centreAlign">
|
|
<input class="inputStyling" type="submit" name="submit" value="Request Password" id="requestPassBtn" />
|
|
</div>
|
|
<div class="subLinks centreAlign">
|
|
If you lost access to the e-mail address you registered with then there's not much we can do, it's your own responsibility to keep track of it and attaching a working one to your account.
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div class="registerCont">
|
|
<div class="registerForm">
|
|
<div class="head">
|
|
Register on {{ sakura.siteName }}
|
|
</div>
|
|
{% if not sakura.disableRegistration %}
|
|
<form id="registerForm" method="post" action="/authenticate" style="display:{% if auth.blockRegister.do %}none{% else %}block{% endif %};">
|
|
<input type="hidden" name="mode" value="register" />
|
|
<input type="hidden" name="session" value="{{ php.sessionid }}" />
|
|
<input type="hidden" name="time" value="{{ php.time }}" />
|
|
<div class="leftAlign">
|
|
<label for="registerUserName">Username:</label>
|
|
</div>
|
|
<div class="centreAlign">
|
|
<input class="inputStyling" type="text" id="registerUserName" name="username" onkeyup="registerVarCheck(this.id, 'username');" placeholder="Any character" />
|
|
</div>
|
|
<div class="leftAlign">
|
|
<label for="registerEmail">E-mail:</label>
|
|
</div>
|
|
<div class="centreAlign">
|
|
<input class="inputStyling" type="text" id="registerEmail" name="email" onkeyup="registerVarCheck(this.id, 'email');" placeholder="Used for e.g. password retrieval" />
|
|
</div>
|
|
<div class="leftAlign">
|
|
<label for="registerPassword">Password:</label>
|
|
</div>
|
|
<div class="centreAlign">
|
|
<input class="inputStyling" type="password" id="registerPassword" name="password" onkeyup="registerVarCheck(this.id, 'password');" placeholder="Using special characters is recommended" />
|
|
</div>
|
|
<div class="leftAlign">
|
|
<label for="registerConfirmPassword">Confirm Password:</label>
|
|
</div>
|
|
<div class="centreAlign">
|
|
<input class="inputStyling" type="password" id="registerConfirmPassword" name="confirmpassword" onkeyup="registerVarCheck(this.id, 'confirmpw', 'registerPassword');" placeholder="Just to make sure" />
|
|
</div>
|
|
{% if sakura.requireRegCodes %}
|
|
<div class="leftAlign">
|
|
<label for="registerCode">Registration Code:</label>
|
|
</div>
|
|
<div class="centreAlign">
|
|
<input class="inputStyling" type="text" id="registerCode" name="registercode" placeholder="Ask another member for one" />
|
|
</div>
|
|
{% endif %}
|
|
{% if sakura.recaptchaEnable %}
|
|
<div class="leftAlign">
|
|
<label for="recaptcha_response_field">Verification:</label>
|
|
</div>
|
|
<div class="centreAlign">
|
|
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
|
<div class="g-recaptcha" data-sitekey="{{ sakura.recaptchaPublic }}" style="margin: auto; display: inline-block;"></div>
|
|
<noscript>
|
|
<div style="width: 302px; height: 352px; margin: auto; display: inline-block;">
|
|
<div style="width: 302px; height: 352px; position: relative;">
|
|
<div style="width: 302px; height: 352px; position: absolute;">
|
|
<iframe src="https://www.google.com/recaptcha/api/fallback?k={{ sakura.recaptchaPublic }}" frameborder="0" scrolling="no" style="width: 302px; height:352px; border-style: none;"></iframe>
|
|
</div>
|
|
<div style="width: 250px; height: 80px; position: absolute; border-style: none; bottom: 21px; left: 25px; margin: 0px; padding: 0px; right: 25px;">
|
|
<textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response" style="width: 250px; height: 80px; border: 1px solid #c1c1c1; margin: 0px; padding: 0px; resize: none;" value=""></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</noscript>
|
|
</div>
|
|
{% endif %}
|
|
<div class="subLinks centreAlign">
|
|
<input class="inputStyling" name="tos" type="checkbox" class="ignore-css" id="registerToS" /><label for="registerToS">I agree to the <a class="default" href="/r/terms" target="_blank">Terms of Service</a>.
|
|
</div>
|
|
<div class="centreAlign">
|
|
<input class="inputStyling" type="submit" name="submit" value="Register" id="registerAccBtn" />
|
|
</div>
|
|
</form>
|
|
{% if auth.blockRegister.do %}
|
|
<div class="registerForm" id="registerWarn" style="display: block;">
|
|
<div class="centreAlign">
|
|
<div class="fa fa-warning fa-5x" style="display: block; margin: 10px 0 0;"></div>
|
|
<h1>Are you {{ auth.blockRegister.username }}?</h1>
|
|
<p>Making more than one account is not permitted.</p>
|
|
<p>If you lost your password please use the form on the bottom left but if you don't already have an account you can go ahead and click the link below to show the registration form this check is based on your IP so in some cases someone may have registered/used the site on this IP already.</p>
|
|
<p>If we find out that you already have an account we may question you about it, if you can give a good reason we'll let it slide otherwise we may issue a temporary ban.</p>
|
|
</div>
|
|
<div class="subLinks centreAlign">
|
|
<a href="javascript:;" class="default" onclick="document.getElementById('registerWarn').style.display='none';document.getElementById('registerForm').style.display='block';">Register anyway</a>.
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% else %}
|
|
<div class="registerForm" id="registerWarn" style="display: block;">
|
|
<div class="centreAlign">
|
|
<div class="fa fa-remove fa-5x" style="display: block; margin: 10px 0 0;"></div>
|
|
<h1>Registration is disabled.</h1>
|
|
<p>Please try again later.</p>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% if not sakura.requireActivation %}
|
|
<div class="resendForm">
|
|
<div class="head">
|
|
Resend Activation E-mail
|
|
</div>
|
|
<form method="post" action="/authenticate" id="resendForm">
|
|
<input type="hidden" name="mode" value="resendactivemail" />
|
|
<input type="hidden" name="session" value="{{ php.sessionid }}" />
|
|
<input type="hidden" name="time" value="{{ php.time }}" />
|
|
<div class="leftAlign">
|
|
<label for="activeUserName">Username:</label>
|
|
</div>
|
|
<div class="centreAlign">
|
|
<input class="inputStyling" type="text" id="activeUserName" name="username" />
|
|
</div>
|
|
<div class="leftAlign">
|
|
<label for="activeEmail">E-mail:</label>
|
|
</div>
|
|
<div class="centreAlign">
|
|
<input class="inputStyling" type="text" id="activeEmail" name="email" />
|
|
</div>
|
|
<div class="centreAlign">
|
|
<input class="inputStyling" type="submit" name="submit" value="Request Activation" id="requestActiveBtn" />
|
|
</div>
|
|
<div class="subLinks centreAlign">
|
|
Read the footnote on the Lost Password form.
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|
|
{% endif %}
|
|
{% include 'global/footer.tpl' %}
|