xoops_version.php (Example)
Overview
The most important file for the module, which contains various module config variables.非常重要的,包括不同模块的配置变量.
header.php
Overview
Inclusion of required core files is done here.核心存储文件
index.php
Overview
Module main contents come here.模块主要内容
/admin
Overview
All the admin related files for the module belong to this directory. Access to this directory must be restricted.模块属于这个目录,限制访问这个目录.
Files in this directory
admin_header.php
Permission checks, inclusion of mainfile.php and language files are done here.测试验证,包括mainfile.php 和语言文件.
index.php
Module administration contents come here.模块管理内容
menu.php
This file includes variables used for creating popup admin menu for the module.包括用来创建phpup管理菜单的变量
/language
Overview
This directory should at least contain 'english' directory, which in turn contains files that define language constants.定义语言常量,至少包括'english'目录.
Files in this directory
english/main.php
Defines language constants used in module main contents.定义模块主要内容的常量
english/admin.php
Defines language constants used in module admin sections. If there are not many language Constants used in the administration pages, this file may be merged with english/main.php.定义模块管理部分的语言常量.如果不存在语言常量,这个文件就和english/main.php合并
english/modinfo.php
Defines language constants used in xoops_version.php定义语言常量,用于xoops_version.php
english/blocks.php
Defines language constants used in blocks/blocks.php定义语言常量,用于blocks/blocks.php
/blocks
Overview
This directory contains files that define block display/edit functions定义block展示编辑函数
Files in this directory
- blocks.php
/sql
Overview
SQL dump files used for module installation belong to this directory.用于模块安装数据导入
Files in this directory
mysql.sql
mysql dump file
postgresql.sql
postgreSQL dump file
/images
Overview
Image files come here, if any.
Files in this directory
Any image files used in the module.
/cache
Overview
Files that are created/updated dynamically belong to this directory. To create new files within the directory, the permission of this directory should be set writeable by the server (chmod 666 or 777 for UNIX/LINUX servers).存放动态创建更新的文件,需该目录设置为可写.
Files in this directory
The permission of files in this directory should be set writeable by the server (chmod 666 or 777 for UNIX/LINUX servers).
/templates
Overview
HTML files for Xoops 2 RC3 and later module templates to be called by xoops_version.php &modversion array.HTML文件,之后由xoops_version.php和modversion array掉用
Files in this directory
all templates used in module.
/templates/blocks
Overview
HTML files for Xoops 2 RC3 and later module blocks templates to be called by xoops_version.php &modversion array for 'blocks' items. Those files uses smarty vars to display module informations.用smarty来显示模块信息
Files in this directory
all templates used in module blocks. Those files uses smarty blocks vars to display module blocks informations.