- -
:: sql_layer; ?>
-' . $config['version'] . '
';
-echo $lang['UPDATED_VERSION'] . ' :: ' . $updates_to_version . '
'; - echo '
' . $lang['ERROR'] . '
'; - - echo '
' . $lang['FIREBIRD_DBMS_UPDATE_REQUIRED'] . '
'; - - _print_footer(); - - exit_handler(); - exit; - } - - $db->sql_freeresult($result); - $db->sql_return_on_error(false); -} - -// MySQL update from MySQL 3.x/4.x to > 4.1.x required? -if ($db->sql_layer == 'mysql' || $db->sql_layer == 'mysql4' || $db->sql_layer == 'mysqli') -{ - // Verify by fetching column... if the column type matches the new type we update dbms_version... - $sql = "SHOW COLUMNS FROM " . CONFIG_TABLE; - $result = $db->sql_query($sql); - - $column_type = ''; - while ($row = $db->sql_fetchrow($result)) - { - $field = strtolower($row['Field']); - - if ($field == 'config_value') - { - $column_type = strtolower($row['Type']); - break; - } - } - $db->sql_freeresult($result); - - // If column type is blob, but mysql version says we are on > 4.1.3, then the schema needs an update - if (strpos($column_type, 'blob') !== false && version_compare($db->sql_server_info(true), '4.1.3', '>=')) - { - echo ''; - echo '
' . $lang['ERROR'] . '
'; - - echo '
' . sprintf($lang['MYSQL_SCHEMA_UPDATE_REQUIRED'], $config['dbms_version'], $db->sql_server_info(true)) . '
'; - - _print_footer(); - - exit_handler(); - exit; - } -} - -// Now check if the user wants to update from a version we no longer support updates from -if (version_compare($current_version, $oldest_from_version, '<')) -{ - echo '' . $lang['ERROR'] . '
'; - echo '
' . sprintf($lang['DB_UPDATE_NOT_SUPPORTED'], $oldest_from_version, $current_version) . '
'; - - _print_footer(); - exit_handler(); - exit; -} - // If the latest version and the current version are 'unequal', we will update the version_update_from, else we do not update anything. if ($inline_update) { @@ -331,17 +220,6 @@ } // Schema updates -?> -- - - -
-
::
-
-
-
- ::
-
-
-
- ::
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-purge();
-_print_footer();
+//_print_footer();
garbage_collection();
@@ -514,32 +340,9 @@
}
/**
-* Print out footer
-*/
-function _print_footer()
-{
- echo <<