2013-02-02 21:57:10 +01:00
|
|
|
/*
|
|
|
|
* vim: sw=2 ts=2 expandtab
|
|
|
|
*
|
|
|
|
* "THE PIZZA-WARE LICENSE" (derived from "THE BEER-WARE LICENCE"):
|
|
|
|
* Thomas Kolb <cfr34k@tkolb.de> wrote this file. As long as you retain this
|
|
|
|
* notice you can do whatever you want with this stuff. If we meet some day,
|
|
|
|
* and you think this stuff is worth it, you can buy me a pizza in return.
|
|
|
|
* - Thomas Kolb
|
|
|
|
*/
|
|
|
|
|
2013-01-17 21:13:15 +01:00
|
|
|
#ifndef TEMPLATES_H
|
|
|
|
#define TEMPLATES_H
|
|
|
|
|
|
|
|
// generic definitions
|
|
|
|
#define HEADER1 \
|
|
|
|
"<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\"" \
|
|
|
|
" \"http://www.w3.org/TR/html4/strict.dtd\">" \
|
|
|
|
"<html>" \
|
|
|
|
" <head>"
|
|
|
|
|
|
|
|
#define HEADER2 \
|
|
|
|
" <meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" >" \
|
2013-01-31 18:15:49 +01:00
|
|
|
" <link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/favicon.png\">" \
|
2013-01-17 21:13:15 +01:00
|
|
|
" </head>" \
|
|
|
|
" <body>"
|
|
|
|
|
|
|
|
#define FOOTER \
|
2013-08-19 19:59:54 +02:00
|
|
|
" <p><small>Generated by fileshare " VERSION ".</small></p>" \
|
2013-01-17 21:13:15 +01:00
|
|
|
" </body>" \
|
|
|
|
"</html>"
|
|
|
|
|
|
|
|
|
|
|
|
// error page definitions
|
|
|
|
#define ERROR_404 \
|
|
|
|
HEADER1 \
|
|
|
|
" <title>Error 404*i - File is imaginary</title>" \
|
|
|
|
HEADER2 \
|
|
|
|
" <h1>Error 404*i - File is imaginary</h1>" \
|
|
|
|
" <p>This page cannot be displayed because it is imaginary.<p>" \
|
|
|
|
" <p>To view this page in the real world, turn your screen by <sup>π</sup>/<sub>2</sub> .</p>" \
|
|
|
|
" <pre>" \
|
|
|
|
" ^ Im\n" \
|
|
|
|
" |\n" \
|
|
|
|
" | +j\n" \
|
|
|
|
" __--+--__\n" \
|
|
|
|
" _- | -_\n" \
|
|
|
|
" / X \\\n" \
|
|
|
|
" | | |\n" \
|
|
|
|
"----+-------+-------+-----> Re\n" \
|
|
|
|
" -1 | | +1 |\n" \
|
|
|
|
" \\ | /\n" \
|
|
|
|
" --__ | __--\n" \
|
|
|
|
" --+-- \n" \
|
|
|
|
" | -j\n" \
|
|
|
|
" |\n" \
|
|
|
|
" </pre>" \
|
|
|
|
FOOTER
|
|
|
|
|
|
|
|
#define ERROR_500 \
|
|
|
|
HEADER1 \
|
|
|
|
" <title>Error 500 - Internal Server Error</title>" \
|
|
|
|
HEADER2 \
|
|
|
|
" <h1>Error 500 - Internal Server Error</h1>" \
|
|
|
|
" <pre>" \
|
|
|
|
" _______________________________________ \n" \
|
|
|
|
"/ Oops. Something went wrong. \\\n" \
|
|
|
|
"| Please contact the administrator and |\n" \
|
|
|
|
"\\ tell him how to reproduce this error. /\n" \
|
|
|
|
" --------------------------------------- \n" \
|
|
|
|
" \\ \\_______\n" \
|
|
|
|
" v__v \\ \\ O )\n" \
|
|
|
|
" (oo) ||----w |\n" \
|
|
|
|
" (__) || || \\/\\\n" \
|
|
|
|
" </pre>" \
|
|
|
|
FOOTER
|
|
|
|
|
|
|
|
#define ERROR_403 \
|
|
|
|
HEADER1 \
|
|
|
|
" <title>Error 403 - Forbidden</title>" \
|
|
|
|
HEADER2 \
|
|
|
|
" <h1>Error 403 - Forbidden</h1>" \
|
|
|
|
" <p>You are not allowed to access this file or directory.<p>" \
|
|
|
|
" <p>This error is shown under the following conditions:<p>" \
|
|
|
|
" <ul>" \
|
|
|
|
" <li>You are trying to access a file that the server isn't allowed to read</li>" \
|
|
|
|
" <li>The target filesystem entry is not a regular file or directory</li>" \
|
|
|
|
" <li>The URL contains \"/..\", which is blocked for security reasons</li>" \
|
2013-08-19 19:59:54 +02:00
|
|
|
" <li>You are trying to upload a file, and uploads are not enabled for this server</li>" \
|
2013-01-17 21:13:15 +01:00
|
|
|
" </ul>" \
|
|
|
|
FOOTER
|
|
|
|
|
2015-11-23 21:23:57 +01:00
|
|
|
#define ERROR_401 \
|
|
|
|
HEADER1 \
|
|
|
|
" <title>Error 401 - Unauthorized</title>" \
|
|
|
|
HEADER2 \
|
|
|
|
" <h1>Error 401 - Unauthorized</h1>" \
|
|
|
|
" <p>You are not authorized to see the requested content.<p>" \
|
|
|
|
" <p>Enter the correct username and password!<p>" \
|
|
|
|
FOOTER
|
|
|
|
|
2013-01-17 21:13:15 +01:00
|
|
|
#endif // TEMPLATES_H
|