Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-23 09:37:31 +0100
committerErich Eckner <git@eckner.net>2018-01-23 09:37:31 +0100
commit25c3af1f1af84f79a44155078c1cbc1705c723b2 (patch)
tree3820d1ee015995b23f28846c840cd361db8de510
parent763134d4eaabd357b7c908a5b5e8f3c3283651c6 (diff)
web-scripts/packages.php: use same user as other scripts
-rw-r--r--web-scripts/packages.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/web-scripts/packages.php b/web-scripts/packages.php
index 5f04979..b8b5dda 100644
--- a/web-scripts/packages.php
+++ b/web-scripts/packages.php
@@ -1,20 +1,20 @@
<?php
-$mysql = new mysqli("localhost", "webserver", "empty");
-if ($mysql->connect_error) {
- die("Connection failed: " . $mysql->connect_error);
-}
+ $mysql = new mysqli("localhost", "http", "http");
+ if ($mysql->connect_error) {
+ die("Connection to mysql database 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." - ";
+ $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 "<br>\n";
}
-}
-print 'OK';
+ print 'OK';
?>