summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 26f1a6f)
raw | patch | inline | side by side (parent: 26f1a6f)
author | Bruno Prémont <bonbons@linux-vserver.org> | |
Sun, 1 Mar 2009 21:19:49 +0000 (22:19 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Mon, 2 Mar 2009 08:31:18 +0000 (09:31 +0100) |
php-collection/graph.php: Add missing error500() function
When a call to rrdtool fails or some other internal error occurs
a HTTP error with code 500 and matching error image should be
returned, added the missing error500() function which does this
the same way as error404() and error400() functions.
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
When a call to rrdtool fails or some other internal error occurs
a HTTP error with code 500 and matching error image should be
returned, added the missing error500() function which does this
the same way as error404() and error400() functions.
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
contrib/php-collection/graph.php | patch | blob | history |
index e53657681a09c59f1bb516fe75582db05cc7b71b..17749e06926fd269da3c3b88c7a1f51582e08784 100644 (file)
return error(400, "Bad request", $title, $msg);
}
+/**
+ * Incomplete / invalid request
+ */
+function error500($title, $msg) {
+ return error(500, "Internal error", $title, $msg);
+}
+
// Process input arguments
$host = read_var('host', $_GET, null);
if (is_null($host))