]> git.nbdom.net Git - nb.git/commitdiff
www/dbq/dbq.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 8 Dec 2017 07:33:06 +0000 (07:33 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 8 Dec 2017 07:33:06 +0000 (07:33 +0000)
www/dbq/dbq.php
www/dbq/update.sh

index e86007a11e9d4166974628eef12551189a4fed78..8755aad195de16379d0d7743a5daa2f09fefd6dd 100644 (file)
@@ -79,6 +79,8 @@ class DbQ extends nb {
        public $table;
        public $db;
 
+       protected $idtemplate;
+
        public function __construct($opt=[]) {
                //
                // Pre defaults values
@@ -685,6 +687,11 @@ EOF;
                // Format first !
                if ($this->params['format']) {
                        $format = $this->params['format'];
+# NB 08.12.17: TODO 
+# NB 08.12.17                  if (preg_match("/^(.*)\.tmpl/",$format,$m)) {
+# NB 08.12.17                          $this->idtemplate = $m[1];
+# NB 08.12.17                          $format = 'template';
+# NB 08.12.17                  }
 
                } else if ($content_type = self::client_content_type() and ( $format=Mime::toExt($content_type) )) {
                        #$format = $format;
@@ -973,7 +980,6 @@ EOF;
                $this->db(true); # Db Connections
                $action = $this->params['table'];
                if (!$action and self::PARAM_DB_DEFAULT) $action = self::PARAM_DB_DEFAULT;
-# NB 27.12.16     $this->params['table'] = '';
 
                if ($action == 'help') {
                        $this->page($this->db,[
index b2a1d1be46f16fe50b2fe4816baffa40a68fcd6c..d3b3c8ead01a5713fe0261d9297d8e32c31b8bc2 100755 (executable)
@@ -16,7 +16,7 @@ for f in $(find html -type f \( -name '*.css' -o -name '*.js' \) -a -not -name '
   eval minify --$ext < "$f" > "$min.bak" && mv "$min.bak" "$min"
   [ "$?" = "0" ] || ex=1
   #git add "$min"
-  [ "$ex" = "0" ] && echo DEBUG: Should: git add "$min"
+  #[ "$ex" = "0" ] && echo DEBUG: Should: git add "$min"
   #[ "$ex" = "0" ] && git add "$min" && echo "DEBUG: git add $min"
 
 done