The page "index.php"
Last updated
Last updated
The index page is composed from 3 parts :
A menu (automatically generated)
Custom infos box if desired.
A configuration info box.
To create an index, we userenderIndex()
:
By default there are only 2 configurations listed :
PHP Version (obtained from the variable $modversion['min_php']
inside xoops_version.php).
XOOPS version (obtained from the variable $modversion['min_xoops']
inside xoops_version.php).
If both variables are defined in xoops_version.php
, we get automatically this info box:
We can add 3 other types of configuration. 1. Display text. 1. Verifying the existence of a file. 1. Checking the chmod of a file.
To add a configuration line, on we use addConfigBoxLine()
:
$value
: With type 'folder' we have to put the folder path. With type 'chmod' we have to put a table with the folder path as a first parameter and the desired chmod as as a second one.
$type
: 'default', 'folder' or 'chmod'.
Example:
The Result: