代码拉取完成,页面将自动刷新
<?php
include_once 'config.php';
include_once 'user_head.php';
include_once 'ad_head.php';
include_once 'search_head.php';
include_once 'user_right.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){
$client = new SoapClient($GLOBAL_REMOTE_API);
//输出模板
$filename = "shipments.html";
$file = @fopen($filename, "r");
if ($file) {
$contents = @fread($file, filesize($filename));
$contents = str_replace("{\$factoryId}", $id, $contents);
$contents = str_replace("{\$userId}", $user_id, $contents);
$contents = str_replace("{\$Producthtml}", $Producthtml, $contents);
$contents = str_replace("{\$Productshtml}", $Productshtml, $contents);
$contents = str_replace("{\$factoryInfohtml}", $factoryInfohtml, $contents);
$contents = str_replace("{\$user_head_html}", $user_head_html, $contents);
$contents = str_replace("{\$ad_head_html}", $ad_head_html, $contents);
$contents = str_replace("{\$search_head_html}", $search_head_html, $contents);
$contents = str_replace("{\$userright_html}", $userright_html, $contents);
$contents = str_replace("{\$goodsNumber}", ($Products_totalCount) ? $Products_totalCount : 0, $contents);
$contents = str_replace("{\$sidebar_html}", $sidebar_html, $contents);
$contents = str_replace("{\$foot_html}", $foot_html, $contents);
$contents = str_replace("{\$pageHtml}", $pageHtml, $contents);
echo $contents;
fclose($file);
}
}
else{
$url = "login.html?path=" . $_SERVER["REQUEST_URI"];
echo "<script language='javascript' type='text/javascript'>";
echo "alert('尚未登录,请登录后再查看!');";
echo "window.location.href='$url';";
echo "</script>";
}
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。