diff options
author | friendica <info@friendica.com> | 2013-04-22 20:02:21 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-04-22 20:02:21 -0700 |
commit | 552f03122c9ec066f5728fc4629d155937fd3620 (patch) | |
tree | 1e8a585b52fa28d1c47abd70d89bb1225fe99eb7 /util/db_update.php | |
parent | 7621bd3bb171c7a4772e4663ee43b86a55a1f7c0 (diff) | |
download | volse-hubzilla-552f03122c9ec066f5728fc4629d155937fd3620.tar.gz volse-hubzilla-552f03122c9ec066f5728fc4629d155937fd3620.tar.bz2 volse-hubzilla-552f03122c9ec066f5728fc4629d155937fd3620.zip |
db abstraction layer
Diffstat (limited to 'util/db_update.php')
-rw-r--r-- | util/db_update.php | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/util/db_update.php b/util/db_update.php index 775a6585a..ceef061c1 100644 --- a/util/db_update.php +++ b/util/db_update.php @@ -1,24 +1,14 @@ <?php + + /** * @package util */ -/* -* require boot.php -*/ -require_once("boot.php"); - -$a = new App; -@include(".htconfig.php"); - -$lang = get_best_language(); -load_translation_table($lang); - -require_once("dba.php"); -$db = new dba($db_host, $db_user, $db_pass, $db_data, false); - unset($db_host, $db_user, $db_pass, $db_data); +require_once('boot.php'); +require_once('include/cli_startup.php'); -$build = get_config('system','build'); +cli_startup(); echo "Old DB VERSION: " . $build . "\n"; echo "New DB VERSION: " . DB_UPDATE_VERSION . "\n"; |