nproc${s}$(sys_nproc)
date_install${s}$(sys_date_install)
ips${s}$(echo -n $(ips 2>/dev/null))
-public_ip${s}$( (http_get http://nbdom.net/myip || curl -s http://nbdom.net/myip) 2>/dev/null)
+public_ip${s}$( (http_get http://nicolas.boisselier.free.fr/myip/) 2>/dev/null)
EOF
}
DELETE FROM mime;
CREATE TEMPORARY TABLE tmp_mime ON COMMIT DROP AS SELECT * FROM mime LIMIT 0;
-COPY mime FROM STDIN WITH (format 'text', NULL '');
+COPY mime (ext,type,name) FROM STDIN WITH (format 'text', NULL '');
x3d application/vnd.hzn-3d-crossword 3D Crossword Plugin
3g2 video/3gpp2 3GP2
mseq application/vnd.mseq 3GPP MSEQ File
$this->db->limit = $this->limit();
$ropt = [
#'html_menu' => empty($this->_nopage),
- 'is_html' => empty($this->_nopage),
+# NB 07.06.18 'is_html' => empty($this->_nopage),
+ 'is_html' => $this->page->is('html'),
];
if (!empty($this->_nopage)) {
$this->table->show_url_sort = false;
return $h;
}
+ private function default_format() {
+ return
+ (!empty($_SERVER['HTTP_USER_AGENT']) and preg_match($this->format_html_ua_exp,$_SERVER['HTTP_USER_AGENT']))
+ ? 'html'
+ : $this->format_cli
+ ;
+ }
public function format($set=null) {
if ($set === null) return $this->params['format'];
$this->uri = $path;
$this->uri_params = explode($this->expode_args,$args);
- // We accept sub extention, that will determine if we wanr to print the full page
+ // We accept sub extention, that will determine if we want to print the full page
if (preg_match('/\.((\w+)(\.html)?)$/',$path,$m)) {
$path = substr($path,0,strlen($path)-strlen($m[1])-1);
$values[] = $m[2];
# Not empty !
} else {
- $format =
- (!empty($_SERVER['HTTP_USER_AGENT']) and preg_match($this->format_html_ua_exp,$_SERVER['HTTP_USER_AGENT']))
- ? 'html'
- : $this->format_cli
- ;
+ $format = $this->default_format();
}