mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Fixes #4799. Powerpoint file-types added. Issue #4986 Added critical error constant as example to e107_config.php during installation.
This commit is contained in:
@@ -1509,10 +1509,11 @@ class e_install
|
||||
|
||||
|
||||
// -- Optional --
|
||||
// define('e_EMAIL_CRITICAL', '".$this->previous_steps['admin']['email']."'); // email the admin (and share no details with the user) if a critical error occurs.
|
||||
// define('e_LOG_CRITICAL', true); // log critical errors but do not display them to user. (similar to above, but no email is sent - instead error goes into a log file)
|
||||
// define('e_DEBUG', true); // Enable debug mode to allow displaying of errors
|
||||
// define('e_HTTP_STATIC', 'https://static.mydomain.com/'); // Use a static subdomain for js/css/images etc.
|
||||
// define('e_MOD_REWRITE_STATIC', true); // Rewrite static image urls.
|
||||
// define('e_LOG_CRITICAL', true); // log critical errors but do not display them to user.
|
||||
// define('e_GIT', 'path-to-git'); // Path to GIT for developers
|
||||
// define('X-FRAME-SAMEORIGIN', false); // Option to override X-Frame-Options
|
||||
// define('e_PDO, true); // Enable PDO mode (used in PHP > 7 and when mysql_* methods are not available)
|
||||
@@ -1643,7 +1644,7 @@ if($this->pdo == true)
|
||||
<e107Filetypes>
|
||||
<class name="member" type="zip,gz,jpg,jpeg,png,gif,webp,xml,pdf" maxupload="2M" />
|
||||
<class name="admin" type="zip,gz,jpg,jpeg,png,gif,webp,xml,pdf" maxupload="10M" />
|
||||
<class name="main" type="zip,gz,rar,jpg,jpeg,png,gif,webp,xml,pdf,mov,mp4,mp3,doc,docx,xls,xlsm,mp3,mp4,wav,ogg,webm,mid,midi,torrent,txt,dmg,msi" maxupload="50M" />
|
||||
<class name="main" type="zip,gz,rar,jpg,jpeg,png,gif,webp,xml,pdf,ppt,pptx,mov,mp4,mp3,doc,docx,xls,xlsm,mp3,mp4,wav,ogg,webm,mid,midi,torrent,txt,dmg,msi" maxupload="50M" />
|
||||
</e107Filetypes>';
|
||||
|
||||
return file_put_contents($this->e107->e107_dirs['SYSTEM_DIRECTORY']."filetypes.xml",$data);
|
||||
|
Reference in New Issue
Block a user