OSDN Git Service

closs #14603
authormorimoto <morimoto@180c8125-5b33-4295-ad04-72a68a15b4cc>
Sun, 11 Jan 2009 00:30:19 +0000 (00:30 +0000)
committermorimoto <morimoto@180c8125-5b33-4295-ad04-72a68a15b4cc>
Sun, 11 Jan 2009 00:30:19 +0000 (00:30 +0000)
21 files changed:
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 728c2a1..551aba1 100644 (file)
@@ -1,6 +1,6 @@
 # -*- mode: perl; coding: utf-8 -*-
 # Keitairc::Config
-# $Id: Config.pm,v 1.31 2009-01-03 07:28:15 nyan_ Exp $
+# $Id: Config.pm,v 1.32 2009-01-11 00:30:19 morimoto Exp $
 # $Source: /home/ishikawa/work/keitairc/tmp/keitairc/lib/Keitairc/Config.pm,v $
 #
 # Copyright (c) 2008 Jun Morimoto <morimoto@mrmt.net>
@@ -35,7 +35,8 @@ sub new{
                   web_listen_port
                   web_port web_title web_lines web_root web_schema
                   web_username web_password web_host web_charset
-                  extra_header fontsize mobile_fontsize silent_config
+                  common_header 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
@@ -77,6 +78,12 @@ sub new{
        $me->url_target('_self');
        $me->follow_nick(1);
        $me->rgeocode_server('refits');
+       $me->common_header('
+<meta name="Robots" content="noindex,nofollow" />
+<meta name="Keywords" content="norobot" />
+<meta http-equiv="pragma" content="no-cache" />
+<meta http-equiv="cache-control" content="no-cache" />
+<meta http-equiv="expires" content="-1" />');
        $me->debug(0);
        $me->daemonize(0);
 
index b671cb9..0142983 100644 (file)
@@ -1,6 +1,6 @@
 # -*- mode: perl; coding: utf-8 -*-
 # Keitairc::View
-# $Id: View.pm,v 1.22 2009-01-04 11:13:54 nyan_ Exp $
+# $Id: View.pm,v 1.23 2009-01-11 00:30:19 morimoto 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->{common_header} = $me->{Config}->common_header();
        $p->{extra_header} = $me->{Config}->extra_header();
 
        if($me->{ClientInfo}->is_mobile){
index 4bae2bf..4958652 100644 (file)
@@ -1,7 +1,7 @@
 <html>
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
-    <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var common_header -->
     <!-- tmpl_var extra_header -->
     <title><!-- tmpl_var title --></title>
   </head>
index 81b2209..41364d9 100644 (file)
@@ -1,7 +1,7 @@
 <html>
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
-    <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var common_header -->
     <!-- tmpl_var extra_header -->
     <title><!-- tmpl_var title -->: \92n\90}\95\\8e¦</title>
   </head>
index ec993d4..d4c78d0 100644 (file)
@@ -1,7 +1,7 @@
 <html>
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
-    <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var common_header -->
     <!-- tmpl_var extra_header -->
     <title><!-- tmpl_var title -->: <!-- tmpl_var channel_compact --></title>
   </head>
index 22dffc2..58b5c33 100644 (file)
@@ -1,9 +1,7 @@
 <html>
   <head>
-    <meta name="Robots" content="noindex,nofollow">
-    <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 common_header -->
     <!-- tmpl_var extra_header -->
     <title><!-- tmpl_var title --></title>
   </head>
index 75ade8b..66aa01f 100644 (file)
@@ -1,7 +1,7 @@
 <html>
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
-    <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var common_header -->
     <!-- tmpl_var extra_header -->
     <title><!-- tmpl_var title -->: <!-- tmpl_var channel_compact --></title>
   </head>
index 9b533a3..4088df4 100644 (file)
@@ -1,7 +1,7 @@
 <html>
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
-    <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var common_header -->
     <!-- tmpl_var extra_header -->
     <title><!-- tmpl_var title -->: <!-- tmpl_var channel_compact --></title>
   </head>
index cb04580..8787ca8 100644 (file)
@@ -1,7 +1,7 @@
 <html>
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
-    <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var common_header -->
     <!-- tmpl_var extra_header -->
     <title><!-- tmpl_var title -->: icc\95\\8e¦</title>
   </head>
index c83db73..592b53d 100644 (file)
@@ -1,7 +1,7 @@
 <html>
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
-    <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var common_header -->
     <!-- tmpl_var extra_header -->
     <title><!-- tmpl_var title -->: icc\95\\8e¦</title>
   </head>
index 2bcb77d..7808440 100644 (file)
@@ -1,9 +1,7 @@
 <html>
   <head>
-    <meta name="Robots" content="noindex,nofollow">
-    <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 common_header -->
     <!-- tmpl_var extra_header -->
     <title><!-- tmpl_var title -->: \83\8d\83O\83A\83E\83g</title>
   </head>
index cac6f8e..b17cc0d 100644 (file)
@@ -1,7 +1,7 @@
 <html>
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
-    <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var common_header -->
     <!-- tmpl_var extra_header -->
     <title><!-- tmpl_var title -->: mail <!-- tmpl_var mail --></title>
   </head>
index 90e7e89..1c54b6e 100644 (file)
@@ -1,9 +1,7 @@
 <html>
   <head>
-    <meta name="Robots" content="noindex,nofollow">
-    <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 common_header -->
     <!-- tmpl_var extra_header -->
     <title><!-- tmpl_var title --></title>
   </head>
index b6dca72..a443a15 100644 (file)
@@ -1,7 +1,7 @@
 <html>
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
-    <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var common_header -->
     <!-- tmpl_var extra_header -->
     <title><!-- tmpl_var title -->: phone <!-- tmpl_var phone --></title>
   </head>
index a6d900a..633bcdf 100644 (file)
@@ -1,7 +1,7 @@
 <html>
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
-    <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var common_header -->
     <!-- tmpl_var extra_header -->
     <title><!-- tmpl_var title -->: postme</title>
   </head>
index b340ac3..9dd22d9 100644 (file)
@@ -1,7 +1,7 @@
 <html>
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
-    <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var common_header -->
     <!-- tmpl_var extra_header -->
     <title><!-- tmpl_var title --></title>
   </head>
index 7bcdda1..01918f7 100644 (file)
@@ -1,7 +1,7 @@
 <html>
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
-    <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var common_header -->
     <!-- tmpl_var extra_header -->
     <title><!-- tmpl_var title --></title>
   </head>
index 555c85d..f47d4b5 100644 (file)
@@ -1,7 +1,7 @@
 <html>
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
-    <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var common_header -->
     <!-- tmpl_var extra_header -->
     <title><!-- tmpl_var title --></title>
   </head>
index da46763..39a11db 100644 (file)
@@ -1,7 +1,7 @@
 <html>
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
-    <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var common_header -->
     <!-- tmpl_var extra_header -->
     <title><!-- tmpl_var title -->: <!-- tmpl_var channel_compact --></title>
   </head>
index 3d6448a..a35d736 100644 (file)
@@ -1,7 +1,7 @@
 <html>
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
-    <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var common_header -->
     <!-- tmpl_var extra_header -->
     <title><!-- tmpl_var title -->: URL <!-- tmpl_var url --></title>
   </head>
index 9bd3a54..ae07b02 100644 (file)
@@ -1,7 +1,7 @@
 <html>
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
-    <meta http-equiv="Cache-Control" content="max-age=0" />
+    <!-- tmpl_var common_header -->
     <!-- tmpl_var extra_header -->
     <title><!-- tmpl_var title -->: URL <!-- tmpl_var url --></title>
   </head>