$k, 'bytes' => $bytes, 'tag' => $b[0], 'version' => $b[1], 'pipeline' => $b[2], 'platform' => $b[3], 'job' => $b[4], 'time' => $time, 'date' => $date, 'filename' => $b[5], 's3url' => 'https://s3.amazonaws.com/gsplus-artifacts/'.$data[3] ); if (!$filter || ($filter && $b[0] == $filter)) { $builds[] = $row; } } $pipeline = array_column($builds, 'pipeline'); $platform = array_column($builds, 'platform'); array_multisort($pipeline, SORT_DESC, $platform, SORT_ASC, $builds); $style = <<GS+ builds page\n"); $lastk = null; foreach ($builds as $l) { $k = $l['k']; if ($k != $lastk) { if ($lastk != null) { print("

"); // close last build if not first pass } print("
\n"); print("

GSPLUS V".$l['version']." - Pipeline #".$l['pipeline']." @ ".$l['date']." (".$l['tag'].")


\n"); $lastk = $k; } print("

Platform: ".$l['platform']."

\n"); print("\n"); } print("
\n"); #2018-08-07 14:33:11 256833 auto/0.14rc/260/ubuntu-sdl/2481/gsplus-ubuntu-sdl.tar.bz2