require_once $html_path . 'lib-common.php'; // including lib-common.php overwrites our $language variable $language = INST_getLanguage(); // Log any missing plugins foreach ($_MISSING_PLUGINS as $m_p) { COM_errorLog($LANG_MIGRATE[26] . $LANG_MIGRATE[27] . $m_p . $LANG_MIGRATE[28]); } $disabled_plugins = 0; if ($version != VERSION) { // We did a database upgrade above. Now that any missing plugins // have been disabled and we've loaded lib-common.php, perform // upgrades for the remaining plugins. $disabled_plugins = INST_pluginUpgrades(true, $_OLD_CONF); } // finally, check for any new plugins and install them INST_autoinstallNewPlugins(); /** * Check for other missing files * e.g. images/articles, images/topics, images/userphotos */ $missing_images = false; // Article images $missing_article_images = false; $result = DB_query("SELECT `ai_filename` FROM {$_TABLES['article_images']}"); $num_article_images = DB_numRows($result); for ($i = 0; $i < $num_article_images; $i++) { $article_image = DB_fetchArray($result); // if (!file_exists($html_path . 'images/articles/' . $article_image['ai_filename'])) { // If article image does not exist // Log the error
/** * Handle default install of available plugins * * Picks up and installs all plugins with an autoinstall.php. * Any errors are silently ignored ... * */ function INST_defaultPluginInstall() { global $_CONF, $_TABLES, $_DB_dbms, $_DB_table_prefix; if (!function_exists('COM_errorLog')) { // "Emergency" version of COM_errorLog function COM_errorLog($a, $b = '') { return ''; } } INST_autoinstallNewPlugins(); }