summaryrefslogtreecommitdiff
path: root/scripts/blacklist.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-12 10:28:31 +0200
committerErich Eckner <git@eckner.net>2018-04-12 10:28:31 +0200
commit5036d7a7172055a24ae9fa493e37998b725966eb (patch)
tree82956ba699664612f283109c104ae4533c5fc080 /scripts/blacklist.php
parent4b2dcc3b53fafcab1f1912990fd5468795108a18 (diff)
downloadarchweb32-5036d7a7172055a24ae9fa493e37998b725966eb.tar.xz
move buildmaster stuff to separate directory
Diffstat (limited to 'scripts/blacklist.php')
-rw-r--r--scripts/blacklist.php48
1 files changed, 0 insertions, 48 deletions
diff --git a/scripts/blacklist.php b/scripts/blacklist.php
deleted file mode 100644
index c2810c6..0000000
--- a/scripts/blacklist.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<html>
-<head>
-<title>Blacklisted packages</title>
-<link rel="stylesheet" type="text/css" href="/static/style.css">
-</head>
-<body>
-<table>
-<tr><th>architecture</th><th>package</th><th>reason</th></tr>
-<?php
-
-$mysql = new mysqli("localhost", "webserver", "empty", "buildmaster");
-if ($mysql->connect_error) {
- die("Connection failed: " . $mysql->connect_error);
-}
-if ( ! $result = $mysql -> query(
- "SELECT DISTINCT `architectures`.`name` AS `architecture`,`package_sources`.`pkgbase`,`build_assignments`.`is_black_listed` " .
- "FROM `build_assignments` " .
- "JOIN `architectures` ON `build_assignments`.`architecture`=`architectures`.`id` " .
- "JOIN `package_sources` ON `build_assignments`.`package_source`=`package_sources`.`id` " .
- "WHERE `build_assignments`.`is_black_listed` IS NOT NULL " .
- "ORDER BY `package_sources`.`pkgbase`")) {
- die($mysql->error);
-}
-if ($result -> num_rows > 0) {
- while($row = $result->fetch_assoc()) {
- print "<tr><td>";
- print $row["architecture"];
- print "</td><td>";
- print $row["pkgbase"];
- print "</td><td>";
- print preg_replace(
- array (
- "/FS32#(\\d+)/",
- "/FS#(\\d+)/"
- ),
- array (
- "<a href=\"https://bugs.archlinux32.org/index.php?do=details&task_id=$1\">$0</a>",
- "<a href=\"https://bugs.archlinux.org/task/$1\">$0</a>"
- ),
- $row["is_black_listed"]
- );
- print "</td></tr>\n";
- }
-}
-?>
-</table>
-</body>
-</html>