X-Git-Url: https://git.cweiske.de/surrogator.git/blobdiff_plain/450b7bd52a3f1424699540dfcbb30703def67a00..42416c9bc590a8cb0290b5db3a3bbd7b870b7d1e:/www/avatar.php diff --git a/www/avatar.php b/www/avatar.php index 9a17a33..16a9582 100644 --- a/www/avatar.php +++ b/www/avatar.php @@ -1,6 +1,18 @@ + * @license http://www.gnu.org/licenses/agpl.html AGPLv3 or later + * @link http://git.cweiske.de/?p=surrogator.git + */ namespace surrogator; - $cfgFile = __DIR__ . '/../data/surrogator.config.php'; if (!file_exists($cfgFile)) { $cfgFile = '/etc/surrogator.config.php'; @@ -15,6 +27,14 @@ if (!file_exists($cfgFile)) { } require $cfgFile; +/** + * Send an error message out. + * + * @param integer $statusCode HTTP status code + * @param string $msg Error message + * + * @return void + */ function err($statusCode, $msg) { header('HTTP/1.0 ' . $statusCode . ' ' . $msg);