OSDN Git Service

Add the extra_header variable to add any header to an output.
authornyan_ <nyan_@180c8125-5b33-4295-ad04-72a68a15b4cc>
Sat, 3 Jan 2009 07:28:15 +0000 (07:28 +0000)
committernyan_ <nyan_@180c8125-5b33-4295-ad04-72a68a15b4cc>
Sat, 3 Jan 2009 07:28:15 +0000 (07:28 +0000)
24 files changed:
doc/changes.html
doc/manual.html
etc/dot.keitairc
lib/Keitairc/Config.pm
lib/Keitairc/View.pm
lib/templates/default/404.html
lib/templates/default/address.html
lib/templates/default/all.html
lib/templates/default/index.html
lib/templates/default/location.html
lib/templates/default/location_receiver.html
lib/templates/default/login_icc.html
lib/templates/default/login_imodeid.html
lib/templates/default/logout.html
lib/templates/default/mail.html
lib/templates/default/nick.html
lib/templates/default/phone.html
lib/templates/default/postme.html
lib/templates/default/recent.html
lib/templates/default/root.html
lib/templates/default/topic.html
lib/templates/default/unread.html
lib/templates/default/url.html
lib/templates/default/url_session.html

index a0f69db..4fb6fbd 100644 (file)
@@ -81,6 +81,7 @@
        keitairc がアクセスすべきポートと、listenするportを別指定できるようにしました (web_listen_port)<br>
        URLリンクでウィンドウのターゲットを指定できるようにしました (url_target)<br>
        URLリンクでリダイレクタを指定するできるようにしました (url_redirect)<br>
+       表示内容に任意のヘッダを追加できるようにしました (extra_header)<br>
       </dd>
 
       <dt>1.33</dt>
index 4132454..5f3ac1e 100644 (file)
        SSL証明書や認証手段にいろいろな制限があります。
        注意して使用してください。
       </dd>
+      <dt>extra_header</dt>
+      <dd>
+       表示内容にヘッダを追加したいときに指定します。
+       デフォルトは未定義です。<br>
+       CSS のスタイルファイルを指定したい場合等に使用します。
+      </dd>
       <dt>fontsize</dt>
       <dd>
        keitaircに携帯機器以外からアクセスした際の、
index 174c2e8..bedc149 100644 (file)
@@ -2,7 +2,7 @@
 #
 # sample ~/.keitairc for keitairc 2.x
 #
-# $Id: dot.keitairc,v 1.18 2009-01-03 07:04:14 nyan_ Exp $
+# $Id: dot.keitairc,v 1.19 2009-01-03 07:28:15 nyan_ Exp $
 # $Source: /home/ishikawa/work/keitairc/tmp/keitairc/etc/dot.keitairc,v $
 
 ################################################################
@@ -88,6 +88,9 @@ web_password = 1234
 # Keyword
 # irc_keyword = "mynick,myfavoriteword"
 
+# Add an extra header
+# extra_header = '<link rel="stylesheet" type="text/css" href="/keitairc.css">'
+
 # Font size
 # fontsize = 0
 # mobile_fontsize = -1
index ae15fe7..728c2a1 100644 (file)
@@ -1,6 +1,6 @@
 # -*- mode: perl; coding: utf-8 -*-
 # Keitairc::Config
-# $Id: Config.pm,v 1.30 2009-01-03 07:04:14 nyan_ Exp $
+# $Id: Config.pm,v 1.31 2009-01-03 07:28:15 nyan_ Exp $
 # $Source: /home/ishikawa/work/keitairc/tmp/keitairc/lib/Keitairc/Config.pm,v $
 #
 # Copyright (c) 2008 Jun Morimoto <morimoto@mrmt.net>
@@ -35,7 +35,7 @@ sub new{
                   web_listen_port
                   web_port web_title web_lines web_root web_schema
                   web_username web_password web_host web_charset
-                  fontsize mobile_fontsize silent_config
+                  extra_header fontsize mobile_fontsize silent_config
                   show_newmsgonly show_joinleave show_console
                   ping_delay reconnect_delay follow_nick
                   smtp_server smtp_from smtp_to debug
index 529de12..b10a51b 100644 (file)
@@ -1,6 +1,6 @@
 # -*- mode: perl; coding: utf-8 -*-
 # Keitairc::View
-# $Id: View.pm,v 1.20 2009-01-03 07:04:14 nyan_ Exp $
+# $Id: View.pm,v 1.21 2009-01-03 07:28:15 nyan_ Exp $
 # $Source: /home/ishikawa/work/keitairc/tmp/keitairc/lib/Keitairc/View.pm,v $
 #
 # Copyright (c) 2008 Jun Morimoto <morimoto@mrmt.net>
@@ -79,6 +79,7 @@ sub template{
        $p->{root} = $me->{Config}->web_root();
        $p->{title} = $me->{Config}->web_title();
        $p->{version} = $me->{Config}->version();
+       $p->{header} = $me->{Config}->extra_header();
 
        if($me->{ClientInfo}->is_mobile){
                $p->{fontsize} = $me->{Config}->mobile_fontsize();
index 3b2a225..1de34e1 100644 (file)
@@ -2,6 +2,7 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
     <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var header -->
     <title><!-- tmpl_var title --></title>
   </head>
   <body>
index 15d1b89..246d690 100644 (file)
@@ -2,6 +2,7 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
     <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var header -->
     <title><!-- tmpl_var title -->: \92n\90}\95\\8e¦</title>
   </head>
   <body>
index f6398bc..960f557 100644 (file)
@@ -2,6 +2,7 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
     <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var header -->
     <title><!-- tmpl_var title -->: <!-- tmpl_var channel_compact --></title>
   </head>
   <body>
index ac44242..a782484 100644 (file)
@@ -4,6 +4,7 @@
     <meta name="Keywords" content="norobot">
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
     <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var header -->
     <title><!-- tmpl_var title --></title>
   </head>
   <body>
index b7d2cbe..fa2ea49 100644 (file)
@@ -2,6 +2,7 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
     <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var header -->
     <title><!-- tmpl_var title -->: <!-- tmpl_var channel_compact --></title>
   </head>
   <body>
index d02650c..a5ac6b0 100644 (file)
@@ -2,6 +2,7 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
     <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var header -->
     <title><!-- tmpl_var title -->: <!-- tmpl_var channel_compact --></title>
   </head>
   <body>
index 596231c..83a9829 100644 (file)
@@ -2,6 +2,7 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
     <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var header -->
     <title><!-- tmpl_var title -->: icc\95\\8e¦</title>
   </head>
   <body>
index 35be2e5..43fa786 100644 (file)
@@ -2,6 +2,7 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
     <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var header -->
     <title><!-- tmpl_var title -->: icc\95\\8e¦</title>
   </head>
   <body>
index 556f0bb..8a223b0 100644 (file)
@@ -4,6 +4,7 @@
     <meta name="Keywords" content="norobot">
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
     <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var header -->
     <title><!-- tmpl_var title -->: \83\8d\83O\83A\83E\83g</title>
   </head>
   <body>
index 27f0b58..656fd11 100644 (file)
@@ -2,6 +2,7 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
     <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var header -->
     <title><!-- tmpl_var title -->: mail <!-- tmpl_var mail --></title>
   </head>
   <body>
index 0363f30..8e45198 100644 (file)
@@ -4,6 +4,7 @@
     <meta name="Keywords" content="norobot">
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
     <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var header -->
     <title><!-- tmpl_var title --></title>
   </head>
   <body>
index 91a41c1..3418403 100644 (file)
@@ -2,6 +2,7 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
     <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var header -->
     <title><!-- tmpl_var title -->: phone <!-- tmpl_var phone --></title>
   </head>
   <body>
index ed51837..39f8952 100644 (file)
@@ -2,6 +2,7 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
     <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var header -->
     <title><!-- tmpl_var title -->: postme</title>
   </head>
   <body>
index fe1801c..fa7e94d 100644 (file)
@@ -2,6 +2,7 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
     <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var header -->
     <title><!-- tmpl_var title --></title>
   </head>
   <body>
index 66933ae..4610296 100644 (file)
@@ -2,6 +2,7 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
     <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var header -->
     <title><!-- tmpl_var title --></title>
   </head>
   <body>
index 8f892b7..920f5c6 100644 (file)
@@ -2,6 +2,7 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
     <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var header -->
     <title><!-- tmpl_var title --></title>
   </head>
   <body>
index 245f76a..22321db 100644 (file)
@@ -2,6 +2,7 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
     <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var header -->
     <title><!-- tmpl_var title -->: <!-- tmpl_var channel_compact --></title>
   </head>
   <body>
index a9da025..4e62559 100644 (file)
@@ -2,6 +2,7 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
     <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var header -->
     <title><!-- tmpl_var title -->: URL <!-- tmpl_var url --></title>
   </head>
   <body>
index 0bf1ec2..3f5e3e9 100644 (file)
@@ -2,6 +2,7 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
     <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var header -->
     <title><!-- tmpl_var title -->: URL <!-- tmpl_var url --></title>
   </head>
   <body>