PyukiWiki CVS Commit
pyuki****@lists*****
2012年 1月 29日 (日) 13:46:22 JST
Index: PyukiWiki-Devel/build/installer_sub.sh diff -u PyukiWiki-Devel/build/installer_sub.sh:1.6 PyukiWiki-Devel/build/installer_sub.sh:1.7 --- PyukiWiki-Devel/build/installer_sub.sh:1.6 Sun Jan 29 12:21:30 2012 +++ PyukiWiki-Devel/build/installer_sub.sh Sun Jan 29 13:46:22 2012 @@ -188,14 +188,18 @@ <table> <tr><td colspan="2"> PyukiWikiã®ã¤ã³ã¹ãã¼ã«ã®æºåã¯å®äºãã¾ããã<br> -ã¤ã³ã¹ãã¼ã«ãã¯ãªãã¯ããã¨ãã¤ã³ã¹ãã¼ã«ãå®äºãã¾ãã +以ä¸ã®ãªãã·ã§ã³ãé¸æãã¦ä¸ããã<br> +次ã¸ãã¯ãªãã¯ããã¨ãã¤ã³ã¹ãã¼ã«ãéå§ãã¾ãã<br> <div align="left"> <form action="$SCRIPT_NAME" method="GET"> -<input type="submit" name="install" value="é常ã¤ã³ã¹ãã¼ã«" $buttonstyle> -<input type="submit" name="secureinstall" value="ã»ãã¥ã¢ã¤ã³ã¹ãã¼ã«" $buttonstyle> -<input type="submit" name="cancel" value="ãã£ã³ã»ã«" $buttonstyle> -</form></div> -<hr> +<table> +<tr><td>ã¤ã³ã¹ãã¼ã«ã¢ã¼ã</td><td> +<input type="radio" name="installmode" value="normal" checked="checked">é常ã¤ã³ã¹ãã¼ã« +<input type="radio" name="installmode" value="secure">ã»ãã¥ã¢ã¤ã³ã¹ãã¼ã«ï¼ãã¼ããã·ã§ã³ãå³æ ¼ã«è¨å®ãã¾ããï¼ +</td></tr> +<tr><td>gzipå§ç¸®è»¢é</td><td> +<input type="radio" name="gzip" value="gzipoff">ç¡å¹ +<input type="radio" name="gzip" value="gzipon" checked="checked">æå¹ </td></tr> <tr><td>ã¤ã³ã¹ãã¼ã«ãããã¹:</td> <td>$PWD</td></tr> @@ -204,24 +208,35 @@ <tr><td>解åã³ãã³ã:</td> <td>$TXTCMD $ARCCMD $TARCMD</td></tr> </table> +<input type="submit" name="step3" value="æ»ã" $buttonstyle> +<input type="submit" name="install" value="次ã¸" $buttonstyle> +<input type="submit" name="cancel" value="ãã£ã³ã»ã«" $buttonstyle> +</form></div> +<hr> +</td></tr> +</table> EOF echo $FOOTJA else echo $DOCTYPE echo $HEADEN cat <<EOF -<body><h2>PyukiWiki Installer</h2> +<body><h2>PyukiWikiã¤ã³ã¹ãã¼ã©</h2> <table> <tr><td colspan="2"> Complete of preparing for the installation of PyukiWiki<br> -Press Install, installation complete. +Please select the options.<br> +Press Next, installation complete. <div align="left"> <form action="$SCRIPT_NAME" method="GET"> -<input type="submit" name="install" value="Default Install" $buttonstyle> -<input type="submit" name="secureinstall" value="Secure Install" $buttonstyle> -<input type="submit" name="cancel" value="cancel" $buttonstyle> -</form></div> -<hr> +<table> +<tr><td>Install Modeã¤ã³ã¹ãã¼ã«ã¢ã¼ã</td><td> +<input type="radio" name="installmode" value="normal" checked="checked">Default Install +<input type="radio" name="installmode" value="secure">Secure Install (Setting strict file and permissions.) +</td></tr> +<tr><td>gzip compress transfer</td><td> +<input type="radio" name="gzip" value="gzipoff">Disable +<input type="radio" name="gzip" value="gzipon" checked="checked">Enable </td></tr> <tr><td>Target Path:</td> <td>$PWD</td></tr> @@ -230,6 +245,13 @@ <tr><td>Extract comomand:</td> <td>$TXTCMD $ARCCMD $TARCMD</td></tr> </table> +<input type="submit" name="step3" value="Back" $buttonstyle> +<input type="submit" name="install" value="Next" $buttonstyle> +<input type="submit" name="cancel" value="Cancel" $buttonstyle> +</form></div> +<hr> +</td></tr> +</table> EOF echo $FOOTEN fi @@ -303,10 +325,40 @@ if [ "$CMD" = "cgiinstall" ]; then $SH $X extract $MYCMD $SH $X setperl $MYCMD - if [ "`echo $QUERY_STRING|grep secureinstall`" != "" ] ; then + if [ "`echo $QUERY_STRING|grep secure`" != "" ] ; then $SH $X securechmod $MYCMD + if [ "`echo $HTTP_ACCEPT_LANGUAGE | grep ja`" != "" ]; then + INSTALLMODE="ã»ãã¥ã¢ã¤ã³ã¹ãã¼ã«ã¢ã¼ãã§ã¤ã³ã¹ãã¼ã«ããã¾ããã<br>" + else + INSTALLMODE="Installation complete in secure mode.<br>" + fi else $SH $X chmod $MYCMD + INSTALLMODE="" + fi + if [ "`echo $QUERY_STRING|grep gzipon`" != "" ] ; then + echo '$::gzip_path="";'>>./info/setup.ini.cgi + echo '1;'>>./info/setup.ini.cgi + if [ "`echo $HTTP_ACCEPT_LANGUAGE | grep ja`" != "" ]; then + GZIP="gzipå§ç¸®è»¢éã¯æå¹ã§ã<br>" + else + GZIP="gzip compression transfer is enebled<br>" + fi + else + echo '$::gzip_path="nouse";'>>./info/setup.ini.cgi + echo '1;'>>./info/setup.ini.cgi + GZIP="" + fi + if [ "`echo $QUERY_STRING|grep resetpassword`" != "" ] ; then + echo '$::adminpass=crypt("pass", "AA");'>>./info/setup.ini.cgi + echo '$::adminpass{admin}="";'>>./info/setup.ini.cgi + echo '$::adminpass{frozen}="";'>>./info/setup.ini.cgi + echo '$::adminpass{attach}="";'>>./info/setup.ini.cgi + if [ "`echo $HTTP_ACCEPT_LANGUAGE | grep ja`" != "" ]; then + PASSRESET="管çè ãã¹ã¯ã¼ãããªã»ãããã¾ããã<br>" + else + PASSRESET="Reset administrator password.<br>" + fi fi if [ "`echo $HTTP_ACCEPT_LANGUAGE | grep ja`" != "" ]; then echo $DOCTYPE @@ -316,6 +368,8 @@ <table> <tr><td colspan="2"> PyukiWikiã®ã¤ã³ã¹ãã¼ã«ãå®äºãã¾ããã<br> +$INSTALLMODE +$GZIP ã¤ã³ã¹ãã¼ã©ã¯ãåä½ã確èªããå¾ãä¸æ£ã¢ã¯ã»ã¹é²æ¢ã®çºã«ãå¿ ãåé¤ãã¦ä¸ããã<br> ååèµ·åæã®ç®¡çè ãã¹ã¯ã¼ãã¯ãpassãã§ãã <hr> @@ -338,6 +392,8 @@ <table> <tr><td colspan="2"> Install Complete<br> +$INSTALLMODE +$GZIP Must remove installer file, after that it works, to prevent unauthorized access.<br> Initial administrator password is "pass". <hr>