diff options
author | deva <deva> | 2011-02-07 11:15:52 +0000 |
---|---|---|
committer | deva <deva> | 2011-02-07 11:15:52 +0000 |
commit | 4ea34b413bd21c0e8ec4c3b93840bfe928d3c9c4 (patch) | |
tree | 693c2416ad98911b98b2249c324de640841bfa20 /server/src/admin_rc.cc | |
parent | 1f3b20415c59ce08479d9291b92bbe5ffa8b2f6c (diff) |
Cleaned up the Connection interface a bit.
Diffstat (limited to 'server/src/admin_rc.cc')
-rw-r--r-- | server/src/admin_rc.cc | 18 |
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; } |