mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Check e_MEDIA and e_SYSTEM are writable.
This commit is contained in:
@@ -81,13 +81,32 @@ class admin_start
|
||||
|
||||
function __construct()
|
||||
{
|
||||
|
||||
$this->checkWritable();
|
||||
$this->checkHtmlarea();
|
||||
$this->checkIncompatiblePlugins();
|
||||
$this->checkFileTypes();
|
||||
$this->checkSuspiciousFiles();
|
||||
|
||||
}
|
||||
|
||||
|
||||
function checkWritable()
|
||||
{
|
||||
$mes = e107::getMessage();
|
||||
|
||||
if(deftrue('e_MEDIA') && !is_writable(e_MEDIA))
|
||||
{
|
||||
$mes->addWarning("The folder ".e_MEDIA." is not writable. Please correct before proceeding.");
|
||||
}
|
||||
|
||||
if(deftrue('e_SYSTEM') && !is_writable(e_SYSTEM))
|
||||
{
|
||||
$mes->addWarning("The folder ".e_SYSTEM." is not writable. Please correct before proceeding.");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function checkHtmlarea()
|
||||
|
Reference in New Issue
Block a user