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 | |
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')
-rw-r--r-- | util/db_update.php | 20 | ||||
-rw-r--r-- | util/typo.php | 7 |
2 files changed, 12 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"; diff --git a/util/typo.php b/util/typo.php index fac60e8ec..427b97efa 100644 --- a/util/typo.php +++ b/util/typo.php @@ -19,6 +19,13 @@ include_once($file); } + echo "Directory: include/dba\n"; + $files = glob('include/dba/*.php'); + foreach($files as $file) { + echo $file . "\n"; + include_once($file); + } + echo "Directory: mod\n"; $files = glob('mod/*.php'); foreach($files as $file) { |