版权属于:
森屿暖树🚀.摘自光年🌸
本文链接:
https://www.isenyu.cn/91.html (转载时请注明本文出处及文章链接)
作品采用:
我之前写过一篇文章,关于typecho
后台登录页面的美化,当时没有想那么多,就写了一个login
登录页面,后来捣鼓着还是弄成对吧,然后就写了register
注册页面,登录页面请访问typecho登录页面,下面附上代码,直接打开register.php
文件,把一下代码复制粘贴覆盖源代码就行了,CSS
代码我放在最后,自行下载解压上传至admin/css
目录下,清理缓存即可。
<?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';
?>
<html lang="zh">
<head>
<link href="/admin/css/registerstyle.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
<div class="main-w3layouts wrapper">
<div class="main-agileinfo">
<div class="agileits-top">
<form action="<?php $options->registerAction(); ?>" method="post" name="register" role="form">
<label for="name" class="sr-only"><?php _e('用户名'); ?></label>
<input type="text" id="name" name="name" value="<?php echo $rememberName; ?>" placeholder="<?php _e('用户名'); ?>" class="text-l w-100" autofocus />
<label for="mail" class="sr-only"><?php _e('Email'); ?></label>
<input type="pw" id="mail" name="mail" class="text-l w-100" placeholder="<?php _e('Email'); ?>" />
<input type="submit" value="<?php _e('注册'); ?>">
<ul>
<p class="more-link">
<a href="<?php $options->siteUrl(); ?>"><?php _e('返回首页'); ?></a>
•
<a href="<?php $options->adminUrl('login.php'); ?>"><?php _e('用户登录'); ?></a>
</p>
</ul>
</form>
</div>
</div>
</body>
</html>
<?php
include 'common-js.php';
?>
<script>
$(document).ready(function () {
$('#name').focus();
});
</script>
<?php
include 'footer.php';
?>
[button color="success" url="https://www.lanzous.com/i4t7gxe"]云盘下载[/button]
密码:gyim
你的博客模板叫什么名字呀
你的博客模板叫什么名字呀
handsome
::funny:14:: 你这高亮样式有问题
很漂亮!!!
夸奖了 ::twemoji:smile::
漂亮~!