From d0fbbc07e2bab89f5185abb3f94e5d2d3d3620c4 Mon Sep 17 00:00:00 2001 From: Nishi Date: Mon, 7 Oct 2024 15:23:21 +0000 Subject: [PATCH] update git-svn-id: file:///raid/svn-personal/koakuma/trunk@46 219d0f9c-2d94-d447-890a-813e76b88fe9 --- cgi.conf | 2 ++ koakuma.cgi.in | 11 +++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/cgi.conf b/cgi.conf index 62fad4d..fd8e1ec 100644 --- 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" diff --git a/koakuma.cgi.in b/koakuma.cgi.in index 567dc8e..1af0a13 100644 --- a/koakuma.cgi.in +++ b/koakuma.cgi.in @@ -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 "" rputs "" rputs " " rputs " " - rputs " $title - Koakuma" + rputs " $title - $instnace_name" rputs " " set msie " src=\"$koakuma_png\"" if { [info exists "env(HTTP_USER_AGENT)"] } { @@ -262,11 +265,11 @@ proc start_html {title has_toc} { rputs " " rputs " " rputs " " - rputs " \"Koakuma" + rputs " \"$image_alt\"" rputs " " rputs "
" rputs "
" - rputs " Koakuma" + rputs " $instnace_name" rputs "
" rputs " Root" if { "$has_toc" == "1" } { -- 2.45.2