From 3bb4f517fb75be22d91919cc38a691d51e64dc35 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Sat, 3 Feb 2018 05:16:19 +0000 Subject: [PATCH] lib/php/db/table.php --- lib/php/nb.php | 3 +-- www/dbq/dbq.php | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/php/nb.php b/lib/php/nb.php index 748c7b24..fb0aa914 100644 --- a/lib/php/nb.php +++ b/lib/php/nb.php @@ -12,6 +12,7 @@ require_once(NB_ROOT.'/lib/php/functions.php'); if (class_exists('NB')) return; # protect against double include class NB { + #public static function test() { static $i=0; echo ($i++)."\n"; } const ROOT_DIR = NB_ROOT; const NB_ROOT = NB_ROOT; @@ -38,8 +39,6 @@ class NB { # NB 19.01.18 'php' => 'text/x-php', # NB 19.01.18 ); - #public static function zaza() { return (is_object($this) ? 'TRUE' : 'FALSE'); } - #public static function test() { return 'TEST'; } public function __construct($opt = array()) { # Deep merge of vars diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 04140e37..b0c8d261 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -1137,7 +1137,8 @@ EOF; } elseif ($action == 'logout') { $this->page($this,'logout'); } elseif ($action == 'ssha_password') { $this->page($this,'ssha_password'); } elseif ($action == 'ssha512_password') { $this->page($this,'ssha512_password'); - } elseif ($action == 'cryptkey') { $this->page($this->db,'cryptkey',['key']); +# NB 03.02.18 } elseif ($action == 'cryptkey') { $this->page($this,'cryptkey',['key']); + } elseif ($action == 'cryptkey') { $this->page($this->cryptkey()); } elseif ($action == 'status') { $this->page($this,'status'); } elseif ($action == 'conf') { $this->page($this,'conf'); } elseif ($action == 'types') { -- 2.47.3