3 class mw_data_users_files extends mw_data{
5 function check_user_uploads_dir($id_user = null){
9 if(isset($user["id"])) $id_user = $user["id"];
11 if(!isset($id_user) || !$id_user) return false;
12 if(!preg_match("/^[0-9]+$/", $id_user)) return false;
13 $user_dir = $env->path("content")."uploads/".$id_user;
14 if(!file_exists($user_dir)) @mkdir($user_dir);
15 return file_exists($user_dir);