summaryrefslogtreecommitdiff
path: root/web-scripts/packages.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-23 09:33:52 +0100
committerErich Eckner <git@eckner.net>2018-01-23 09:33:52 +0100
commit763134d4eaabd357b7c908a5b5e8f3c3283651c6 (patch)
tree0bc17aa2098ec6529da877f261195b1ab2f4db24 /web-scripts/packages.php
parentf0c0454a6ad998bc994d8fdaa0be47944fbed4b7 (diff)
downloadbuilder-763134d4eaabd357b7c908a5b5e8f3c3283651c6.tar.xz
web-scripts/statistics.php, web-scripts/packages.php new in git
Diffstat (limited to 'web-scripts/packages.php')
-rw-r--r--web-scripts/packages.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/web-scripts/packages.php b/web-scripts/packages.php
new file mode 100644
index 0000000..5f04979
--- /dev/null
+++ b/web-scripts/packages.php
@@ -0,0 +1,20 @@
+<?php
+
+$mysql = new mysqli("localhost", "webserver", "empty");
+if ($mysql->connect_error) {
+ die("Connection failed: " . $mysql->connect_error);
+}
+
+$result = $mysql -> query("SELECT * FROM buildmaster.binary_packages");
+if ($result -> num_rows > 0) {
+ while($row = $result->fetch_assoc()) {
+ foreach ($row as $key => $val) {
+ print $key .": ".$val." - ";
+ }
+ print "<br>\n";
+ }
+}
+
+print 'OK';
+
+?>