From e4fa099d73cda49ec86e5e53115acd9cfeddb96c Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 15 Jan 2018 16:37:46 +0000 Subject: [PATCH] www/dbq/dbq.php --- www/dbq/dbq.php | 6 ++++++ 1 file changed, 6 insertions(+) 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]); ?> -- 2.47.3