projects
/
mtweb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
abc6441
)
verification des droits en ecriture
mtweb.0.12.1
author
dj3c1t
<dj3c1t@free.fr>
Sat, 21 Dec 2013 17:44:15 +0000
(18:44 +0100)
committer
dj3c1t
<dj3c1t@free.fr>
Sat, 21 Dec 2013 17:44:15 +0000
(18:44 +0100)
mw/app/config.xml
patch
|
blob
|
history
mw/mw_app.php
patch
|
blob
|
history
diff --git
a/mw/app/config.xml
b/mw/app/config.xml
index
d0dae2e
..
a819b5d
100644
(file)
--- a/
mw/app/config.xml
+++ b/
mw/app/config.xml
@@
-1,7
+1,7
@@
<?xml version="1.0" encoding="UTF-8"?>
<config>
<?xml version="1.0" encoding="UTF-8"?>
<config>
- <version>0.1
1.7
</version>
+ <version>0.1
2.1
</version>
<bdd>
<table_prefix_code>#--</table_prefix_code>
<bdd>
<table_prefix_code>#--</table_prefix_code>
diff --git
a/mw/mw_app.php
b/mw/mw_app.php
index
4b0b2eb
..
e666add
100644
(file)
--- a/
mw/mw_app.php
+++ b/
mw/mw_app.php
@@
-101,7
+101,11
@@
$this->error("dossier content introuvable");
return false;
}
$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;
}
$this->error("Php ne peut pas ecrire dans le dossier content");
return false;
}