]> git.nbdom.net Git - nb.git/commitdiff
www/dbq/dbq.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 28 Aug 2024 22:41:25 +0000 (00:41 +0200)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 28 Aug 2024 22:41:25 +0000 (00:41 +0200)
www/dbq/dbq.php

index 1e2eaf5e664e70640fab2ef6c4623f56b9ed1300..934d5be5302e7a064749a6ad88586c47dec382f4 100644 (file)
@@ -1437,10 +1437,6 @@ EOF;
                } elseif ($action == 'status') {
                        $this->page($this->table->status()+$this->table->status(['fields']));
 
-               } elseif ($action == 'vi') {
-                       $this->deniedUnless($this->perm >= self::READ);
-                       $this->page($this,'vi');
-
                } elseif ($action == 'add') {
                        $this->deniedUnless($this->perm >= self::WRITE);
                        $this->page($this,'add');
@@ -1469,10 +1465,18 @@ EOF;
                        $this->redirect_if_no_referer($this->table->base.'/');
                        $this->page($info);
 
-
                } elseif (preg_match('/^fields=(.*)\s*$/',$action,$m)) {
                        $this->page_table_ls($m[1]);
 
+               } elseif ($action == 'vi'
+                       # NB 29.08.24 or $action!=""
+               ) {
+                       if ($action != 'vi') $this->params['args'] = $action;
+               #bye($this->params);
+                       $this->deniedUnless($this->perm >= self::READ);
+                       $this->page($this,'vi');
+
+
                } else {
                        $this->notImplemented('Unknown table action'." `$action`");