//gu_config::set('admin_email', $admin_email); gu_config::set('salt', $salt); return gu_config::save(); } /** * Main update script */ function gu_update() { return gu_config::save(); } // If pluxml is used if (isset($_profil['salt'])) { $salt = $_profil['salt']; } else { $salt = gu_config::plx_charAleatoire(); } // If settings already exist, go into update mode $update_mode = gu_config::load(); // Check if everything is already up-to-date $install_success = $update_mode && gu_config::get_version() == GUTUMA_VERSION_NUM; if (!$install_success) { // Run installtion or update script if ($update_mode && is_post_var('update_submit')) { $install_success = gu_update(); } elseif (!$update_mode && is_post_var('install_submit')) { $install_success = gu_install(get_post_var('collective_name'), get_post_var('admin_username'), sha1($salt . md5(get_post_var('admin_password'))), get_post_var('admin_email'), $salt); } } // Get title of page if ($install_success) {