info); print_r($info); $img_url = $info->url; echo "
"; } function handle_job_completion($bj, $bji) { $response = null; if (get_str('submit', true)) { $response->have_ellipse = 0; } else { $response->have_ellipse = 1; $pic = $_GET['pic']; $response->cx = $pic.x; $response->cy = $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); } ?>