verification des droits en ecriture mtweb.0.12.1
authordj3c1t <dj3c1t@free.fr>
Sat, 21 Dec 2013 17:44:15 +0000 (18:44 +0100)
committerdj3c1t <dj3c1t@free.fr>
Sat, 21 Dec 2013 17:44:15 +0000 (18:44 +0100)
mw/app/config.xml
mw/mw_app.php

index d0dae2e..a819b5d 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <config>
 
-  <version>0.11.7</version>
+  <version>0.12.1</version>
 
   <bdd>
     <table_prefix_code>#--</table_prefix_code>
index 4b0b2eb..e666add 100644 (file)
         $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;
       }