1
0
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:
Cameron
2013-05-18 02:02:00 -07:00
parent 66ea777ed6
commit b949c18706

View File

@@ -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()