From 0c874abcae378f4398a040e0575d12b681db5b35 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 13 Sep 2016 23:44:23 +0100 Subject: [PATCH] Bed --- lib/php/db/index.php | 9 --------- lib/php/db/shell.php | 7 ++----- lib/php/functions.php | 5 ++++- lib/php/nb.php | 1 + .../db => share/postgres}/postgres-create-functions.sql | 0 5 files changed, 7 insertions(+), 15 deletions(-) rename {lib/php/db => share/postgres}/postgres-create-functions.sql (100%) diff --git a/lib/php/db/index.php b/lib/php/db/index.php index beaf177e..0664afc1 100755 --- a/lib/php/db/index.php +++ b/lib/php/db/index.php @@ -7,15 +7,6 @@ * lib/php/db/index.php */ require_once(realpath(dirname(__FILE__).'/config.php')); -# NB 13.09.16 require_once(realpath(dirname(__FILE__).'/../config.php')); -# NB 13.09.16 require_once(realpath(dirname(__FILE__).'/../db.php')); -# NB 13.09.16 -# NB 13.09.16 Db::pinit(); -# NB 13.09.16 -# NB 13.09.16 if(defined('DB_NO_INIT') and DB_NO_INIT) return true; -# NB 13.09.16 #bye(Db::conf_load(array( Db::ROOT_DIR.'/etc/dbs.yaml','/etc/dbs.yaml' ))); -# NB 13.09.16 #$conf = Db::conf_load(array( Db::ROOT_DIR.'/etc/dbs.yaml','/etc/dbs.yaml' )); Db::init($conf); -# NB 13.09.16 Db::init([Db::ROOT_DIR.'/etc/dbs.yaml',Db::ROOT_DIR.'/etc/dbs.php','/etc/dbs.yaml']); if(defined('DB_NO_ACTION') and DB_NO_ACTION) return true; diff --git a/lib/php/db/shell.php b/lib/php/db/shell.php index b0959f7c..fd07f729 100755 --- a/lib/php/db/shell.php +++ b/lib/php/db/shell.php @@ -1,23 +1,20 @@ #!/usr/bin/env php