Rebuild Laysense site with Webman and SQLite CMS

This commit is contained in:
2026-11-21 17:29:24 +08:00
commit d9bda755d1
99 changed files with 4280 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
<?php
use App\Content\View;
$e = View::escape(...);
?>
<div class="login-box">
<h1>登录内容管理</h1>
<p>编辑来笙网站的页面、公告和文章。</p>
<?php if ($error): ?><p class="feedback error" role="alert"><?= $e($error) ?></p><?php endif ?>
<form class="admin-form" method="post" action="/admin/login">
<input type="hidden" name="csrf" value="<?= $e($token) ?>">
<label>管理员邮箱<input name="email" type="email" value="<?= $e($email) ?>" autocomplete="username" required maxlength="254"></label>
<label>密码<input name="password" type="password" autocomplete="current-password" required></label>
<button class="button button-primary" type="submit">登录</button>
</form>
</div>