From: dj3c1t Date: Sat, 21 Dec 2013 17:44:15 +0000 (+0100) Subject: verification des droits en ecriture X-Git-Tag: mtweb.0.12.1 X-Git-Url: http://git.dj3c1t.com/index.cgi?a=commitdiff_plain;h=a3b64b4d11e3b48f09d357d53ac2cbbe735abf5f;p=mtweb verification des droits en ecriture --- diff --git a/mw/app/config.xml b/mw/app/config.xml index d0dae2e..a819b5d 100644 --- a/mw/app/config.xml +++ b/mw/app/config.xml @@ -1,7 +1,7 @@ - 0.11.7 + 0.12.1 #-- diff --git a/mw/mw_app.php b/mw/mw_app.php index 4b0b2eb..e666add 100644 --- a/mw/mw_app.php +++ b/mw/mw_app.php @@ -101,7 +101,11 @@ $this->error("dossier content introuvable"); return false; } - if(!is_writable($this->pathes["content"])){ + if( + !is_writable($this->pathes["content"]) + || !is_writable($this->pathes["content"]."config") + || !is_writable($this->pathes["content"]."data") + ){ $this->error("Php ne peut pas ecrire dans le dossier content"); return false; }