Tadashi Okoshi
slash****@users*****
2005年 12月 21日 (水) 15:03:24 JST
Index: affelio/upgrade-10-11.cgi
diff -u affelio/upgrade-10-11.cgi:1.10 affelio/upgrade-10-11.cgi:1.11
--- affelio/upgrade-10-11.cgi:1.10 Mon Dec 19 15:51:22 2005
+++ affelio/upgrade-10-11.cgi Wed Dec 21 15:03:24 2005
@@ -29,8 +29,24 @@
if($q->url_param("mode") ne "go"){
print "Content-type: text/html; charset=UTF-8\n";
print "Pragma: no-cache", "\n\n";
- print '<HTML><B>Upgrade Affelio from 1.0 to 1.1</B><P><FORM ACTION="upgrade-10-11.cgi?mode=go" method=POST><INPUT TYPE="submit" VALUE="Go"></FORM></HTML>';
- exit(1);
+ print <<EOM;
+<HTML>
+<h1>Upgrade Script from 1.0.1 to 1.1</h1>
+<P>
+<H2>1. Copy your affelio.cfg to config/affelio.cfg</H2>
+Location of <B>affelio.cfg</B> file changed. Create <B>config/</B>
+directory and move <b>affelio.cfg</b> to <B>config/</B> directory.
+<P>
+<H2>2. Upgrade your Affelio data</H2>
+Push the button below and upgrade your data!
+<P>
+<FORM ACTION="upgrade-10-11.cgi?mode=go" method=POST>
+<INPUT TYPE="submit" VALUE="Upgrade">
+</FORM>
+</HTML>
+EOM
+exit(1);
+
#########################################################################
#Do upgrade
@@ -44,7 +60,8 @@
################################
my $af;
try{
- $af = new Affelio(ConfigDir => "./config/");
+ $af = new Affelio(ConfigDir => "./config/",
+ Mode => "init");
}catch Error with{
my $e = shift;
print("Affelio load error.\n" . $e->stacktrace);
@@ -211,7 +228,7 @@
print "Done.<BR>";
- print 'OK. Successfuly done.<P><B>Delete this CGI immediately!!</B>';
+ print '<h2>OK. Successfuly done.</H2><P><B>Delete this CGI immediately!!</B>';
exit(1);
}