人人商城

cron.ctrl.php 710B

1234567891011121314151617181920212223242526
  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. error_reporting(0);
  8. if (!in_array($do, array('log'))) {
  9. exit('Access Denied');
  10. }
  11. if($do == 'log') {
  12. $tid = intval($_GPC['tid']);
  13. $module = trim($_GPC['module']);
  14. $type = trim($_GPC['type']);
  15. $data = pdo_getall('core_cron_record', array('uniacid' => $_W['uniacid'], 'tid' => $tid, 'module' => $module, 'type' => $type));
  16. if(!empty($data)) {
  17. foreach($data as &$da) {
  18. $da['createtime'] = date('Y-m-d H:i:s', $da['createtime']);
  19. }
  20. unset($da);
  21. }
  22. iajax(0, array('items' => $data));
  23. }