]> git.nbdom.net Git - nb.git/commitdiff
php425
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 27 Oct 2016 16:10:54 +0000 (18:10 +0200)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 27 Oct 2016 16:10:54 +0000 (18:10 +0200)
etc/dbq/nb.php

index 42c28662d71c5254002f7bc4dd4f9565673d46ea..f751a60b44261027750a41e7da2f6c644bb8edcd 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-$DBQ['nb'] = array(
+$DBQ['nb'] = [
   'host' => '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('@^(?:<div[^>]+>)?(.*?)(?:</div>)?$@','<div class="list">'.trim($revision).'\1</div>',$r['doc']);
 
       }),
-    ),
+    ],
 
   ),
-);
+];
 
 if (strpos(php_uname("n"),'ovh.net')!==false) $DBQ['nb']['order'] = 1;
 return 1;