$value) { $post_data[$key] = is_array($post_data[$key]) ? json_encode($post_data[$key]) : $post_data[$key]; } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $ezphpAPI); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); $return = curl_exec($ch); curl_close($ch); if(json_decode($return, true) || is_array(json_decode($return, true))){ return json_decode($return, true); }else{ return $return; } } function ez_getLang($token, $key, $lang = 'zh'){ $post_data = array('token' => $token, 'key' => $key, 'lang' => $lang); $ezphpAPI = "ez_getLang"; $multilang_label = call_ezphpAPI($post_data, $ezphpAPI); return $multilang_label; } } if($_POST['act']=="getinfo"){ $status = "error"; $data = array(); if($_SESSION['ezphp_login']){ $data['name'] = $_SESSION['ezphp_user']['name']; $data['mail'] = $_SESSION['ezphp_user']['email']; $status = "ok"; } echo json_encode(array("status"=>$status, "data"=>$data)); exit(); } ?> 智邦清潔
本網站利用 Cookie 來執行網站服務並改善您與我們的互動。若您同意我們放置相關 Cookie 資料,繼續瀏覽讓本網站繼續為您服務。