addServer(); $status = $client->jobStatus($handle); if($status[0]) { if($status[3] != 0) { $percentage = ceil($status[2]/$status[3]*100); $buildresult = "Your build is currently running and is ".$percentage."% complete"; $inprogress = true; } else { $buildresult = "Task has not yet been processed"; } } else { $result = mysql_query("SELECT returncode, result FROM builds WHERE id = '".mysql_real_escape_string($build_id)."'"); $jobres = mysql_fetch_array($result); if($jobres[0] !== NULL) { if($jobres[0] == 0) { $buildresult = "Your build is complete! What would you like to do now?

DownloadTestdrive
"; $builddone = true; } else { $buildresult = "Job returned with code ".$jobres[0].": ".$jobres[1]; } } else { $buildresult = "Job failed"; } } } else { $buildresult = "Invalid handle hash"; } ?> Gentoaster $(document).ready(function() { $("#progressbar").progressbar({ value: '.$percentage.' }); }); '; } ?>

How's things?

It's showtime!