Advertisement
johnburn

Decoded for: [email protected]

May 15th, 2011
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.78 KB | None | 0 0
  1. <?php
  2. define("MVMMALL_SCR", "index");
  3. require_once ("include/common.inc.php");
  4. require_once (MVMMALL_ROOT . "counter.php");
  5. require_once (MVMMALL_ROOT . "header.php");
  6. $friend_links = $cache->get_cache("links");
  7. $promote_ad = $cache->get_cache("promote_ad");
  8. $new_order_goods = $cache->get_cache("new_order_goods");
  9. $arr_brand = $cache->get_cache("indexBrand");
  10. $limit_buy = $cache->get_cache("limit_buy");
  11. $limit_buy['left_time'] = ( integer )$limit_buy['end_date'] - $m_now_time;
  12. if ($limit_buy['left_time'] <= 0) {
  13.     unset($limit_buy);
  14. }
  15. list($flash_img, $img_small, $flash_title, $flash_link) = get_flash("index");
  16. $pics = $flash_img;
  17. $pics_thumb = $img_small;
  18. $links = $flash_link;
  19. $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");
  20. if ($group) {
  21.     if ($group['g_file'] && file_exists(procimgpath($group['g_file']))) {
  22.         $group['g_file'] = procimgpath($group['g_file']);
  23.     } else {
  24.         $group['g_file'] = "images/noimages/noproduct.jpg";
  25.     }
  26.     $group['discount'] = round($group['price'] / $group['ori_price'] * 10, 1);
  27.     $group['save'] = $group['ori_price'] - $group['price'];
  28.     if ($rewrite == 1) {
  29.         $group['url'] = $mm_subdomain == 1 ? $Id2Domain[$group['supplier_id']] . ("group-view-" . $group['uid'] . ".html") : "union/group-view-" . $group['uid'] . "-{$group['supplier_id']}.html";
  30.     } else {
  31.         $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']}";
  32.     }
  33. }
  34. $group_url = getbaseurl("group", "list");
  35. include (template("index"));
  36. footer();
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement