代码拉取完成,页面将自动刷新
<?php
//zend by QQ:1527200768 鸿宇科技 禁止倒卖 一经发现停止任何服务
define('IN_ECS', true);
require dirname(__FILE__) . '/includes/init.php';
if ((DEBUG_MODE & 2) != 2) {
$smarty->caching = true;
}
require ROOT_PATH . '/includes/lib_area.php';
$display_mode = (empty($_GET['display_mode']) ? 'javascript' : $_GET['display_mode']);
if ($display_mode == 'javascript') {
$charset_array = array('UTF8', 'GBK', 'gbk', 'utf8', 'GB2312', 'gb2312');
if (!in_array($charset, $charset_array)) {
$charset = 'UTF8';
}
header('content-type: application/x-javascript; charset=' . ($charset == 'UTF8' ? 'utf-8' : $charset));
}
$cache_id = sprintf('%X', crc32($_SERVER['QUERY_STRING']));
$goodsid = intval($_GET['gid']);
$userid = intval($_GET['u']);
$type = intval($_GET['type']);
$tpl = ROOT_PATH . DATA_DIR . '/affiliate.html';
if (!$smarty->is_cached($tpl, $cache_id)) {
$time = gmtime();
$goods_url = $ecs->url() . 'goods.php?u=' . $userid . '&id=';
$goods = get_goods_info($goodsid);
$goods['goods_thumb'] = (strpos($goods['goods_thumb'], 'http://') === false) && (strpos($goods['goods_thumb'], 'https://') === false) ? $ecs->url() . $goods['goods_thumb'] : $goods['goods_thumb'];
$goods['goods_img'] = (strpos($goods['goods_img'], 'http://') === false) && (strpos($goods['goods_img'], 'https://') === false) ? $ecs->url() . $goods['goods_img'] : $goods['goods_img'];
$goods['shop_price'] = price_format($goods['shop_price']);
$smarty->assign('goods', $goods);
$smarty->assign('userid', $userid);
$smarty->assign('type', $type);
$smarty->assign('url', $ecs->url());
$smarty->assign('goods_url', $goods_url);
}
$output = $smarty->fetch($tpl, $cache_id);
$output = str_replace("\r", '', $output);
$output = str_replace("\n", '', $output);
if ($display_mode == 'javascript') {
echo 'document.write(\'' . $output . '\');';
}
else if ($display_mode == 'iframe') {
echo $output;
}
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。