0 and userid='$logininid'))"; $ecms=RepPostStr($_GET['ecms'],1); echo"执行计划任务"; //执行 if($ecms=='dotask') { $id=(int)$_GET['id']; if(empty($id)) { exit(); } $r=$empire->fetch1("select id,filename,lastdo,doweek,doday,dohour,dominute,userid,taskname from {$dbtbpre}enewstask where id=$id and isopen=1 limit 1"); $file='../tasks/'.$r['filename']; if(empty($r['id'])||empty($r['filename'])||!file_exists($file)) { exit(); } $lasttime=CheckDoTask($r); if($lasttime) { echo""; include_once($file); $usql=$empire->query("update {$dbtbpre}enewstask set lastdo='$lasttime' where id=$id"); echo""; } } //更新 elseif($ecms=='retask') { echo""; ?> fetch1("select id,filename,taskname from {$dbtbpre}enewstask where id=$id limit 1"); $file='../tasks/'.$r['filename']; if($r['id']&&$r['filename']&&file_exists($file)) { include_once($file); $enews=$ecms; //操作日志 insert_dolog("id=$id&taskname=$r[taskname]&filename=$r[filename]"); } printerror('TodoTaskSuccess',''); } else { ?>
任务日志   [清除日志内容]