mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Issue #3655 Revert order change. Generate filetypes.xml during install.
This commit is contained in:
@@ -172,6 +172,9 @@ class admin_start
|
||||
e107::getDb()->db_Mark_Time('Check Incompatible Plugins');
|
||||
$this->checkIncompatiblePlugins();
|
||||
|
||||
e107::getDb()->db_Mark_Time('Check Filetypes');
|
||||
$this->checkFileTypes();
|
||||
|
||||
e107::getDb()->db_Mark_Time('Check Suspect Files');
|
||||
$this->checkSuspiciousFiles();
|
||||
|
||||
@@ -187,9 +190,6 @@ class admin_start
|
||||
e107::getDb()->db_Mark_Time('Check Core Update');
|
||||
$this->checkCoreUpdate();
|
||||
|
||||
e107::getDb()->db_Mark_Time('Check Filetypes');
|
||||
$this->checkFileTypes();
|
||||
|
||||
if($this->exit === true)
|
||||
{
|
||||
return null;
|
||||
|
13
install.php
13
install.php
@@ -1460,6 +1460,7 @@ if($this->pdo == true)
|
||||
$this->template->SetTag("bartype", 'success');
|
||||
|
||||
$htaccessError = $this->htaccess();
|
||||
$this->saveFileTypes();
|
||||
|
||||
$e_forms->start_form("confirmation", "index.php");
|
||||
|
||||
@@ -1493,6 +1494,18 @@ if($this->pdo == true)
|
||||
e107::getMessage()->reset(false, false, true);
|
||||
}
|
||||
|
||||
private function saveFileTypes()
|
||||
{
|
||||
$data = '<?xml version="1.0" encoding="utf-8"?>
|
||||
<e107Filetypes>
|
||||
<class name="253" type="zip,gz,jpg,jpeg,png,gif,xml,pdf" maxupload="2M" />
|
||||
</e107Filetypes>';
|
||||
|
||||
return file_put_contents($this->e107->e107_dirs['SYSTEM_DIRECTORY']."filetypes.xml",$data);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
protected function stats()
|
||||
{
|
||||
|
Reference in New Issue
Block a user