summaryrefslogtreecommitdiff
path: root/web-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'web-scripts')
-rw-r--r--web-scripts/build-slaves.php2
-rw-r--r--web-scripts/packages.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/web-scripts/build-slaves.php b/web-scripts/build-slaves.php
index 1853bbe..b6afc2d 100644
--- a/web-scripts/build-slaves.php
+++ b/web-scripts/build-slaves.php
@@ -1,7 +1,7 @@
<html><head><title>list of build slaves</title></head><body>
<?php
- $conn = new mysqli("localhost","http","http","buildmaster");
+ $conn = new mysqli("localhost","webserver","empty","buildmaster");
if ($conn->connect_error) {
die("Connection to mysql database failed: " . $conn->connect_error);
}
diff --git a/web-scripts/packages.php b/web-scripts/packages.php
index b8b5dda..b7c0196 100644
--- a/web-scripts/packages.php
+++ b/web-scripts/packages.php
@@ -1,11 +1,11 @@
<?php
- $mysql = new mysqli("localhost", "http", "http");
+ $mysql = new mysqli("localhost", "webserver", "empty", "buildmaster");
if ($mysql->connect_error) {
die("Connection to mysql database failed: " . $mysql->connect_error);
}
- $result = $mysql -> query("SELECT * FROM buildmaster.binary_packages");
+ $result = $mysql -> query("SELECT * FROM `binary_packages`");
if ($result -> num_rows > 0) {
while($row = $result->fetch_assoc()) {
foreach ($row as $key => $val) {