finish_time) { error_page("You already finished this job"); } $info = json_decode($bj->info); $img_url = "http://boinc.berkeley.edu/images/number_".$info->number.".jpg"; echo "
"; } function handle_job_completion($bj, $bji) { $response = null; $response->number = get_int('response'); $bji->info = json_encode($response); $bji->completed($bj); // show another job immediately // Bossa::show_next_job($bj); } Bossa::script_init($user, $bj, $bji); if (isset($_GET['submit'])) { handle_job_completion($bj, $bji); } else { show_job($bj, $bji); } ?>