代码拉取完成,页面将自动刷新
<?php
include_once 'config.php';
include_once 'user_head.php';
include_once 'user_right.php';
include_once 'userinfo_head.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) {
//输出模板
$filename = "quickorder.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("{\$foot_html}", $foot_html, $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>";
}
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。