$update_failed = false; } } } if ($update_failed) { $_SESSION["message_delay"] = 3500; $_SESSION["message_mood"] = 'negative'; $response_message = $text['message-upgrade_source_failed']; } else { //update scripts folder, if allowed (default) if ($_SESSION['switch']['scripts']['dir'] != '') { //copy the files and directories from resources/install $install = new install(); $install->domain_uuid = $domain_uuid; $install->switch_scripts_dir = $_SESSION['switch']['scripts']['dir']; $install->copy_scripts(); //set the message $response_message = $text['message-upgrade_source_scripts']; } else { //set the message $response_message = $text['message-upgrade_source']; } } } // load an array of the database schema and compare it with the active database if ($do["schema"] && permission_exists("upgrade_schema")) { $response_message = $text['message-upgrade_schema']; $upgrade_data_types = check_str($do["data_types"]); require_once "resources/classes/schema.php"; $obj = new schema(); $_SESSION["schema"]["response"] = $obj->schema("html");