Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define("MVMMALL_SCR", "index");
- require_once ("include/common.inc.php");
- require_once (MVMMALL_ROOT . "counter.php");
- require_once (MVMMALL_ROOT . "header.php");
- $friend_links = $cache->get_cache("links");
- $promote_ad = $cache->get_cache("promote_ad");
- $new_order_goods = $cache->get_cache("new_order_goods");
- $arr_brand = $cache->get_cache("indexBrand");
- $limit_buy = $cache->get_cache("limit_buy");
- $limit_buy['left_time'] = ( integer )$limit_buy['end_date'] - $m_now_time;
- if ($limit_buy['left_time'] <= 0) {
- unset($limit_buy);
- }
- list($flash_img, $img_small, $flash_title, $flash_link) = get_flash("index");
- $pics = $flash_img;
- $pics_thumb = $img_small;
- $links = $flash_link;
- $group = $db->get_one("SELECT uid,g_title,g_file,ori_price,price,time_limit,join_num,supplier_id FROM `" . $tablepre . "group_table` WHERE time_limit>'{$m_now_time}' AND index_show='1' LIMIT 1");
- if ($group) {
- if ($group['g_file'] && file_exists(procimgpath($group['g_file']))) {
- $group['g_file'] = procimgpath($group['g_file']);
- } else {
- $group['g_file'] = "images/noimages/noproduct.jpg";
- }
- $group['discount'] = round($group['price'] / $group['ori_price'] * 10, 1);
- $group['save'] = $group['ori_price'] - $group['price'];
- if ($rewrite == 1) {
- $group['url'] = $mm_subdomain == 1 ? $Id2Domain[$group['supplier_id']] . ("group-view-" . $group['uid'] . ".html") : "union/group-view-" . $group['uid'] . "-{$group['supplier_id']}.html";
- } else {
- $group['url'] = $mm_subdomain == 1 ? $Id2Domain[$group['supplier_id']] . ("group.php?action=view&uid=" . $group['uid']) : "union/group.php?action=view&uid=" . $group['uid'] . "&supid={$group['supplier_id']}";
- }
- }
- $group_url = getbaseurl("group", "list");
- include (template("index"));
- footer();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement