当前位置:首页 > 站长知识 > 建站知识 > 正文内容

Z-BlogPHP文件结构详解

2024-11-27建站知识59

文件结构

当用户访问一个Z-BlogPHP网站时,以下是文件和目录的执行顺序:

1、用户请求会被index.php处理;如果用户请求的是搜索页面,则search.php会处理该请求;如果用户请求的是RSS输出页面,则feed.php会处理该请求;如果用户请求的是安装页面,则zb_install目录中的index.php会处理该请求;

2、接下来,zb_system目录中的admin、api、css、defend、function、image、script和xml-rpc目录会分别被访问并处理相应的请求;

3、zb_users目录中的avatar、cache、data、emotion、language、logs、plugin和theme目录将分别被访问并处理相应的请求,其中,plugin目录中预装的插件将会被使用;

4、zb_users目录中的upload目录将被用来存放附件。

Z-BlogPHP文件结构如下:

Z-BlogPHP
│ index.php 首页
│ search.php 搜索
│ feed.php RSS输出
│ readme.txt 程序说明
├─zb_install 安装入口(安装完成后可删除)
│ │ index.php
│ │
│ └─language
│         en.php
│         zh-cn.php
│         zh-tw.php
├─zb_system 系统文件夹
│ ├─admin 后台管理
│ ├─api API处理
│ ├─css 后台CSS
│ ├─defend 系统保留文档
│ ├─function 系统核心
│ ├─image 系统图片
│ ├─script 系统 JavaScript
│ └─xml-rpc xml-rpc 通信入口
└─zb_users 用户文件夹
  ├─avatar 头像存放
  ├─cache 缓存文件夹
  │ └─compiled 模板编译缓存
  ├─data 数据库存放(SQLite)
  ├─emotion 表情图片
  ├─language 语言
  ├─logs 日志记录
  ├─plugin 插件目录(预装插件以实际为准)
  │ ├─AppCentre
  │ ├─Gravatar
  │ ├─LinksManage
  │ ├─STACentre
  │ └─UEditor
  ├─theme 主题目录(这里是三款默认主题)
  │ ├─default
  │ │ ├─include
  │ │ ├─language
  │ │ ├─script
  │ │ ├─style
  │ │ └─template
  │ ├─tpure
  │ │ ├─include
  │ │ ├─language
  │ │ ├─plugin
  │ │ ├─script
  │ │ ├─style
  │ │ └─template
  │ └─Zit
  │ ├─include
  │ ├─language
  │ ├─script
  │ ├─style
  │ └─template
  └─upload 附件存放