代码拉取完成,页面将自动刷新
同步操作将从 maltYumi/20181011 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?php
//zend by QQ:123456 商创网络 禁止倒卖 一经发现停止任何服务
define('IN_ECS', true);
require dirname(__FILE__) . '/includes/init.php';
require ROOT_PATH . '/includes/lib_area.php';
$_REQUEST['id'] = isset($_REQUEST['id']) ? intval($_REQUEST['id']) : 0;
$_REQUEST['img'] = isset($_REQUEST['img']) ? intval($_REQUEST['img']) : 0;
$sql = 'SELECT goods_name FROM ' . $ecs->table('goods') . 'WHERE goods_id = \'' . $_REQUEST['id'] . '\'';
$goods_name = $db->getOne($sql);
if ($goods_name === false) {
ecs_header("Location: ./\n");
exit();
}
$sql = 'SELECT img_id, img_desc, thumb_url, img_url' . ' FROM ' . $ecs->table('goods_gallery') . ' WHERE goods_id = \'' . $_REQUEST['id'] . '\' ORDER BY img_id';
$img_list = $db->getAll($sql);
$img_count = count($img_list);
$gallery = array(
'goods_name' => htmlspecialchars($goods_name, ENT_QUOTES),
'list' => array()
);
if ($img_count == 0) {
ecs_header('Location: goods.php?id=' . $_REQUEST['id'] . "\n");
exit();
}
else {
foreach ($img_list as $key => $img) {
$gallery['list'][] = array('gallery_thumb' => get_image_path($_REQUEST['id'], $img_list[$key]['thumb_url'], true, 'gallery'), 'gallery' => get_image_path($_REQUEST['id'], $img_list[$key]['img_url'], false, 'gallery'), 'img_desc' => $img_list[$key]['img_desc']);
}
}
$smarty->assign('shop_name', $_CFG['shop_name']);
$smarty->assign('watermark', str_replace('../', './', $_CFG['watermark']));
$smarty->assign('gallery', $gallery);
$smarty->display('gallery.dwt');
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。