1. Sergey Romanenko
  2. Monstra
  3. Issues
Issue #28 resolved

Backup download: set_time_limit() error

Mikhail Paulyshka
created an issue

Когда я пытаюсь загрузить бэкап(r[[https://bitbucket.org/Awilum/monstra/changeset/1217|1217]])

ErrorException: Warning

set_time_limit() has been disabled for security reasons

Location

Exception thrown on line 494 in /home/mixaill/public_html/lab/monstra/monstra/helpers/file.php

{{{

!php

header('Content-type: ' . $content_type); header('Content-Disposition: attachment; filename="' . $filename . '"'); header('Content-Length: ' . filesize($file));

      // Read file and write it to the output
      set_time_limit(0);

       if ($kbps === 0) {

           readfile($file);

}}}

Ссылка: http://mixail.tk/lab/monstra/admin/index.php?id=backup&download=1333819235_2012-04-07-20-20-35.zip

Инсталяция http://mixail.tk/lab/monstra

Логин/пароль: Mixail/Mixail