1 Install and upgrade
1.1  System Requirements
1.2  Source Code Installation
1.3  One-Click Installation for Windows
1.4  Zsite, ZenTao and Zdoo
1.5  Install Zsite with online scripts
1.6  Upgrade Zsite
1.7  Upgrade Zsite with online scripts
1.8  Zsite Themes
1.9  Decryption
2 About Zsite
2.1  About Zsite
2.2  Marketing in the era of mobile internet
2.3  Zsite License
2.4  Zsite and ZenTao
3 How to use Zsite
3.1 Content
3.1.1 Article
3.1.1.1  Article Category
3.1.1.2  Publish an Article
3.1.1.3  Edit, Delete and Attach
3.1.2 Page
3.1.2.1  Zsite Page
3.1.3 Blog
3.1.3.1  Zsite blog
3.1.4 Book
3.1.4.1  Add a book
3.1.4.2  Add chapters to a book
3.1.4.3  Write articles for a chapter
3.1.4.4  Book settings
3.1.5 Submission
3.1.5.1  Submit an article
3.2 Mall
3.2.1  Orders and Settings
3.2.2 Product
3.2.2.1  Product category
3.2.2.2  Add a product: basic info
3.2.2.3  Add a product: attributions
3.2.2.4  Add a product: images
3.3 User
3.3.1 User Management
3.3.1.1  User list
3.3.2 Comment
3.3.2.1  Review and reply a comment
3.3.3 Forum
3.3.3.1  Board settings
3.3.3.2  Board moderator and descriptions
3.3.3.3  Edit, delete, reply and stick a thread
3.4 SEO
3.4.1  Traffic Statistics
3.4.2  Keywords
3.4.3  Links
3.5 UI
3.5.1 Interface
3.5.1.1  Theme
3.5.1.2  Layout
3.5.1.3  Appearance
3.5.1.4  Code
3.5.1.5  Source
3.5.1.6  Mobile site
3.5.2 Logo
3.5.2.1  Site logo
3.5.2.2  Site favicon
3.5.3  Slides
3.5.4  Navigation
3.5.5 Widget
3.5.5.1  Manage a widget
3.5.5.2  Example: customized widget
3.5.5.3  Example: use Widget to set the style
3.5.6  Visual Editor
3.5.7  Other Settings
3.5.8  Custom Themes
3.6 Ext
3.6.1  Extensions and Themes
3.6.2  Import JS
3.7 Set
3.7.1 Site
3.7.1.1  Basic settings
3.7.1.2  Language
3.7.1.3  Path
3.7.1.4  Domain settings
3.7.1.5  CND settings
3.7.1.6  Cache settings
3.7.1.7  Homepage menu
3.7.1.8  Full text retrieval
3.7.1.9  Backup/Restore
3.7.1.10  Agreement
3.7.1.11  Static Settings
3.7.2 Company
3.7.2.1  Company Information
3.7.2.2  Contact
3.7.3  Points
3.7.4 API
3.7.4.1  Email Setting
3.7.4.2 OAuth
3.7.4.2.1  GitHub
3.7.4.2.2  Facebook
3.7.5 Security
3.7.5.1  Basic settings
3.7.5.2  Filters and Blacklist/Whitelist
3.7.5.3  Sensitive words and attachment
3.7.5.4  Verification Code
3.7.5.5  Admin and Privileges
4 System Maintenance
4.1  Configure web server for URL
4.2  Backup Zsite
4.3  Install Zend Guard Loader
4.4  Install Ioncube
4.5 Install other PHP extensions
4.5.1  Install PHP-openssl
4.5.2  Install PHP-curl
4.5.3  Install PHP-json
4.5.4  Install PHP-mbstring
4.5.5  Install PHP-gd
4.5.6  Install PDO
5 Customization
5.1  Before you start
5.2  Zsite source code
5.3  Zsite directory structure
5.4  Find the code to modify
5.5  Database structure
6 Zsite Cloud
6.1  Zsite License
6.2  Zsite versions
6.3  Resolve domain name to Zsite server
6.4  Why my site is locked?
6.5  How to backup my Zsite data?

Zsite directory structure

2016-08-29 10:12:30
tengfei
10728
Last edited by Zeze on 2018-06-01 15:58:55

|--system                                                       Zsite system file. Can be put in the directory of www

|   |--bin                                                         executable files, scripts, such as calls by command lines

|   |--config                                                    system configuration files

|   |   |--config.php                                         default global configuration files. Can be overrode by other variables having the same name

|   |   |--admin.php admin                               user permission configuration

|   |   |--cache.php                                          cache configuration

|   |   |--domain.php                                        top level domains configuration

|   |   |--front.php                                            configuration of visitors and members permissions at the frontend

|   |   |--guarder.php                                       access configuration

|   |   |-- menu.php                                           backend menu configuration

|   |   |--router .php                                          SEO configuration

|   |   |--shop .php                                            Alipay configuration

|   |   |- - my.php                                                database connection configuration and install and debug configuration

|   |--db                                                           SQL fils for installation and update

|   |   |-- chanzhi.sql                                          install php

|   |   |--upgrade1.0.                                        sql 1.0 upgrade

|   |--doc                                                         documents, such as modification records, license release etc.

|   |--framework                                               ZentaoPHP and MVC framework

|   |   |--control.class.php                                request processing

|   |   |--helper.class.php                                 tools

|   |   |--model.class.php                                 data layer operation

|   |   |--router.class.php                                  data forwarding

|   |   |-- seo.class.php                                     SEO

|   |--lib                                                           lib tools, including third party lib。

|   |   |--dao                                                    database operation, SQL shield。

|   |   |--filter                                                    data filtering, format checkup, batch calls in DAO, such as check, batchcheck, autocheck

|   |   |--front                                                   HTML, JS, CSS output and unified html output format, such as a/script/img tabs

|   |   |--ip                                                        IP address port provided by IPIP.net

|   |   |--pager                                                 paging, page button, print and data query paging

|   |   |--pclzip                                                  compression tools

|   |   |--snoopy                                               http communication aids

|   |   |--zdb                                                     database backup and recover

|   |   |--zfile                                                     document functions

|   |--module                                                   Zsite all function modules

|   |   |--address                                              address management

|   |   |   |--config.php                                       module configuration, such as required, search criteria

|   |   |   | --control.php                                      module on each page

|   |   |   | --model.php                                       module data storage

|   |   |   | --lang                                                 language

|   |   |   |   | --zh-cn.php                                    Simplified Chinese

|   |   |   |   | --en .php                                         English

|   |   |   |   | --zh-tw.php                                     traditional Chinese

|   |   |   | --js                                                     js in this module

|   |   |   |   | --common.js                                   load js in each page of the module

|   |   |   |   | --index.js                                        js in all address-index

|   |   |   | --css                                                  css in this module

|   |   |   |   | --common.css                               load css in each page of the module

|   |   |   |   | -- index.css                                    oad css in each page of the module

|   |   |   | --ext                                                  extension directory (no such file in default settings)

|   |   |   |   | -- config                                         load all configuration file in this directory

|   |   |   |   |   | -- test.php                                   customized configuration

|   |   |   |   | --control                                          control/page extension (ref http://devel.cnezsoft.com/book/extension/extend-control-37.html)

|   |   |   |   |   | --index.php                                address-index page extension

|   |   |   |   | --model                                         module/data extension (ref http://devel.cnezsoft.com/book/extension/extend-control-38.html

|   |   |   |   |   | --foo.php                                   foo extension in address model

|   |   |   |   | --view                                            page extension in this module (ref http://devel.cnezsoft.com/book/extension/extend-control-39.html)

|   |   |   |   |   | --index.html.php                        content extension on index page

|   |   |   |   | --lang                                            language file extension (all files in this directory will be loaded)

|   |   |   |   |   | --en                                           English extension

|   |   |   |   |   |   | --index.php 

|   |   |   |   |   | --zh-cn                                       simplified Chinese extension

|   |   |   |   |   |   | -- index.php 

|   |   |   |   | --js                                                js extension

|   |   |   |   |   | --index                                       js extension on index page ( all js files in this directory will be printed on this page)

|   |   |   |   |   |   | --test.js 

|   |   |   |   | --css                                               css file extension

|   |   |   |   |   | --index                                        css extension on index page ( all css files in this directory will be printed on this page)

|   |   |   |   |   |   | --test.css

|   |   |--admin

|   |   |--......

|   |   |--block

|   |--tmp                                                         temporary files and logs

|   |   |-- backup                                               backup storage

|   |   |--cache                                                 system cache storage

|   |   |--model                                                 tempory merge extension files

|   |   |--package                                             temporary compress extension files

|   |   |--template                                             temporary backend template files

|   |   |--theme                                                 temporary theme files

|--www                                                           required webserver frontend access files, ususally set as DocumentRoot

|   |--data                                                       files generated after running Zsite, such as uploaded pictures/ attachment, slides (need to migrate those files to your new web server if migrating Zsite)

|   |   |--slides                                                 slide files

|   |   |--source                                               material files

|   |   |--upload                                               attachment and pictures

|   |--template                                                Zsite template ( can be modify in "design"->"edit template" at backend)

|   |   |--default                                               default template

|   |   |   |--_doc                                              template settings, version included

|   |   |   |--_lang                                             template language, block settings included

|   |   |   |--address                                         frontend template of address

|   |   |   |   |--js                                                js files

|   |   |   |   |--css                                             css files

|   |   |--mobile                                               mobile template

|   |--index.php                                              frontend entrance files

|   |--admin.php                                             backend entrance files

|   |--robots.txt                                               search engine rules

|   |--upgrade.php                                         Upgrade entrance files

|   |--install.php                                              Installation entrance files

|   |--loader.php                                             framework loading