How's things?
It's showtime!
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?
Download | Testdrive |