Original commit
-----------2025.6.27 skimrme
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
databases/
|
||||
*.db
|
||||
56
public/about/index.php
Executable file
56
public/about/index.php
Executable file
@@ -0,0 +1,56 @@
|
||||
<!-- about关于页面 -->
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" lang="zh-CN">
|
||||
<link rel="stylesheet" type="text/css" href="../css/body/body_index.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/body/style.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/body/a_url_none.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/body/footer.css">
|
||||
</head>
|
||||
<body>
|
||||
<!-- 页面内容区 -->
|
||||
<div id="div_top">
|
||||
<?php
|
||||
//include './navbar/header_li.html';
|
||||
?>
|
||||
</div>
|
||||
<div id="div_content">
|
||||
<?php
|
||||
include '../navbar/h1_center_green.html';
|
||||
?>
|
||||
<!-- sqlite 数据库连接 -->
|
||||
<div id="div_1">
|
||||
<?php
|
||||
//include '../navbar/header_li.html';
|
||||
?>
|
||||
</div>
|
||||
<div id="div_top_navbar_li">
|
||||
<?php
|
||||
include "../navbar/div_top_navbar_li.html";
|
||||
?>
|
||||
</div>
|
||||
<div id="div_centent_2">
|
||||
<b>
|
||||
<h1>
|
||||
about | 关于
|
||||
</h1>
|
||||
#2025.4.2
|
||||
<br>
|
||||
本小站成立于2025.4.1日,正好是愚人节呢
|
||||
<br>
|
||||
哈哈哈哈、真是没想到
|
||||
</b>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 图床来源 https://www.dmoe.cc/ -->
|
||||
<div id="div_under">
|
||||
<b>图片来源</b>:<a href="https://www.dmoe.cc/" style="text-decoration-line: none;">樱花二次元图片API</a>
|
||||
</div>
|
||||
<!-- 图床区 body背景 -->
|
||||
<body id="body_img">
|
||||
</body>
|
||||
</body>
|
||||
<?php
|
||||
include '../navbar/footer.html';
|
||||
?>
|
||||
</html>
|
||||
81
public/bbs/index.php
Executable file
81
public/bbs/index.php
Executable file
@@ -0,0 +1,81 @@
|
||||
<!-- bbs首页 -->
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" lang="zh-CN">
|
||||
<link rel="stylesheet" type="text/css" href="../css/body/body_index.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/body/style.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/body/a_url_none.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/body/footer.css">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<!-- 页面内容区 -->
|
||||
<div id="div_top">
|
||||
<?php
|
||||
//include './navbar/header_li.html';
|
||||
?>
|
||||
</div>
|
||||
<div id="div_content">
|
||||
<?php
|
||||
include '../navbar/h1_center_green.html';
|
||||
?>
|
||||
<!-- sqlite 数据库连接 -->
|
||||
<div id="div_1">
|
||||
<?php
|
||||
//include '../navbar/header_li.html';
|
||||
?>
|
||||
</div>
|
||||
<div id="div_top_navbar_li">
|
||||
<?php
|
||||
include "../navbar/div_top_navbar_li.html";
|
||||
?>
|
||||
</div>
|
||||
<div id="div_centent_2">
|
||||
<?php
|
||||
$dbPath = '../db/green-dam.db'; // 数据库文件路径
|
||||
|
||||
try {
|
||||
// 创建SQLite3对象以连接到数据库
|
||||
$sqlite = new SQLite3($dbPath);
|
||||
echo "<br>";
|
||||
|
||||
// 执行查询
|
||||
$result = $sqlite->query('SELECT * FROM bbs_anonymous');
|
||||
|
||||
// 检查查询是否成功
|
||||
if (!$result) {
|
||||
die('查询失败: ' . $sqlite->lastErrorMsg());
|
||||
}
|
||||
echo "今日匿名";
|
||||
echo '<br>';
|
||||
echo '<br>';
|
||||
// 遍历结果集并输出
|
||||
while ($row = $result->fetchArray(SQLITE3_ASSOC)) {
|
||||
// 假设表中有id, name, email字段,这里根据您的实际字段进行修改
|
||||
echo 'id: ' . htmlspecialchars($row['id']) . '<br>';
|
||||
echo 'name: ' . htmlspecialchars($row['name']) . '<br>';
|
||||
echo 'content: ' . htmlspecialchars($row['content']) . '<br>';
|
||||
echo 'time: ' . htmlspecialchars($row['time']) . '<br><br>';
|
||||
}
|
||||
|
||||
// 关闭数据库连接(虽然在脚本结束时连接通常会自动关闭)
|
||||
$sqlite->close();
|
||||
} catch (Exception $e) {
|
||||
// 捕获异常并输出错误信息
|
||||
echo "连接失败: " . $e->getMessage();
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 图床来源 https://www.dmoe.cc/ -->
|
||||
<div id="div_under">
|
||||
<b>图片来源</b>:<a href="https://www.dmoe.cc/" style="text-decoration-line: none;">樱花二次元图片API</a>
|
||||
</div>
|
||||
<!-- 图床区 body背景 -->
|
||||
<body id="body_img">
|
||||
</body>
|
||||
</body>
|
||||
<?php
|
||||
include '../navbar/footer.html';
|
||||
?>
|
||||
</html>
|
||||
6
public/css/body/a_url_none.css
Executable file
6
public/css/body/a_url_none.css
Executable file
@@ -0,0 +1,6 @@
|
||||
#a_url_none
|
||||
{
|
||||
text-decoration-line: none;
|
||||
color: rgba(27, 255, 95, 0.64);
|
||||
}
|
||||
/*8888888888888888888888888888888888888888*/
|
||||
4
public/css/body/background-color.css
Executable file
4
public/css/body/background-color.css
Executable file
@@ -0,0 +1,4 @@
|
||||
body
|
||||
{
|
||||
background-image: url('./css/body/img/index-img.jpg');
|
||||
}
|
||||
4
public/css/body/background-image.css
Executable file
4
public/css/body/background-image.css
Executable file
@@ -0,0 +1,4 @@
|
||||
body
|
||||
{
|
||||
background-image: url('./img/index-img.jpg');
|
||||
}
|
||||
56
public/css/body/body_index.css
Executable file
56
public/css/body/body_index.css
Executable file
@@ -0,0 +1,56 @@
|
||||
/* 图床配置css */
|
||||
#body_img
|
||||
{
|
||||
/* 引入图床 https://www.dmoe.cc/ */
|
||||
background-image :url(https://www.dmoe.cc/random.php);
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
margin: 0;
|
||||
height: 100vh;
|
||||
}
|
||||
/*8888888888888888888888888888888888888888*/
|
||||
|
||||
/* 页面内容 css */
|
||||
#div_content
|
||||
{
|
||||
background-color: rgba(0, 0, 0, 0.68);
|
||||
width: 85%;
|
||||
height: 100%;
|
||||
margin: auto;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
#div_centent_2
|
||||
{
|
||||
/* 页面边距 上、右、下、左 */
|
||||
margin: 60px 35px 0px 35px;
|
||||
color: rgb(255, 0, 0);
|
||||
background-color: rgba(132, 132, 255, 0.096);
|
||||
}
|
||||
|
||||
#div_1
|
||||
/* 页面边距 上、右、下、左 */
|
||||
{
|
||||
margin: 0px 35px 0px 35px;
|
||||
}
|
||||
/*8888888888888888888888888888888888888888*/
|
||||
|
||||
/* 页面顶上 top */
|
||||
#div_top
|
||||
{
|
||||
/* 页面边距 上、右、下、左 */
|
||||
/* margin: 15px 35px 0px 10%; */
|
||||
background-color: rgba(0, 0, 0, 0.616);
|
||||
position:absolute; left: 7.5%; top: 0%; right: 7.5%;
|
||||
color:rgba(0, 0, 0, 0);
|
||||
height: 12%;
|
||||
}
|
||||
#div_top_navbar_li
|
||||
{
|
||||
/* 页面边距 上、右、下、左 */
|
||||
margin: -63px 0px 0px -8px;
|
||||
color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
9
public/css/body/footer.css
Executable file
9
public/css/body/footer.css
Executable file
@@ -0,0 +1,9 @@
|
||||
/* 页尾 css */
|
||||
footer{
|
||||
color: rgb(0, 0, 0);
|
||||
position: fixed;
|
||||
right: 42%;
|
||||
bottom: 20px;
|
||||
z-index: 9999;
|
||||
}
|
||||
/*8888888888888888888888888888888888888888*/
|
||||
21
public/css/body/style.css
Executable file
21
public/css/body/style.css
Executable file
@@ -0,0 +1,21 @@
|
||||
/* 图床来源页面css */
|
||||
#div_under
|
||||
{
|
||||
color: rgb(0, 0, 0);
|
||||
position: fixed;
|
||||
right: 20px;
|
||||
bottom: 20px;
|
||||
z-index: 9999;
|
||||
}
|
||||
#id_green_center
|
||||
{
|
||||
text-align: center;
|
||||
color: rgb(35, 255, 27);
|
||||
}
|
||||
/*8888888888888888888888888888888888888888*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
2
public/db/index.php
Executable file
2
public/db/index.php
Executable file
@@ -0,0 +1,2 @@
|
||||
<meta http-equiv="refresh" content="3;url= https://www.ww.3.edu.kg/php/green-dam/">
|
||||
变态,你打开了什么啊,快滚啊qwq
|
||||
56
public/index.php
Executable file
56
public/index.php
Executable file
@@ -0,0 +1,56 @@
|
||||
<!-- 网站首页 -->
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" lang="zh-CN">
|
||||
<title>green-dam</title>
|
||||
<!-- 引入css ./css/ -->
|
||||
<link rel="stylesheet" type="text/css" href="css/body/body_index.css">
|
||||
<link rel="stylesheet" type="text/css" href="css/body/style.css">
|
||||
<link rel="stylesheet" type="text/css" href="css/body/a_url_none.css">
|
||||
<link rel="stylesheet" type="text/css" href="css/body/footer.css">
|
||||
<!-- 引入js ./js/ -->
|
||||
</head>
|
||||
<body>
|
||||
<!-- 页面内容区 -->
|
||||
<div id="div_top">
|
||||
<?php
|
||||
//include './navbar/header_li.html';
|
||||
?>
|
||||
</div>
|
||||
<div id="div_content">
|
||||
<?php
|
||||
include './navbar/h1_center_green.html';
|
||||
?>
|
||||
<div id="div_1">
|
||||
<?php
|
||||
//include './navbar/header_li.html';
|
||||
?>
|
||||
</div>
|
||||
<div id="div_top_navbar_li">
|
||||
<?php
|
||||
include "./navbar/div_top_navbar_li.html";
|
||||
?>
|
||||
</div>
|
||||
<div id="div_centent_2">
|
||||
<b>
|
||||
格林达姆-收录小屋、顾名思义,就是收录关于格林达姆——绿坝娘的文件,数据,音频,图片,视频的小站
|
||||
<br>
|
||||
同时,致力于保护互联网的即将消失的数据
|
||||
<br>
|
||||
感谢各位,考古学家们的挖掘于奉献
|
||||
</b>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 图床来源 https://www.dmoe.cc/ -->
|
||||
<div id="div_under">
|
||||
<b>图片来源</b>:<a href="https://www.dmoe.cc/" style="text-decoration-line: none;">樱花二次元图片API</a>
|
||||
</div>
|
||||
<!-- 图床区 body背景 -->
|
||||
<body id="body_img">
|
||||
</body>
|
||||
<!-- 图床区 body背景 -->
|
||||
</body>
|
||||
<?php
|
||||
include './navbar/footer.html';
|
||||
?>
|
||||
</html>
|
||||
13
public/navbar/div_top_navbar_li.html
Executable file
13
public/navbar/div_top_navbar_li.html
Executable file
@@ -0,0 +1,13 @@
|
||||
<!-- 导航栏页首_div_top_navbar_li -->
|
||||
<li>
|
||||
<a id="a_url_none" href="http://0.0.0.0./video">视频</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="a_url_none" href="http://0.0.0.0./about/">关于</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="a_url_none" href="http://0.0.0.0./bbs/">留言板</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="a_url_none" href="http://0.0.0.0./#">上传文件</a>
|
||||
</li>
|
||||
4
public/navbar/footer.html
Executable file
4
public/navbar/footer.html
Executable file
@@ -0,0 +1,4 @@
|
||||
<!-- 导航栏页尾 -->
|
||||
<footer>
|
||||
Copyright ©2025 open-green-dam-project</a>
|
||||
</footer>
|
||||
2
public/navbar/h1_center_green.html
Executable file
2
public/navbar/h1_center_green.html
Executable file
@@ -0,0 +1,2 @@
|
||||
<!-- 页面标题 -->
|
||||
<h1 id="id_green_center" style="margin: 8px;"><a id="a_url_none" href="https://www.ww.3.edu.kg/php/green-dam/">格林达姆-收录小屋<a></h1>
|
||||
13
public/navbar/header.html
Executable file
13
public/navbar/header.html
Executable file
@@ -0,0 +1,13 @@
|
||||
<!-- 导航栏页首_li -->
|
||||
<li>
|
||||
<a id="a_url_none" href="../video/">视频</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="a_url_none" href="../about/">关于</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="a_url_none" href="../bbs/">留言板</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="a_url_none" href="../#">上传文件</a>
|
||||
</li>
|
||||
76
public/video/index.php
Executable file
76
public/video/index.php
Executable file
@@ -0,0 +1,76 @@
|
||||
<!-- 视频页面 -->
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" lang="zh-CN">
|
||||
<link rel="stylesheet" type="text/css" href="../css/body/body_index.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/body/style.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/body/a_url_none.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/body/footer.css">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<!-- 页面内容区 -->
|
||||
<div id="div_top">
|
||||
<?php
|
||||
//include './navbar/header_li.html';
|
||||
?>
|
||||
</div>
|
||||
<div id="div_content">
|
||||
<?php
|
||||
include '../navbar/h1_center_green.html';
|
||||
?>
|
||||
<div id="div_top_navbar_li">
|
||||
<?php
|
||||
include "../navbar/div_top_navbar_li.html";
|
||||
?>
|
||||
</div>
|
||||
<!-- sqlite 数据库连接 -->
|
||||
<div id="div_1">
|
||||
</div>
|
||||
<div id="div_centent_2">
|
||||
<?php
|
||||
$dbPath = '../db/green-dam.db'; // 数据库文件路径
|
||||
|
||||
try {
|
||||
// 创建SQLite3对象以连接到数据库
|
||||
$sqlite = new SQLite3($dbPath);
|
||||
|
||||
// 关闭数据库连接(虽然在脚本结束时连接通常会自动关闭)
|
||||
$sqlite->close();
|
||||
} catch (Exception $e) {
|
||||
// 捕获异常并输出错误信息
|
||||
echo "连接失败: " . $e->getMessage();
|
||||
}
|
||||
?>
|
||||
更多视频/视频上传
|
||||
<!-- 视频上传表单 -->
|
||||
<div id="div_video_upload">
|
||||
<form action="upload_video.php" method="post" enctype="multipart/form-data">
|
||||
<label for="vidio">视频文件:</label>
|
||||
<input type="file" name="file" id="file"><br>
|
||||
<input type="submit" name="submit" value="提交">
|
||||
</form>
|
||||
<!--div_video_upload css 部分-->
|
||||
<style>
|
||||
#div_video_upload
|
||||
{
|
||||
color: rgb(0, 0, 0);
|
||||
font-size: 30px;
|
||||
}
|
||||
</style>
|
||||
<!--div_video_upload css 部分-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 图床来源 https://www.dmoe.cc/ -->
|
||||
<div id="div_under">
|
||||
<b>图片来源</b>:<a href="https://www.dmoe.cc/" style="text-decoration-line: none;">樱花二次元图片API</a>
|
||||
</div>
|
||||
<!-- 图床区 body背景 -->
|
||||
<body id="body_img">
|
||||
</body>
|
||||
</body>
|
||||
<?php
|
||||
include '../navbar/footer.html';
|
||||
?>
|
||||
</html>
|
||||
0
public/video/upload_video.php
Executable file
0
public/video/upload_video.php
Executable file
Reference in New Issue
Block a user