|
@@ -88,9 +88,18 @@ class member_infoControl extends mbMemberControl
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- public function upavatarOp()
|
|
|
|
|
|
+ private function file_path()
|
|
{
|
|
{
|
|
$file_path = $_POST["file_path"];
|
|
$file_path = $_POST["file_path"];
|
|
|
|
+ if(file_exists($file_path) == false) {
|
|
|
|
+ $file_path = BASE_ROOT_PATH . '/data/upload/uploadtmp' . $file_path;
|
|
|
|
+ }
|
|
|
|
+ return $file_path;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function upavatarOp()
|
|
|
|
+ {
|
|
|
|
+ $file_path = $this->file_path();
|
|
$member_id = $_SESSION['member_id'];
|
|
$member_id = $_SESSION['member_id'];
|
|
$file_name = $this->upfile($file_path,$err);
|
|
$file_name = $this->upfile($file_path,$err);
|
|
if($file_name == false) {
|
|
if($file_name == false) {
|