]> git.nbdom.net Git - nb.git/commitdiff
lib/php/nb.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 21 Oct 2017 02:04:29 +0000 (03:04 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 21 Oct 2017 02:04:29 +0000 (03:04 +0100)
bin/dbq
lib/php/db/page.php
lib/php/nb.php

diff --git a/bin/dbq b/bin/dbq
index 895373e0c8f74ffc157d27ce830451c3017c7435..707673d1a0781ff3f8c17a670f32e7182a0a0dbd 100755 (executable)
--- a/bin/dbq
+++ b/bin/dbq
@@ -112,6 +112,7 @@ if ($ENV{$UC_NAME.'_PARAMS'}) {
 my $url = ($ENV{$UC_NAME.'_URL'} ? $ENV{$UC_NAME.'_URL'} :
   ( -e $ROOT_DIR.'/lib/php/db/dbq.php' ? $ROOT_DIR.'/lib/php/db/dbq.php' : '' )
 );
+
 if (!$Opt{ssh} and @ARGV and ($ARGV[0] =~ m|^\w+://| or -e $ARGV[0] )) {
   $url = shift @ARGV;
   @EXEC = grep {$_ ne $url} @EXEC;
index 2f69c69ed1589cb7c4252f62933dd9f85f6c8599..16f771f8ea8586f3ffc92482eae261ac84e41d91 100644 (file)
@@ -16,10 +16,13 @@ $Page = new Page([
   ],
   'content_type' => Page::content_type_and_set_format(),
   'nav' => [
-    [ (!empty($Db) and !empty($Db->title)) ? $Db->title : 'Home', '/'],
-    ( (!empty($Table) and !empty($Table->name)) ? [Page::prettyText($Table->name),Page::path().'?table='.urlencode($Table->name)] : '' ),
-    ( Page::p('action') ? Page::prettyText(Page::p('action')) : '' ),
+    [ 'Home', '/' ]
   ],
+# NB 21.10.17   '_nav' => [
+# NB 21.10.17     [ (!empty($Db) and !empty($Db->title)) ? $Db->title : 'Home', '/'],
+# NB 21.10.17     ( (!empty($Table) and !empty($Table->name)) ? [Page::prettyText($Table->name),Page::path().'?table='.urlencode($Table->name)] : '' ),
+# NB 21.10.17     ( Page::p('action') ? Page::prettyText(Page::p('action')) : '' ),
+# NB 21.10.17   ],
   'call' => array(
     'begin',
     #['out', "Hello World !!!\n"],
index c5982dd875926137bf56cab5a53291421439bd00..24cadcaf6e340fbfb00a9b8d2f2d1f29dc90443a 100644 (file)
@@ -4,8 +4,7 @@ if (!defined('NB_PROD') and defined('PRODUCTION')) define('NB_PROD',PRODUCTION);
 if (!defined('NB_EOL')) define('NB_EOL',(defined('NB_PROD') and NB_PROD) ? '' : "\n");
 
 # use _GET instead of _REQUEST
-# if (!defined('NB_P_GET'))
-define('NB_P_GET',false);
+if (!defined('NB_P_GET')) define('NB_P_GET',false);
 
 require_once(NB_ROOT.'/lib/php/functions.php');