write_configure('MODULE_' . strtoupper($entry) . '_STATUS', constant('MODULE_' . strtoupper($entry) . '_VERSION')); // Load the remaining configuration constants foreach ($install_mod->keys as $key => $value) { write_configure($key, $value); } if ($task == 'demo') { if ($install_mod->load_demo()) { $error = true; } } // load demo data if ($entry != 'phreedom') { $install_mod->load_reports($entry); } if ($entry == 'phreeform') { $temp_mod = new phreedom_admin(); $temp_mod->load_reports('phreedom'); } } if ($install_mod->install($entry)) { $error = true; } // install any special stuff if ($error) { $messageStack->add(sprintf(MSG_ERROR_MODULE_INSTALL, $entry), 'error'); } break; default: case 'data': $table_list = array(); if (is_array($install_mod->tables)) {
} // install any special stuff if ($error) { $messageStack->add(sprintf(MSG_ERROR_MODULE_INSTALL, $entry), 'error'); } if (sizeof($install_mod->notes) > 0) { $params = array_merge($params, $install_mod->notes); } } } } // load phreedom reports now since table exists if (DEBUG) { $messageStack->debug("\n installing phreedom."); } $install_mod = new phreedom_admin(); $install_mod->load_reports('phreedom'); if ($error) { $messageStack->add(sprintf(MSG_ERROR_MODULE_INSTALL, $module), 'error'); } else { // load all other modules and execute install script foreach ($contents as $entry) { // install each module if (in_array($entry, $core_modules)) { continue; } // core module, already installed if ($entry != '.' && $entry != '..' && is_dir(DIR_FS_MODULES . $entry)) { if (DEBUG) { $messageStack->debug("\n installing additional module = " . $entry); }