visit.ctrl.php 517 B

12345678910111213141516171819202122
  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('app');
  8. $dos = array('showjs', 'health');
  9. $do = in_array($do, $dos) ? $do : 'showjs';
  10. if ($do == 'showjs') {
  11. $module_name = !empty($_GPC['m']) ? $_GPC['m'] : 'wesite';
  12. app_update_today_visit($module_name);
  13. }
  14. if($do == 'health') {
  15. echo json_encode(error(0, 'success'));
  16. exit;
  17. }