feat: 添加鸣谢页面并改进平台图标显示
新增鸣谢页面感谢贡献者,扩展平台图标显示支持更多系统版本 设置邮件字符编码为utf-8,修复可能出现的乱码问题
This commit is contained in:
16
app.php
16
app.php
@@ -180,18 +180,22 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['rating'])) {
|
||||
<h1><?php echo $app['name']; ?></h1>
|
||||
<p class="lead"><?php echo $app['description']; ?></p>
|
||||
<p>年龄分级: <?php echo $app['age_rating']; ?></p>
|
||||
<?php if (!empty($app['age_rating_description'])): ?>
|
||||
<div class="age-rating-description">
|
||||
<h4>年龄分级说明</h4>
|
||||
<p><?php echo nl2br(htmlspecialchars($app['age_rating_description'])); ?></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($app['age_rating_description'])): ?>
|
||||
<div class="age-rating-description">
|
||||
<h4>年龄分级说明</h4>
|
||||
<p><?php echo nl2br(htmlspecialchars($app['age_rating_description'])); ?></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<p>适用平台: <?php
|
||||
$platforms = json_decode($app['platforms'], true) ?? [];
|
||||
$platformIcons = [
|
||||
'windows' => '<i class="fab fa-windows"></i>',
|
||||
'windows_win7' => '<i class="fab fa-windows"></i>',
|
||||
'windows_xp' => '<i class="fab fa-windows"></i>',
|
||||
'macos' => '<i class="fab fa-apple"></i>',
|
||||
'linux' => '<i class="fab fa-linux"></i>',
|
||||
'linux_arch' => '<i class="fab fa-linux"></i>',
|
||||
'linux_ubuntu' => '<i class="fab fa-linux"></i>',
|
||||
'android' => '<i class="fab fa-android"></i>',
|
||||
'ios' => '<i class="fab fa-app-store-ios"></i>'
|
||||
];
|
||||
|
||||
@@ -215,6 +215,7 @@ if (!($conn instanceof mysqli)) {
|
||||
$mail->addAddress(ADMIN_EMAIL);
|
||||
|
||||
$mail->isHTML(false);
|
||||
$mail->CharSet = 'utf-8';
|
||||
$mail->Subject = $subject;
|
||||
$mail->Body = $body;
|
||||
|
||||
|
||||
@@ -73,6 +73,9 @@ if (!isset($conn) || !$conn instanceof mysqli) {
|
||||
<a class="nav-link" href="developer/login.php">开发者登录</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="thanks.php">鸣谢</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
44
thanks.php
Normal file
44
thanks.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* 鸣谢页面
|
||||
*/
|
||||
require_once 'config.php';
|
||||
?>
|
||||
<style>
|
||||
.navbar.scrolled {
|
||||
background-color: rgba(255, 255, 255, 0.95) !important;
|
||||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
</style>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>鸣谢页面</title>
|
||||
<link rel="stylesheet" href="css/all.min.css">
|
||||
<link rel="stylesheet" href="/css/bootstrap.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="index.php"><?php echo APP_STORE_NAME; ?></a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="index.php">首页</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<h1>鸣谢</h1>
|
||||
<ul>
|
||||
<li><a href="/developer_apps.php?id=2">JGZ_YES</a>:制作LeonAPP客户端应用,帮助转载许多APP。</li>
|
||||
</ul>
|
||||
<script src="/js/bootstrap.bundle.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user