__init.php 1.2 KB

1234567891011121314151617181920212223242526272829303132
  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. if ($action != 'cash') {
  8. checkauth();
  9. }
  10. if ($controller == 'mc' && $action == 'card') {
  11. if ($do == 'sign_display') {
  12. header('Location: ' . murl('entry', array('m' => 'we7_coupon', 'do' => 'card', 'op' => 'sign_display')));
  13. exit;
  14. } elseif ($do == 'notice') {
  15. header('Location: ' . murl('entry', array('m' => 'we7_coupon', 'do' => 'card', 'op' => 'notice')));
  16. exit;
  17. } else {
  18. header('Location: ' . murl('entry', array('m' => 'we7_coupon', 'do' => 'card')));
  19. exit;
  20. }
  21. }
  22. $filter = array();
  23. $setting = uni_setting($_W['uniacid'], array('creditnames', 'creditbehaviors', 'uc', 'payment', 'passport'));
  24. $behavior = $setting['creditbehaviors'];
  25. $creditnames = $setting['creditnames'];
  26. $credits = mc_credit_fetch($_W['member']['uid'], '*');
  27. $ucpage = pdo_fetch("SELECT * FROM ".tablename('site_page')." WHERE uniacid = :uniacid AND type = '3'", array(':uniacid' => $_W['uniacid']));
  28. if (!empty($ucpage['params'])) {
  29. $ucpage['params'] = json_decode($ucpage['params'], true);
  30. }
  31. $title = $ucpage['title'];