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>2019-07-15 13:47:00 +0200
committerErich Eckner <git@eckner.net>2019-07-15 13:47:00 +0200
commit8e491f34ba92341d75bf1e63452f78e139c775ed (patch)
treeb5d0c76bce9cceb26870e2373c7ed8ccd59ae612
parent1b78e8e868b4bb0a7e766b356d893b4caada71a9 (diff)
buildmaster/gpg-keys.php: no mixed html and php
-rw-r--r--buildmaster/gpg-keys.php46
1 files changed, 24 insertions, 22 deletions
diff --git a/buildmaster/gpg-keys.php b/buildmaster/gpg-keys.php
index ed33418..8f3c44b 100644
--- a/buildmaster/gpg-keys.php
+++ b/buildmaster/gpg-keys.php
@@ -44,34 +44,36 @@ require_once BASE . "/lib/http.php";
" ORDER BY `persons`.`name`"
);
-?>
-<html>
- <head>
- <title>list of gpg-keys</title>
- </head>
- <body>
-<?php
-show_warning_on_offline_slave();
+ print "<html>\n";
+ print " <head>\n";
+ print " <title>list of gpg-keys</title>\n";
+ print " </head>\n";
+ print " <body>\n";
+
+ show_warning_on_offline_slave();
- print "<table border=1>\n";
- if ($result->num_rows > 0) {
- print "<tr><th>person</th><th>action</th><th>fingerprint</th></tr>\n";
+ print " <table border=1>\n";
+ if ($result -> num_rows > 0) {
+ print " <tr>\n";
+ print " <th>person</th>\n";
+ print " <th>action</th>\n";
+ print " <th>fingerprint</th>\n";
+ print " </tr>\n";
while ($row = $result -> fetch_assoc()) {
foreach ($row as $key => $value) {
- if ($value=="") {
+ if ($value == "") {
$row[$key]="&nbsp;";
}
}
- print "<tr>";
- print "<td>" . $row["person"] . "</td>";
- print "<td>" . $row["action"] . "</td>";
- print "<td><a href=\"?fp=" .
+ print " <tr>\n";
+ print " <td>" . $row["person"] . "</td>\n";
+ print " <td>" . $row["action"] . "</td>\n";
+ print " <td><a href=\"?fp=" .
$row["fingerprint"] .
- "\">" . $row["fingerprint"] . "</a></td>";
- print "</tr>\n";
+ "\">" . $row["fingerprint"] . "</a></td>\n";
+ print " </tr>\n";
}
}
- print "</table>\n";
-
-?>
-</body></html>
+ print " </table>\n";
+ print " </body>\n";
+ print "</html>\n";