discuz目录文件资料汇总_php技巧
在某处收集来的discuz目录资料,二次开发挺有用的。记录下。(基于7.0的标准程序,部分与插件无关的文件不作说明)
文件颜色说明:
红色:程序核心文件,修改这类文件时千万要注意安全!
橙色:做插件几乎不会用到的文件,大概了解功能就可以了,其实我也不推荐修改这些文件
绿色:函数类文件,许多功能强大的自定义函数可以调用这类文件来使用
蓝色:最标准的插件制作常用文件紫色:该文件被Zend加密,请不要修改这类文件
每个目录里面都有一个空的index.htm,这是为了防止列目录用的,不必理会.
根目录./(这里都是最基本的程序)
admincp.php——后台系统设置主程序文件,一般只处理菜单的显示的访问权限,不处理管理控制。
ajax.php——论坛模板的ajax判断及数据返回都在这里进行
attachment.php——附件文件,仅仅处理附件下载的功能。
announcement.php——论坛公告的显示,一般很少改
config.inc.php——配置论坛数据库、密码等信息,这个大家最熟悉了
discuz_version.php——论坛版本信息,用来更新用的,没有官方说明绝对不要修改
eccredit.php——论坛商品功能以及信用度查看的处理文件
faq.php——论坛自带的帮助
favicon.ico——显示在IE标题栏的的图标
forumdisplay.php——很简单,论坛主题列表的显示
index.php——控制首页元素显示
invite.php——论坛邀请注册程序文件
leftmenu.php——首页侧栏文件
logging.php——登陆系统,判断用户名、密码。
magic.php——论坛道具程序文件,处理道具购买、赠送等操作
medal.php——论坛勋章中心程序文件,处理勋章发送等功能
member.php——控制会员列表显示,积分策略等等信息显示
memcp.php——会员个人中心显示
misc.php——控制评分功能、论坛界面显示功能等等
modcp.php——这个是论坛前台的版主操作的迷你后台程序
my.php——查看一切和自己在这个论坛的行为,例如“我的帖子”,“用户组权限”等等
plugin.php——论坛插件,这个主要控制论坛插件的菜单的显示,一般极少修改
pm.php——论坛短信息程序,控制短信息发表与浏览
post.php——与viewthread.php相似,但是更多是管理帖子发表、编辑等等信息,也会有权限的控制提示
redirect.php——控制显示论坛的最后发表的主题访问,也控制主题的转向功能
register.php——注册文件,同时也会控制注册的信息的合法性
relatekw.php——论坛相关标签生成
relatethread.php——论坛相关主题
robots.txt——设置里面的地址可以阻止搜索机器人访问对应的页面
rss.php——RSS快速订阅,不用多说了吧?
search.php——处理论坛搜索功能中的信息筛选
seccode.php——论坛注册,生成验证码的程序
sitemap.php——论坛SiteMAP功能程序
space.php——个人资料查看的程序
stats.php——处理“统计”中的统计信息,也允许查看论坛对应的统计数据
tag.php——论坛标签整理页
task.php——论坛任务程序,任务主程序触发,判断均在此进行
topic.php——一般无法直接访问,控制页面显示,显示主题条数
topicadmin.php——控制的是管理人员的前台管理操作,如精华、置顶、高亮等等
trade.php——处理论坛的交易主题
video.php——处理论坛的视频主题,包括显示和调用。
viewthread.php——处理浏览帖子时候的帖子信息显示,例如信息、标题等等,同时也处理访问帖子的权限,如阅读权限是否足够等等。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

To work on file upload we are going to use the form helper. Here, is an example for file upload.

Validator can be created by adding the following two lines in the controller.

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

CakePHP is an open source MVC framework. It makes developing, deploying and maintaining applications much easier. CakePHP has a number of libraries to reduce the overload of most common tasks.

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an
