html=′′;foreach(native as $key => $val){
KaTeX parse error: Expected '}', got 'EOF' at end of input: …"<input name='{key}’ type=‘text’ value=’{$val}’ />";
}
echo "<form style='display:none;' id='form1' name='form1' method='post' action='{$tjurl}'>{$html}</form>
<script type='text/javascript'>function load_submit(){document.form1.submit()}load_submit();</script>";
exit();
KaTeX parse error: Expected '}', got 'EOF' at end of input: …bmit' action='{this->gateway}’ method=‘post’>";
foreach ($this->config as $key => $value) {
$value = str_replace("’", ‘’’, $value);
KaTeX parse error: Expected '}', got 'EOF' at end of input: …hidden' name='{key}’ value=’{$value}’/>";
}
$html .= “”;
return $html . “”;
public function post_curl($url, $post){
ch=curlinit(url);
timeout=6000;curlsetopt(ch, CURLOPT_POST, 1);
curl_setopt(ch,CURLOPTHEADER,0);curlsetopt(ch, CURLOPT_FRESH_CONNECT, 1);
curl_setopt(ch,CURLOPTRETURNTRANSFER,1);curlsetopt(ch, CURLOPT_FORBID_REUSE, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, timeout);//本地测试不验证证书curlsetopt(ch, CURLOPT_SSL_VERIFYPEER, false); //不验证证书
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); //不验证证书
$data_string = json_encode($post);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
"Content-Type: application/json; charset=utf-8",
"Content-Length: " . strlen($data_string))
);
$ret = curl_exec($ch);
curl_close($ch);
return $ret;
}