info);
$img_url = $info->url;
echo "
Find the Ellipse!
";
}
function handle_job_completion($bj, $bji) {
$response = null;
if (get_str('submit', true)) {
$response->have_ellipse = 0;
} else {
$response->have_ellipse = 1;
$response->cx = get_int('pic_x');
$response->cy = get_int('pic_y');
}
$bji->info = json_encode($response);
$bji->completed($bj);
Bossa::show_next_job($bj); // show another job immediately
}
Bossa::script_init($user, $bj, $bji);
if (isset($_GET['completion'])) {
handle_job_completion($bj, $bji);
} else {
show_job($bj, $bji);
}
?>