以下是全新完整的文件架构:
project_root/
│
├── css/
│ ├── style.css # 全局样式
│ ├── index.css # 首页样式
│ └── search.css # 搜索页样式
├── database/
│ ├── dramas.txt # 短剧数据
│ └── users.txt # 用户数据
├── index.php # 首页
├── search.php # 搜索页面
├── login.php # 登录页面
├── auth.php # 认证处理
├── logout.php # 退出登录
├── drama_list.php # 短剧管理列表
├── drama_add.php # 添加短剧
├── drama_edit.php # 编辑短剧
└── drama_delete.php # 删除短剧数据库文件格式
users.txt
Apply
username|password
admin|123456dramas.txt
Apply
1|短剧标题1|http://example.com/drama1
2|短剧标题2|http://example.com/drama2
3|短剧标题3|http://example.com/drama3主要文件说明
1. css/ – 样式文件目录
style.css:全局通用样式
index.css :首页专用样式
search.css:搜索页专用样式
2. database/ – 数据文件目录
dramas.txt:短剧数据(格式 :ID|标题|链接)
users.txt:用户数据(格式:用户名|密码)
PHP文件:
index.php :网站首页
search.php:搜索功能
login.php:用户登录
auth.php :身份验证
logout.php:退出登录
drama_list.php:短剧管理
drama_add.php:添加短剧
drama_edit.php :编辑短剧
drama_delete.php :删除短剧注意事项
确保 database/ 目录有正确的读写权限
所有文件使用 UTF-8 编码
文件名区分大小写
保持文件结构的完整性
建议的权限设置