DZ directory structure.

Source: Internet
Author: User
Tags bbcode php database php editor

a) discuz! file system directory Note: To engage in DZ development, you have to understand the function of each file in DZ. A) Admin: Background management function Module B) API:DZ system and other systems Interface program C) Archiver:dz, for search engine optimization without plate D) Attachments:dz, the user uploads the Attachment directory e) customavata

A) discuz! File system directory
Note: To engage in DZ development, you have to understand the function of each file in DZ.
A) Admin: Background management function module
b) interface program between API:DZ system and other systems
c) Archiver:dz, for search engine optimization without plates
d) Attachments:dz, the user uploads the attachment directory
e) Directory of user-defined avatars in Customavatars:dz
f) storage directory for Forumdata:dz cache data
g) Picture storage directory in Images:dz templates
h) Include:dz common function library, basic function module catalogue
i) Ipdata:dz statistics of IP routing data
j) storage directory for Plugins:dz plugin information
k) storage directory for Templates:dz template files
L) Wap:dz Wireless, WAP program Processing directory
II) You must remember the functionality of each table that is designed for the discuz! database, each of the fields in each table.
For the DZ database design documentation, please refer to the DZ Related project documentation (please download from this post)
III) Process Control of discuz!
A) Background flow control: DZ Background All functions, all need to register to the admincp.php file, each function has at least one or more action (action), in admincp.php, you can define the action's execution permissions, respectively: "Admin==1" Administrator, or "admin==2 | | Admin==3 "Super version and moderator, each action corresponding to a script file, the script file named action.inc.php (*.inc.php), and stored in the admin directory, such as execution: Admincp.php?action=dodo, Equivalent to executing the dodo.inc.php file in the admin directory
b) Front-Office Process Control: The front-desk process control is relatively simple: the process is free, such as:
Home: index.php
Member Registration: register.php;
Member Login: logging.php
Posting procedure: post.php
Member Information: member.php
Forum Content: forumdisplay.php
View Posts: viewthread.php
... Most features, not listed here ...
c) DZ Root config.inc.php belongs to the entire DZ system configuration file
IV) discuz! data processing process
A) DZ database operation processing for MySQL is encapsulated in the Dbstuff (db_mysql.class.php) class
b) The external data are initially filtered by "daddslashes ()" and then filtered, then treated as needed
V) discuz! Display control (web-based multi-style output)
A) The display layer is the website style that everyone usually sees. DZ each set of wind in templates and images under the corresponding a style file storage directory. Website style production, please refer to the detailed DZ style production document
b) DZ website style file processing principle: Actually very simple, DZ uses the template.func.php in the Parse_template () in the PHP regular operation to the HTM module file template tag, converted to PHP code, And according to Styleid saved under the Forumdata/templates, this is a bit like smarty in the technology.
VI) The language processing in DZ
A) DZ foreground and background, both the implementation of the English language is to define the statement as a language variable, and then in the template input, statement variable assignment, are placed in the template directory in the *.lang.php file, dz in the generation of Web site style when the corresponding language pack loaded.
VII) How DZ handles user information (access, calculation, update process)
For beginners to do two development, all must master the meaning of each array element in this array.
A) DZ basic information, such as user information, the session information exists in the following variables:
a). $_dcache
b). $_cookie
c). $_dcookie
d). $_dsession
e). $_dplugin
b) All variables can be printed via Print_r ($GLOBALS)
VIII) The cache processing mechanism in DZ
A) dz in the cache processing is placed in the "cache.func.php", DZ cache processing is relatively simple, the principle is to convert an array into PHP code, and stored in the cache directory, you can open the cache file to view the knowledge.
b) How to use: If a part of the data needs to be cached in a newly opened function, it is basically:
1) define and register the cache name.
2) read the corresponding data from the data.
3) The data is processed before it is written to the cache.
4) Last write cache.
Specific operation, you can see the code in the file, make the corresponding changes can be
Ix. template processing mechanism in DZ
A) DZ original template processing technology, similar to Smarty in the template processing, only the specific algorithm, the process is different, Smarty is a heavy-duty template engine solution. The principle is to convert the variables in the template into the corresponding PHP code, the process is actually a model to visit Java in a compilation, run in multiple places.
Ten) the privilege handling mechanism in DZ
A) for each phase action of DZ in the $discuz_action definition, DZ according to the user group to determine whether the user has the appropriate operation $discuz_action permissions. As for the authority of the background verification, it is more simple, according to "Admin==1" to determine the
11) How to implement URL static in DZ
A) dz in the static there are two methods, as long as the understanding of rewrite planning friends, a look on the know.
12) DZ Original HTML editor, how to intercept and use, if the discuz! generation and HTML code conversion
A) This is the DZ compared to a cow technology, in the earlier version, because of the lack of DZ editor, so many users gave up DZ. Implementation principle: Through JS to use some of the operation converted into DZ BBCode code. This commits security, stores content with BBCode code, and converts the BBCode code into HTML code when the user opens the page
This post statement: Due to limited time, this post only about the DZ part of the function of a short analysis. If you netizens, interested in this article and want to know more about DZ, please huitie after this post! I will be as many of the DZ technical analysis written in this article, and constantly update this paste content.
Some document Description:
admincp.php Management
ajax.php Ajax Features
announcement.php Notice
Attachment Accessories
board.php The Real Home page
Config.inc.php This is a configuration file
Corpus.php Forum Anthology
digest.php Essence Post
discuz_version.php Forum Version number
faq.php problem List
forumdisplay.php Forum List
index.php Jump Page
Loggin.php Certification page (login exit)
mail_config.inc.php Mail Configuration
member.php User Actions
memcp.php Personal Control Panel
Misc.php Fragmented functions
my.php My posts
plugin.php Plug-in
pm.php SMS
post.php send a Post
redirect.php page Redirection
register.php Registration
Robots.txt Limit Search
rss.php RSS Information Release
search.php Forum Query
secode.php Verification Code
stats.php Statistics
topic.php Home Forum Topics
Topicadmin Topic Management
viewpro.php displaying personal information
viewthread.php Theme Display
Folder
Admin Management
API interface
Archiver Documentation
Attachments Accessories
Customavatars Custom Emoticons
Forumdata Forum data contains buffered data
Images Pictures
Include Public files
Install installation package
Ipdata IP Address
Plugins Plug-in
Readme Help Documentation
Templates templates
Utilities Tool Kit
WAP Mobile Website
Folder include
advertisements.inc.php AD Management
Ajax.js Ajax Related
attachment.func.php Set of attachment functions
Bbscode.js Forum Emoticons
cache.fun.php Cache Set of functions
category.inc.php column
chinese.class.php
Common.inc.php most important header file
Common.js the most important JS file
Corpus.func.php Forum Anthology function
counter.inc.php Forum Count
cron.func.php Scheduled Tasks
db_mysql.class.php Database
db_mysql_error.inc.php Database error
debug.php Debugging Information
discuzcode.func.php Forum Code
editor.func.php Editor
Editor.js Editor
editpost.inc.php editing posts
Floatadv.js Floating Ads
forum.func.php Forum set of functions
global.func.php Global Functions
Menu.js Menu
misc.func.php Other
newreply.inc.php New Reply
newthread.inc.php New Theme
*pmprompt.inc.php
Post.fun.php Published Themes
printable.inc.php Forum Print
Qihoo.js Qihoo
relatethreads.inc.php Related Topics
security.inc.php Safety
Sendmail.inc.php Mail
serverbusy.htm System Busy
template.func.php templates
threadpay.inc.php buy a Post
Share to: QQ Friends and Group QQ

DZ directory structure.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.