From 5036d7a7172055a24ae9fa493e37998b725966eb Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 12 Apr 2018 10:28:31 +0200 Subject: move buildmaster stuff to separate directory --- buildmaster/status.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 buildmaster/status.php (limited to 'buildmaster/status.php') diff --git a/buildmaster/status.php b/buildmaster/status.php new file mode 100644 index 0000000..5050b4b --- /dev/null +++ b/buildmaster/status.php @@ -0,0 +1,30 @@ + + +Build master status\n"; +print "\n"; +print "\n"; +print "\n"; +print "Start page
\n"; + +$mysql = new mysqli("localhost", "webserver", "empty", "buildmaster"); +if ($mysql->connect_error) { + die("Connection failed: " . $mysql->connect_error); +} + +if ( ! $result = $mysql -> query( + "SELECT MAX(`package_sources`.`commit_time`) AS `last`" . + "FROM `package_sources`" + )) + die($mysql->error); + +if ($result -> num_rows > 0) { + + $row = $result->fetch_assoc(); + print "latest package source is from " . $row["last"] . ".
\n"; +} + +?> + + -- cgit v1.2.3-70-g09d2