if (!icd_import($db)) { echo htmlspecialchars(xl('ERROR: Unable to load the file into the database.'), ENT_NOQUOTES) . "<br>"; temp_dir_cleanup($db); exit; } } } // set the revision version in the database if (!update_tracker_table($db, $file_revision_date, $version, $file_checksum)) { echo htmlspecialchars(xl('ERROR: Unable to set the version number.'), ENT_NOQUOTES) . "<br>"; temp_dir_cleanup($db); exit; } // done, so clean up the temp directory if ($newInstall === "1") { ?> <div><?php echo xlt("Successfully installed the following database") . ": " . text($db); ?> </div> <?php } else { ?> <div><?php echo xlt("Successfully upgraded the following database") . ": " . text($db); ?> </div> <?php } temp_dir_cleanup($db);
} // 4. set the revision version in the database echo htmlspecialchars(xl('Setting the version number in the database...'), ENT_NOQUOTES) . "<br>"; if (!update_tracker_table($mode, $file_revision_date)) { echo htmlspecialchars(xl('ERROR: Unable to set the version number.'), ENT_NOQUOTES) . "<br>"; temp_dir_cleanup($mode); exit; } // done, so clean up the temp directory if ($pending_new) { echo "<b>" . htmlspecialchars(xl('Successfully installed the database.'), ENT_NOQUOTES) . "</b><br>"; } else { //$pending_upgrade echo "<b>" . htmlspecialchars(xl('Successfully upgraded the database.'), ENT_NOQUOTES) . "</b><br>"; } temp_dir_cleanup($mode); } } else { if ($installed_flag) { ?> <?php echo htmlspecialchars(xl('The following database release is currently installed') . ": ", ENT_NOQUOTES) . "<b>" . htmlspecialchars($current_revision, ENT_NOQUOTES) . "</b><br>"; ?> <?php echo htmlspecialchars(xl('If you want to upgrade the database, then place the database zip file in the following directory') . ": contrib/" . $mode, ENT_NOQUOTES); ?> <br><br> <?php } else { // !$installed_flag ?>