]> git.nbdom.net Git - nb.git/commitdiff
www/dbq/dbq.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 15 Jan 2018 16:37:46 +0000 (16:37 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 15 Jan 2018 16:37:46 +0000 (16:37 +0000)
www/dbq/dbq.php

index 340cd0f92fc7dd65f8a000f38e44bee02c2fcf1c..7a8d1ed4265449e8c547648ef6df4842b7f7a82a 100644 (file)
@@ -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]);
 ?>