From: Nicolas Boisselier Date: Mon, 15 Jan 2018 16:37:46 +0000 (+0000) Subject: www/dbq/dbq.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=e4fa099d73cda49ec86e5e53115acd9cfeddb96c;p=nb.git www/dbq/dbq.php --- diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 340cd0f9..7a8d1ed4 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -1177,12 +1177,14 @@ EOF; } elseif ($action == 'csv') { $this->deniedUnless($this->perm >= self::ADMIN); + $this->notimeout(); header('Content-type: text/plain'); $this->db->dump2csv(); exit; } elseif ($action == 'dump') { $this->deniedUnless($this->perm >= self::ADMIN); + $this->notimeout(); header('Content-type: text/plain'); $this->db->dump($this->params['action']); exit; @@ -1319,6 +1321,10 @@ EOF; # NB 14.12.17 return $link . '.' . $this->ext; } + private static function notimeout() { + set_time_limit(0); + } + } # < Class Dbq $DBQ = new DbQ(['run'=>true]); ?>