From: Nicolas Boisselier Date: Thu, 27 Oct 2016 16:10:54 +0000 (+0200) Subject: php425 X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=7ddbd551bc8e0f2a8c91223c627868c766ff2a46;p=nb.git php425 --- diff --git a/etc/dbq/nb.php b/etc/dbq/nb.php index 42c28662..f751a60b 100644 --- a/etc/dbq/nb.php +++ b/etc/dbq/nb.php @@ -1,6 +1,6 @@ 'admin.izideal.vpn', 'type' => 'mysql', 'name' => 'nb', @@ -14,20 +14,20 @@ $DBQ['nb'] = array( 'agency' => [ 'row_parse_post' => function(&$r) { return rent_doc('agency',$r); }, ], - 'place' => array( + 'place' => [ #'replace' => [ 'id' => 'addr.addr' ], 'row_parse_post' => 'place_doc', - ), + ], - 'tenant' => array( + 'tenant' => [ 'row_parse_post' => 'tenant_doc', - ), + ], - 'test' => array( + 'test' => [ 'sql' => "SELECT 'Test sql table'", - ), + ], - 'rent' => array( + 'rent' => [ 'orderby' => 'start desc, end desc', #'replace' => [ 'idtenant' => 'tenant.name', 'idplace' => 'addr.addr' ], @@ -59,10 +59,10 @@ $DBQ['nb'] = array( $r['doc'] = preg_replace('@^(?:]+>)?(.*?)(?:)?$@','
'.trim($revision).'\1
',$r['doc']); }), - ), + ], ), -); +]; if (strpos(php_uname("n"),'ovh.net')!==false) $DBQ['nb']['order'] = 1; return 1;