代码拉取完成,页面将自动刷新
<?php
include_once 'config.php';
include_once 'user_head.php';
include_once 'user_right.php';
include_once 'userinfo_head.php';
include_once 'indent_left.php';
include_once 'sidebar.php';
include_once 'foot.php';
header ("Content-Type: text/html; charset=UTF-8");
header ("Cache-Control: no-cache, must-revalidate");
header ("Pragma: no-cache");
error_reporting(E_ERROR | E_WARNING | E_PARSE);
if ($user_id > 0){
$parms = array("userProxyId"=>$user_id);
$result = $client->userGetInfo($parms);
if(!is_soap_fault($result)) {
//获取用户信息
$userGetInfoResult = $result->userGetInfoResult;
$userGetInfoResultArray = json_decode($userGetInfoResult, TRUE);
//开始解析
//获取用户信息
$userGetInfo_totalCount = $userGetInfoResultArray[0]['totalCount'];
$userGetInfo_success = $userGetInfoResultArray[0]['success'];
$userGetInfo_data = $userGetInfoResultArray[0]['data'];
if ($userGetInfo_totalCount > 0 && $userGetInfo_success == true)
{
$userinfohtml = '';
foreach($userGetInfo_data as $key=>$d){
$phoneNumber = $userGetInfo_data[$key]['phoneNumber'];
$ProxyName = $userGetInfo_data[$key]['ProxyName'];
$ProvinceName = $userGetInfo_data[$key]['ProvinceName'];
$CityName = $userGetInfo_data[$key]['CityName'];
$DistrictName = $userGetInfo_data[$key]['DistrictName'];
$TownName = $userGetInfo_data[$key]['TownName'];
$Address = $userGetInfo_data[$key]['Address'];
$PostAddress = $userGetInfo_data[$key]['PostAddress'];
$PostName = $userGetInfo_data[$key]['PostName'];
$PostPhone = $userGetInfo_data[$key]['PostPhone'];
$ZipCode = $userGetInfo_data[$key]['ZipCode'];
}
}
}
//输出模板
$filename = "certification.html";
$file = @fopen($filename,"r");
if ($file) {
$contents = @fread($file, filesize($filename));
$contents = str_replace("{\$userId}", $user_id, $contents);
$contents = str_replace("{\$user_head_html}", $user_head_html, $contents);
// $contents = str_replace("{\$userright_html}", $userright_html, $contents);
$contents = str_replace("{\$userinfo_head_html}", $userinfo_head_html, $contents);
$contents = str_replace("{\$indentleft_html}", $indentleft_html, $contents);
$contents = str_replace("{\$sidebar_html}", $sidebar_html, $contents);
$contents = str_replace("{\$foot_html}", $foot_html, $contents);
echo $contents;
fclose($file);
}
}
else
{
header("Location: login.html");
}
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。