人人商城

__init.php 886B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. defined('IN_IA') or exit('Access Denied');
  7. load()->model('activity');
  8. load()->classs('coupon');
  9. define('FRAME', 'mc');
  10. $frames = buildframes(array('mc'));
  11. $frames = $frames['mc'];
  12. if($controller == 'activity') {
  13. if($action == 'coupon') {
  14. define('ACTIVE_FRAME_URL', url('activity/coupon/display'));
  15. }
  16. if($action == 'exchange') {
  17. if ($_GPC['type'] == 'coupon' && $_GPC['a'] == 'exchange') {
  18. define('ACTIVE_FRAME_URL', url('activity/exchange/display', array('type' => 'coupon')));
  19. }
  20. if ($_GPC['type'] == 'goods' && $_GPC['a'] == 'exchange') {
  21. define('ACTIVE_FRAME_URL', url('activity/exchange/display', array('type' => 'goods')));
  22. }
  23. }
  24. }
  25. $coupon_api = new coupon();
  26. activity_coupon_type_init();