mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 13:11:52 +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:
parent
4d1f1173dd
commit
3feccca0ec
@ -2182,6 +2182,8 @@ class e_file
|
||||
case 'avi': //media
|
||||
case 'xml':
|
||||
case 'webm':
|
||||
case 'ppt':
|
||||
case 'pptx':
|
||||
|
||||
break; // Just accept these
|
||||
|
||||
|
@ -900,7 +900,7 @@ console.log('Bbcode: '+bbcode);
|
||||
filters: [
|
||||
{title: "Image files", extensions: extImg || "jpg,gif,png,jpeg,svg,apng,webp"},
|
||||
{title: "Zip files", extensions: extArchive || "zip,gz,rar"},
|
||||
{title: "Document files", extensions: extDoc || "pdf,doc,docx,xls,xlsm,xml"},
|
||||
{title: "Document files", extensions: extDoc || "pdf,doc,docx,xls,xlsm,xml,ppt,pptx"},
|
||||
{title: "Media files", extensions: 'mp3,mp4,wav,ogg,webm,mid,midi'},
|
||||
{title: "Other files", extensions: 'torrent,txt,dmg'}
|
||||
],
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user