;
if ($opt['is_html'] and !empty(self::$params) and !$this->p('action') and !$this->p('inc')) {
- echo $this->html_menu($opt);
+ #echo $this->html_menu($opt);
}
if ($opt['is_html']) {
);
if ($this->perm < self::DELETE) return;
- if ($this->db->type == 'sqlite' and !is_writeable($this->db->host)) return;
+ static $delete = 1;
+ if (empty($delete)) {
+ $delete = ($this->db->type == 'sqlite' and !is_writeable($this->db->host));
+ }
+ if (!delete) return;
+# NB 03.02.18 if ($this->db->type == 'sqlite' and !is_writeable($this->db->host)) return;
$rm = $this->uri_add_referer($this->table->base.'/rm');
$r['delete'] = ''
} elseif ($action == 'ls') {
$this->page($this->db,'ls',[],function(&$r){
+ if ($this->perm < self::ADMIN) unset($r['host'],$r['type']);
$r['id'] = $this->page->tag('a',$r['id'],'href="'.$this->db->base.'/'.$r['id'].'"');
});