You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.8 KiB
51 lines
1.8 KiB
5 years ago
|
<?php
|
||
|
include 'common.php';
|
||
|
|
||
|
if ($user->hasLogin() || !$options->allowRegister) {
|
||
|
$response->redirect($options->siteUrl);
|
||
|
}
|
||
|
$rememberName = htmlspecialchars(Typecho_Cookie::get('__typecho_remember_name'));
|
||
|
$rememberMail = htmlspecialchars(Typecho_Cookie::get('__typecho_remember_mail'));
|
||
|
Typecho_Cookie::delete('__typecho_remember_name');
|
||
|
Typecho_Cookie::delete('__typecho_remember_mail');
|
||
|
|
||
|
$bodyClass = 'body-100';
|
||
|
|
||
|
include 'header.php';
|
||
|
?>
|
||
|
<div class="typecho-login-wrap">
|
||
|
<div class="typecho-login">
|
||
|
<h1><a href="http://typecho.org" class="i-logo">Typecho</a></h1>
|
||
|
<form action="<?php $options->registerAction(); ?>" method="post" name="register" role="form">
|
||
|
<p>
|
||
|
<label for="name" class="sr-only"><?php _e('用户名'); ?></label>
|
||
|
<input type="text" id="name" name="name" placeholder="<?php _e('用户名'); ?>" value="<?php echo $rememberName; ?>" class="text-l w-100" autofocus />
|
||
|
</p>
|
||
|
<p>
|
||
|
<label for="mail" class="sr-only"><?php _e('Email'); ?></label>
|
||
|
<input type="email" id="mail" name="mail" placeholder="<?php _e('Email'); ?>" value="<?php echo $rememberMail; ?>" class="text-l w-100" />
|
||
|
</p>
|
||
|
<p class="submit">
|
||
|
<button type="submit" class="btn btn-l w-100 primary"><?php _e('注册'); ?></button>
|
||
|
</p>
|
||
|
</form>
|
||
|
|
||
|
<p class="more-link">
|
||
|
<a href="<?php $options->siteUrl(); ?>"><?php _e('返回首页'); ?></a>
|
||
|
•
|
||
|
<a href="<?php $options->adminUrl('login.php'); ?>"><?php _e('用户登录'); ?></a>
|
||
|
</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<?php
|
||
|
include 'common-js.php';
|
||
|
?>
|
||
|
<script>
|
||
|
$(document).ready(function () {
|
||
|
$('#name').focus();
|
||
|
});
|
||
|
</script>
|
||
|
<?php
|
||
|
include 'footer.php';
|
||
|
?>
|