上一篇: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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Linux new version
SublimeText3 Linux latest version

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

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software
