SHOPNC Mall Program Framework files are mainly composed of class files and function files.
System library is mainly stored in the framework of the libraries, cache, core and TPL directory, librarites storage is a number of class libraries, the cache is the storage of a variety of caching driver classes, the core is stored in the kernel base class and model processing class, TPL only holds view class TPL.
1) Main class documents and brief description
libraries/email.php Mail Sending Class
libraries/ftp.php FTP Processing Class
libraries/gdimage.php Watermark Class
libraries/json.php JSON processing class
libraries/language.php Language Pack Processing class
Libraries/log.php Log Class
libraries/page.php Pagination Class
libraries/resizeimage.php Picture Cutting class
Libraries/seccode.php Verification Code Processing class
libraries/security.php Character Filter Class
libraries/sphinx.php Sphinx Full-Text Search class
Libraries/upload.php Upload Class
libraries/validate.php PHP Back-end validation class
cache/cache.php cache uniform processing class, which is the operation entry for each cache class
cache/cache.file.php File Cache class
Cache/cache.apc.php APC Cache Class
cache/cache.xcache.php XCache Cache Class
cache/cache.memcache.php Memcache Cache Class
cache/cache.eaccelerator.php Eaccelerator Cache Class
cache/cache.table.php Table Cache Class
Core/model.php Model Class
core/db.php database Operations middle tier, bounded by model and data-driven intermediate processing classes
db/mysql.php MySQL extended MySQL database driver
db/mysqli.php mysqli extended MySQL database driver
db/pdo_mysql.php pdo_mysql extended MySQL database driver
db/oci8.php oci8 Extended Oracle Database Driver
Tpl/nc.php template class (view Class)
2) System functions
are stored in the Framework/function directory, taking into account the future expansion, the system and the function of the function to split into different files,
General functions of core.php Storage System
goods.php functions for storing information related to goods, orders, stores
ftp.php related functions for storing FTP operations
seccode.php functions that store CAPTCHA operations
build.php function for storing frame compression
System-referenced third-party open source programs are placed in the/resource directory, mainly containing the following subdirectories
Avatar Storing Avatar Upload component
CLICKSWF Store Click Statistics Flash Component
Font Store fonts
JS Store js file
Kindeditor Store Kindeditor Editor
Phpqrcode storing two-dimensional code components
Seccode storing the elements required for validation
Web_config Store First edit module edit Required Components
3) System Constants Reference
[projectname]=> Project Name
[buildcore]=> whether the frame is compressed (true/false)
[basepath]=> System base directory (e.g./VAR/WWW/SHOPNC)
[DS] = Directory Separator/
[inshopnc]=> Legal Call Judgment flag
[starttime]=> system start run time (e.g. 1350096132.6587)
[timestamp]=> system Current time (e.g. 1350096132)
[runcorepath]=> compressed frame directory (e.g./var/www/shopnc/cache/~shopnc.php)
[siteurl]=> Mall URL address (http://www.shopnc.net)
[charset]=> system Encoding (UTF-8/GBK)
[dbdriver]=> Database access drivers (mysqli, MySQL, Pdo_mysql, oci8)
[session_expire]=> Cache period, units (seconds)
[lang_type]=> language Pack, default Simplified Chinese zh_cn
[cookie_pre]=> COOKIE prefix, System automatically generated
directory where the [core_path]=> framework is located (e.g./var/www/shopnc/framework)
[tpl_name]=> template style, default defaults
[base_tpl_path]=> template file directory (e.g./var/www/shopnc/templates/default)
[resource_path]=> External Resource directory address (e.g. Http://www.shopnc.net/resource)
[Dbpre] = database table prefix default shopnc_
[attach_path]=> attachment directory, default upload
[attach_common]=> Generic Attachment directory default Upload/common
[attach_avatar]=> Avatar Directory default Upload/avatar
[attach_store]=> Store information Directory default Upload/store
[attach_goods]=> Store Product Catalog default Upload/store/goods
[attach_auth]=> Store ID Directory default Upload/auth
[attach_mobile]=> Mobile Client Content directory default Upload/mobile
[attach_link]=> Links Logo Directory default Upload/link
[attach_article]=> Article attachment directory default Upload/article
[attach_brand]=> Brand Accessories Catalog Default Upload/brand
[attach_adv]=> AD Image Catalog default Upload/adv
[attach_activity]=> Promotions Directory Default upload/activity
[attach_coupon]=> Coupon Directory default Upload/coupon
[attach_watermark]=> Watermark Image Directory default Upload/watermark
[attach_pointprod]=> points product Picture catalog default Upload/pointprod
[attach_spec]=> Custom Specifications Picture Catalog default Upload/spec
[attach_groupbuy]=> Group purchase picture catalog default Upload/groupbuy
[attach_slide]=> store QR code directory default Upload/store/slide
[attach_voucher]=> Voucher Template Directory default Upload/voucher
[templates_path]=> Template URL access address (e.g. Http://www.shopnc.net/templates/default)
Automatic generation of [md5_key]=> Md5_key value system
SHOPNC Study Note II: Introduction to core files and constants