summaryrefslogtreecommitdiff
path: root/server/src/admin_rc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/admin_rc.cc')
-rw-r--r--server/src/admin_rc.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/server/src/admin_rc.cc b/server/src/admin_rc.cc
index 495647b..ebf733e 100644
--- a/server/src/admin_rc.cc
+++ b/server/src/admin_rc.cc
@@ -389,9 +389,27 @@ static const char favicon[] = {
0x07, 0xff, 0xff
};
+static const char header[] =
+ "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\""
+ " \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n"
+ "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n"
+ "<head>\n"
+ " <title>Pracro admin</title>\n"
+ " <link rel=\"shortcut icon\" href=\"/favicon.ico\"/>\n"
+ " </head>\n"
+ " <body>\n"
+ " <pre>";
+
+static const char footer[] =
+ "</pre>\n"
+ " </body>\n"
+ "</html>\n";
+
std::string admin_rc(std::string key)
{
std::string val;
if(key == "favicon") val.append(favicon, faviconsize);
+ if(key == "header") val = header;
+ if(key == "footer") val = footer;
return val;
}