diff --git a/e107_admin/admin.php b/e107_admin/admin.php index 978c2068c..2badd69cc 100644 --- a/e107_admin/admin.php +++ b/e107_admin/admin.php @@ -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()