The page "index.php"

The index page is composed from 3 parts :

  1. A menu (automatically generated)

  2. Custom infos box if desired.

  3. A configuration info box.

To create an index, we userenderIndex():

$variable_name->renderIndex();

By default there are only 2 configurations listed :

  1. PHP Version (obtained from the variable $modversion['min_php'] inside xoops_version.php).

  2. 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:

Last updated