projects
/
mtweb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b91d4ed
)
creation si besoin du dossier upload
mtweb.0.10.2
author
dj3c1t
<dj3c1t@free.fr>
Sun, 13 Oct 2013 18:55:19 +0000
(20:55 +0200)
committer
dj3c1t
<dj3c1t@free.fr>
Sun, 13 Oct 2013 18:55:19 +0000
(20:55 +0200)
mw/app/data/modules/share/mw_data_users_files.php
patch
|
blob
|
history
diff --git
a/mw/app/data/modules/share/mw_data_users_files.php
b/mw/app/data/modules/share/mw_data_users_files.php
index
5e35a4f
..
e2754e3
100644
(file)
--- a/
mw/app/data/modules/share/mw_data_users_files.php
+++ b/
mw/app/data/modules/share/mw_data_users_files.php
@@
-10,6
+10,9
@@
}
if(!isset($id_user) || !$id_user) return false;
if(!preg_match("/^[0-9]+$/", $id_user)) return false;
+ $uploads_dir = $env->path("content")."uploads/";
+ if(!is_dir($uploads_dir)) @mkdir($uploads_dir);
+ if(!is_dir($uploads_dir)) return false;
$user_dir = $env->path("content")."uploads/".$id_user;
if(!file_exists($user_dir)) @mkdir($user_dir);
return file_exists($user_dir);