. ************************************************************************ */ /** * * install.php, TSM Monitor * * install php file * * @author Frank Fegert * @package tsmmonitor */ include_once "includes/global.php"; if ($_REQUEST["step"] != "30" && $_REQUEST["step"] != "40") { include_once "includes/page_head.php"; } // allow the upgrade script to run for as long as it needs to ini_set("max_execution_time", "0"); $tsm_monitor_versions = array("0.1.0", "0.1.1"); $old_tsm_monitor_version = fetchCellDB("select confval from cfg_config where confkey='version'", '', $conn); // try to find current (old) version in the array $old_version_index = array_search($old_tsm_monitor_version, $tsm_monitor_versions); /* do a version check */ if ($old_tsm_monitor_version == $config["tsm_monitor_version"]) { echo "
Error
\nThis installation is already up-to-date. Click here to use TSM Monitor.
\n \n \n