WIKINDX CLASSES

SYSTEMCHECK

Class Call:
include_once("core/init/SYSTEMCHECK.php");
new SYSTEMCHECK(DATABASE OBJECT: $db, ASSOC_ARRAY: $vars);

Description:
$db is the database object created in index.php and $vars is an associative array of user input also obtained in index.php.

Creating a new SYSTEMCHECK object in index.php runs some system checks on WIKINDX:
1/ If database has been newly created (outside WIKINDX), check it has appropriate tables and, if not, populate the database with tables using update/createMySQL.txt and inititialize WKX_database_summary and WKX_group.
2/ Check database version agrees with dbVersion(). If not, run database update script update/updateMySQL.txt.
3/ If the WKX_config table has not yet been populated, present the user (hopefully admin) with admin configuration.
4/ Write some default variables from WKX_config to the session.

Methods:
There are no public methods.

WIKINDX home      WIKINDX usage      WIKINDX classes