]> Git repositories of Nishi - koakuma.git/commitdiff
update
authorNishi <nishi@nishi.boats>
Mon, 7 Oct 2024 15:23:21 +0000 (15:23 +0000)
committerNishi <nishi@nishi.boats>
Mon, 7 Oct 2024 15:23:21 +0000 (15:23 +0000)
git-svn-id: file:///raid/svn-personal/koakuma/trunk@46 219d0f9c-2d94-d447-890a-813e76b88fe9

cgi.conf
koakuma.cgi.in

index 62fad4d98b62eb9799a136c2650e802ecd81131c..fd8e1ec71e2ef72e48284f1e523cd5ab222fe77e 100644 (file)
--- a/cgi.conf
+++ b/cgi.conf
@@ -4,3 +4,5 @@
 set koakuma_png "/static/koakuma.png"
 set css "/static/style.css"
 set running_png "/static/continued.png"
+set title "Koakuma"
+set image_alt "Koakuma by Kasuya Baian"
index 567dc8eb0882cb0c647111f9b5fc1aeb697c7e32..1af0a133040a28d9e7ece2e40a05f6f8bf7f7881 100644 (file)
@@ -59,6 +59,9 @@ if { ![info exists env(PATH_INFO)] } {
        exiting 0
 }
 
+set title "Koakuma"
+set image_alt "Koakuma by Kasuya Baian"
+
 if { [file exists "@@PREFIX@@/etc/koakuma/cgi.conf"] } {
        if { [catch {
                source "@@PREFIX@@/etc/koakuma/cgi.conf"
@@ -246,12 +249,12 @@ proc sanitize {data} {
 }
 
 proc start_html {title has_toc} {
-       global toc env koakuma_png css what
+       global toc env koakuma_png css what instnace_name
        rputs   "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">"
        rputs   "<html>"
        rputs   "       <head>"
        rputs   "               <meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\">"
-       rputs   "               <title>$title - Koakuma</title>"
+       rputs   "               <title>$title - $instnace_name</title>"
        rputs   "               <link rel=\"stylesheet\" href=\"$css\">"
        set msie " src=\"$koakuma_png\""
        if { [info exists "env(HTTP_USER_AGENT)"] } {
@@ -262,11 +265,11 @@ proc start_html {title has_toc} {
        rputs   "       </head>"
        rputs   "       <body>"
        rputs   "               <a href=\"/koakuma\" id=\"gomain\">"
-       rputs   "                       <img alt=\"Koakuma by Kasuya Baian\" height=\"128px\"$msie>"
+       rputs   "                       <img alt=\"$image_alt\" height=\"128px\"$msie>"
        rputs   "               </a>"
        rputs   "               <div id=\"space\"></div>"
        rputs   "               <div id=\"title\">"
-       rputs   "                       Koakuma"
+       rputs   "                       $instnace_name"
        rputs   "               </div>"
        rputs   "               <a href=\"$env(SCRIPT_NAME)\">Root</a>"
        if { "$has_toc" == "1" } {