manager.ctrl.php 722 B

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