Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-17 09:36:08 +0200
committerErich Eckner <git@eckner.net>2018-04-17 09:36:08 +0200
commit8af016645fee5c0b22e69d46de9b3401c1bc82d3 (patch)
tree992acf6649f005c3d6891d767a5509fdbb91024b /packages
parent951d045cb95cc8e0d07c97104a2b9a5e9ea5ffc8 (diff)
lib/ new
Diffstat (limited to 'packages')
-rw-r--r--packages/pkginfo.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/packages/pkginfo.php b/packages/pkginfo.php
index 3b31a71..366d0eb 100644
--- a/packages/pkginfo.php
+++ b/packages/pkginfo.php
@@ -1,16 +1,6 @@
<?php
- function throw_http_error($error_number, $error_message, $extra_message = "") {
- header("Status: " . $error_number . " " . $error_message);
- print "Error " . $error_number . ": " . $error_message . "\n";
- if ($extra_message != "")
- print "<br>\n" . $extra_message;
- die();
- };
-
- function die_500($message) {
- throw_http_error(500, "Internal Server Error", $message);
- };
+ include "lib/mysql.php";
$json_content = json_decode(
file_get_contents(