/**
* Full installation of the program is determined by (a) the settings.php file existing and (b)
* the "installationComplete" setting value existing in the database. Note: this function assumes
* the database connection in Core::$db has already been created.
* @access public
*/
public static function checkIsInstalled()
{
if (!self::$settingsFileExists) {
return false;
}
// attempt to make the connection
Core::initDatabase();
$installationComplete = Settings::getSetting("installationComplete");
if (!isset($installationComplete) || $installationComplete == "no") {
return false;
}
return true;
}