summaryrefslogtreecommitdiff
path: root/server/src/admin_rc.cc
diff options
context:
space:
mode:
authordeva <deva>2011-02-08 09:29:16 +0000
committerdeva <deva>2011-02-08 09:29:16 +0000
commit3ea735592f26616c35ecddd44cf1a54415df20ac (patch)
tree7dcc69d89f1b672b5072943458f0e0b31a2afd2f /server/src/admin_rc.cc
parenta65a5d1594d09d575d9e835d684eb52675341054 (diff)
Add URI in html title.
Diffstat (limited to 'server/src/admin_rc.cc')
-rw-r--r--server/src/admin_rc.cc21
1 files changed, 17 insertions, 4 deletions
diff --git a/server/src/admin_rc.cc b/server/src/admin_rc.cc
index ebf733e..bf790ae 100644
--- a/server/src/admin_rc.cc
+++ b/server/src/admin_rc.cc
@@ -389,16 +389,28 @@ static const char favicon[] = {
0x07, 0xff, 0xff
};
-static const char header[] =
+static const char header1[] =
"<!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"
+ " <title>Pracro admin: ";
+
+static const char header2[] =
+ "</title>\n"
" <link rel=\"shortcut icon\" href=\"/favicon.ico\"/>\n"
+ " <style type=\"text/css\">\n"
+ " .box {\n"
+ " background-color: #95B1FF;\n"
+ " padding: 10px;\n"
+ " -moz-border-radius: 6px; -khtml-border-radius: 6px; -webkit-border-radius: 6px; border-radius: 6px;\n"
+ " -moz-box-shadow: 5px 5px 5px #ccc; -webkit-box-shadow: 5px 5px 5px #ccc; box-shadow: 5px 5px 5px #ccc;\n"
+ " border: solid 1px #000;\n"
+ " }\n"
+ " </style>\n"
" </head>\n"
" <body>\n"
- " <pre>";
+ " <pre class=\"box\">";
static const char footer[] =
"</pre>\n"
@@ -409,7 +421,8 @@ std::string admin_rc(std::string key)
{
std::string val;
if(key == "favicon") val.append(favicon, faviconsize);
- if(key == "header") val = header;
+ if(key == "header1") val = header1;
+ if(key == "header2") val = header2;
if(key == "footer") val = footer;
return val;
}