__init.php 770 B

123456789101112131415161718192021
  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. checkauth();
  8. load()->model('activity');
  9. load()->model('mc');
  10. load()->classs('coupon');
  11. $coupon_api = new coupon();
  12. $creditnames = array();
  13. $unisettings = uni_setting($uniacid, array('creditnames', 'coupon_type', 'exchange_enable'));
  14. if (!empty($unisettings) && !empty($unisettings['creditnames'])) {
  15. foreach ($unisettings['creditnames'] as $key=>$credit) {
  16. $creditnames[$key] = $credit['title'];
  17. }
  18. }
  19. $cardstatus = pdo_get('mc_card', array('uniacid' => $_W['uniacid']), array('status'));
  20. $type_names = activity_coupon_type_label();