profile
This commit is contained in:
@@ -99,6 +99,13 @@ abstract class BaseController extends Controller
|
||||
return $wrenchboard->cfgReadChar($config_item);
|
||||
}
|
||||
|
||||
public function specififBackendCall($action,$data){
|
||||
$in["action"] = $action;
|
||||
$wrenchboard = new \App\Models\BackendModel();
|
||||
$ret = $wrenchboard->wrenchboard_api($data, $out);
|
||||
return $ret;
|
||||
}
|
||||
|
||||
public function sessionCheckString($sessionid){
|
||||
$in["action"] = WRENCHBOARD_SESSION_CHECK;
|
||||
$in["sessionid"] = $sessionid;
|
||||
|
||||
@@ -60,7 +60,18 @@ class UploadManager extends Model
|
||||
$file_data = base64_decode($in["file_data"]);
|
||||
fwrite($myfile, $file_data);
|
||||
fclose($myfile);
|
||||
$out["call_backend"] = true; // flag ready to save data entry
|
||||
$out["call_backend"] = false; // flag ready to save data entry
|
||||
$data['file_uid'] =$in["uid"];
|
||||
$data['profile'] = $in["profile"];
|
||||
$out['upload_result']=$this->specififBackendCall(WRENCHBOARD_PICTURE_PROFILE,$data);
|
||||
/*
|
||||
* public function specififBackendCall($action,$data){
|
||||
$in["action"] = $action;
|
||||
$wrenchboard = new \App\Models\BackendModel();
|
||||
$ret = $wrenchboard->wrenchboard_api($data, $out);
|
||||
return $ret;
|
||||
}
|
||||
*/
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user