Yoshihisa Fukuhara
higef****@users*****
2005年 6月 26日 (日) 17:32:14 JST
Index: affelio/admin.cgi diff -u affelio/admin.cgi:1.6 affelio/admin.cgi:1.7 --- affelio/admin.cgi:1.6 Sun Jun 26 02:25:42 2005 +++ affelio/admin.cgi Sun Jun 26 17:32:14 2005 @@ -6,7 +6,7 @@ # http://affelio.jp/ (Japan) # http://affelio.jp/ (USA and other area) # -# $Id: admin.cgi,v 1.6 2005/06/25 17:25:42 higefuku Exp $ +# $Id: admin.cgi,v 1.7 2005/06/26 08:32:14 higefuku Exp $ use strict; @@ -55,6 +55,10 @@ # if not.... debug_print("admin.cgi: login is needed."); + print "Content-type: text/html; charset=UTF-8\n"; + print "Pragma: no-cache", "\n\n"; + print get_HTML_header(); + $TMPL_FILE = "$af->{site__fs_root}/templates/$af->{site__template}/owner_side/login.tmpl"; my $tmpl = new HTML::Template( filename => $TMPL_FILE, @@ -62,8 +66,11 @@ $tmpl->param(reason_msg => "You haven't been authenticated."); $tmpl->param("tmpl_path" => "$af->{site__web_root}/templates/$af->{site__template}/owner_side/"); $tmpl->param("style_path" => $af->{site__web_root} . "/skins/" . $af->{userpref__skin}); - print "Content-type: text/html; charset=UTF-8\n\n"; + print $af->translate_templateL10N($tmpl->output); + + print get_HTML_footer(); + exit(1); } @@ -508,8 +515,6 @@ $tmpl->param("err_msg" => $err); $tmpl->param("site__locale" => $af->{site__locale}); -# print "Content-type: text/html; charset=UTF-8\n"; -# print "Pragma: no-cache", "\n\n"; print $af->translate_templateL10N($tmpl->output); print get_HTML_footer();