Home Directory
Discuz uses its own framework, which is a single-entry application just like any other framework application. The. php files in the home directory, most of which are application entry files.
home.php: The entrance to the homeland, that is, a blog-like thing in the forum.
index.php: Home file, depending on the user's homepage, decide which app to jump to.
userapp.php: User application, for the time being is not very clear is why use.
plugin.php: Plug-in portal, background installed plug-ins, will be used from here.
admin.php: Backstage Entrance
protal.php: I don't know what to do with it.
search.php: Search Portal
group.php: Group Application Portal
forum.php: Forum Entrance
Template: Templates files are here
Static resources, multimedia and so on.
_notes: This is the project information directory that NetBeans generates, and it doesn't matter if you delete it.
Nbproject:: Ibid.
All business code of Discuz is placed in the source directory , including framework, controller, database operation module and so on.
ADMINCP: Business code behind the scenes
Archiver: No plate (main directory that is the entrance, this is the business code is located)
Class: Frame, class Library
Function: Library of functions
Include: Required add-ons
Language: Multi-lingual support
Module: Controller Directory
Plugin: Plugin Directory
discuz_version.php Version Related information
Source\class Directory
The table directory holds all the code for the operation of the data table.
The Discuz directory is the frame body.
Class_core.php can be understood as the portal file for the framework, and all applications need to import this file.
Source\module Directory
Here is the controller, you can clearly see that the front desk is divided into eight applications.
Code Analysis of Discuz Learning (a) directory structure