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;
# 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
} 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') {