public function pic_url($m_type,$m_url,$username=''){ if(!file_exists('./'.$m_url)) { mkdir($m_url); } $img_path = empty($username)?$m_url:$m_url.$username.'/'; if($username){ if(!file_exists('./'.$img_path)){ mkdir($img_path); } }else{ $date = date('Ymd'); $path = './