visit.ctrl.php 566 B

123456789101112131415161718192021222324
  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('visit');
  8. $dos = array('showjs');
  9. $do = in_array($do, $dos) ? $do : 'showjs';
  10. if ($do == 'showjs') {
  11. $type = 'web';
  12. $module_name = '';
  13. if ($_GPC['type'] == 'account') {
  14. $module_name = 'we7_account';
  15. } elseif ($_GPC['type'] == 'webapp') {
  16. $module_name = 'we7_webapp';
  17. }
  18. visit_update_today($type, $module_name);
  19. }
  20. echo '';
  21. exit;