DZ论坛核心代码分析计划--核心文件common.inc.php篇
上一篇:DZ论坛核心代码分析-核心文件global.func.php篇
这个文件是DZ的核心大脑级文件。
真正分析起来,其实内容并不多。大多是条件判断和指挥类的语句。引入大量文件。
理解这个文件可以更好的理解整个DZ的论坛是如何运作的。几乎每个页面都引入了这个文件的。
说实话,越往后面看我头越大。。。大量的多层3维条件判断。。嘿嘿,不知道说错没,就是?:这种类型的。有的镶嵌了4层之多。头晕啊。不过大致完成了。
这个文件最值得学习的是其对安全性的重视和处理。。
下面先上写好注释的文件
其他文件整理后随后发上来。不过这个足够说明很多东西了。
写得不对的地方望各位高手指出
本来这一部分我打算我全部搞完了再发上来更新。但是。。。下午分析DZ的缓存机制代码头都搞晕了。就去搞SVN了。现在已经能够提供SVN下载。
为什么把这一楼更新了而又不发放下载。是因为这一部分还没完成。SVN中有今天3个分析的文件可供参看
文件名 | 文件位置 | 文件作用 | 分析开始时间 | 分析结束时间 |
discuz_version.php | 根目录 | 版权文件 | 2008年10月3日18:03:43 | 2008年10月3日18:03:43 |
db_mysql.class.php | include | 数据库链接 | 2008年10月3日18:06:25 | 2008年10月4日10:12:28 |
install.func.php | install | 安装程序的函数文件 | 2008年10月4日10:36:44 | 2008年10月4日14:02:12 |
install.config.php | install | 数据库的初始化配置 | 2008年10月4日14:22:19 | 2008年10月4日14:22:21 |
global.func.php | include | 全局的函数定义 | 2008年10月5日15:05:13 | 2008年10月6日16:40:45 |
messages.lang.php | templates\default | 存储提示信息的数组文件 | ||
seccode.lang.php | templates\default | 存储随机中文字符串文件 | ||
pms.lang.php | templates\default | 短信息语言文件 | ||
security.inc.php | include | 根据安全等级来进行安全防护 | 2008年10月8日11:01:46 | 2008年10月8日12:02:05 |
cache_settings.php | /forumdata/cache/ | 存储缓存的设置变量 | ||
serverbusy.html | include | 服务器繁忙页面文件 | ||
counter.inc.php | include | 平台计数器文件 | 2008年10月8日12:07:21 | 2008年10月8日13:27:26 |
cache.func.php | include | 缓存相关函数 | 2008年10月8日13:34:19 |

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

Quark Netdisk and Baidu Netdisk are currently the most commonly used Netdisk software for storing files. If you want to save the files in Quark Netdisk to Baidu Netdisk, how do you do it? In this issue, the editor has compiled the tutorial steps for transferring files from Quark Network Disk computer to Baidu Network Disk. Let’s take a look at how to operate it. How to save Quark network disk files to Baidu network disk? To transfer files from Quark Network Disk to Baidu Network Disk, you first need to download the required files from Quark Network Disk, then select the target folder in the Baidu Network Disk client and open it. Then, drag and drop the files downloaded from Quark Cloud Disk into the folder opened by the Baidu Cloud Disk client, or use the upload function to add the files to Baidu Cloud Disk. Make sure to check whether the file was successfully transferred in Baidu Cloud Disk after the upload is completed. That's it

When deleting or decompressing a folder on your computer, sometimes a prompt dialog box "Error 0x80004005: Unspecified Error" will pop up. How should you solve this situation? There are actually many reasons why the error code 0x80004005 is prompted, but most of them are caused by viruses. We can re-register the dll to solve the problem. Below, the editor will explain to you the experience of handling the 0x80004005 error code. Some users are prompted with error code 0X80004005 when using their computers. The 0x80004005 error is mainly caused by the computer not correctly registering certain dynamic link library files, or by a firewall that does not allow HTTPS connections between the computer and the Internet. So how about

Recently, many netizens have asked the editor, what is the file hiberfil.sys? Can hiberfil.sys take up a lot of C drive space and be deleted? The editor can tell you that the hiberfil.sys file can be deleted. Let’s take a look at the details below. hiberfil.sys is a hidden file in the Windows system and also a system hibernation file. It is usually stored in the root directory of the C drive, and its size is equivalent to the size of the system's installed memory. This file is used when the computer is hibernated and contains the memory data of the current system so that it can be quickly restored to the previous state during recovery. Since its size is equal to the memory capacity, it may take up a larger amount of hard drive space. hiber

Discuz forum permission management: Read the permission setting guide In Discuz forum management, permission setting is a crucial part. Among them, the setting of reading permissions is particularly important, as it determines the scope of content that different users can see in the forum. This article will introduce in detail the reading permission settings of the Discuz forum and how to flexibly configure it for different needs. 1. Basic concepts of reading permissions In the Discuz forum, reading permissions mainly include the following concepts that need to be understood: Default reading permissions: Default after new user registration

Detailed explanation of the role of .ibd files in MySQL and related precautions MySQL is a popular relational database management system, and the data in the database is stored in different files. Among them, the .ibd file is a data file in the InnoDB storage engine, used to store data and indexes in tables. This article will provide a detailed analysis of the role of the .ibd file in MySQL and provide relevant code examples to help readers better understand. 1. The role of .ibd files: storing data: .ibd files are InnoDB storage

Working with files in the Linux operating system requires the use of various commands and techniques that enable developers to efficiently create and execute files, code, programs, scripts, and other things. In the Linux environment, files with the extension ".a" have great importance as static libraries. These libraries play an important role in software development, allowing developers to efficiently manage and share common functionality across multiple programs. For effective software development in a Linux environment, it is crucial to understand how to create and run ".a" files. This article will introduce how to comprehensively install and configure the Linux ".a" file. Let's explore the definition, purpose, structure, and methods of creating and executing the Linux ".a" file. What is L

Since the launch of ChatGLM-6B on March 14, 2023, the GLM series models have received widespread attention and recognition. Especially after ChatGLM3-6B was open sourced, developers are full of expectations for the fourth-generation model launched by Zhipu AI. This expectation has finally been fully satisfied with the release of GLM-4-9B. The birth of GLM-4-9B In order to give small models (10B and below) more powerful capabilities, the GLM technical team launched this new fourth-generation GLM series open source model: GLM-4-9B after nearly half a year of exploration. This model greatly compresses the model size while ensuring accuracy, and has faster inference speed and higher efficiency. The GLM technical team’s exploration has not

Title: Analysis of the reasons and solutions for why the secondary directory of DreamWeaver CMS cannot be opened. Dreamweaver CMS (DedeCMS) is a powerful open source content management system that is widely used in the construction of various websites. However, sometimes during the process of building a website, you may encounter a situation where the secondary directory cannot be opened, which brings trouble to the normal operation of the website. In this article, we will analyze the possible reasons why the secondary directory cannot be opened and provide specific code examples to solve this problem. 1. Possible cause analysis: Pseudo-static rule configuration problem: during use
