Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (14 sloc) 0.452 kb
<?php
$headers = getallheaders();
$is_ajax = array_key_exists("X-Requested-With", $headers) && $headers["X-Requested-With"] == "XMLHttpRequest";
include("lib/IronWorker/IronWorker.class.php");
$worker = new IronWorker('worker/config.ini');
$worker->debug_enabled = false;
$task_id = $_GET['task_id'];
$details = $worker->getTaskDetails($task_id);
if($is_ajax) {
echo json_encode($details);
} else {
print "Task is ".$details->status;
}
?>
Jump to Line
Something went wrong with that request. Please try again.