Index: .htaccess =================================================================== RCS file: /cvsroot/pukiwiki/pukiwiki/.htaccess,v retrieving revision 1.14 diff -u -b -r1.14 .htaccess --- .htaccess 29 Apr 2005 11:51:31 -0000 1.14 +++ .htaccess 14 Oct 2012 14:36:03 -0000 @@ -8,6 +8,8 @@ # # NOTE: Correct permission of this file 644(or 604) +DirectoryIndex index.php index.html + ## Access control by Order/Allow/Deny directives ## needs 'AllowOverride Limit' at httpd.conf @@ -26,11 +28,13 @@ ## Authentication to this directory with basic-auth ## needs 'AllowOverride AuthConfig' at httpd.conf -#AuthType Basic -#AuthName "Authentication required" -#AuthUserFile /path/to/.htpasswd + +AuthType Basic +AuthName "JSIK - Authentication required" +AuthUserFile /home/jsik/www/.htpasswd #AuthGroupFile /dev/null -#Require valid-user +Require valid-user + ## Using zlib.output_compression per directory (via .htaccess) ## needs 'AllowOverride Options' at httpd.conf Index: default.ini.php =================================================================== RCS file: /cvsroot/pukiwiki/pukiwiki/default.ini.php,v retrieving revision 1.26 diff -u -b -r1.26 default.ini.php --- default.ini.php 1 Feb 2011 15:01:18 -0000 1.26 +++ default.ini.php 14 Oct 2012 14:36:03 -0000 @@ -19,7 +19,7 @@ ///////////////////////////////////////////////// // 雛形とするページの読み込みを可能にする -$load_template_func = 1; +$load_template_func = 0; ///////////////////////////////////////////////// // 検索文字列を色分けする @@ -37,15 +37,17 @@ $_ol_margin = 16; // リストの階層間の間隔(px) $_dl_left_margin = 0; // リストと画面左端との間隔(px) $_dl_margin = 16; // リストの階層間の間隔(px) -$_list_pad_str = ' class="list%d" style="padding-left:%dpx;margin-left:%dpx"'; + +//$_list_pad_str = ' class="list%d" style="padding-left:%dpx;margin-left:%dpx"'; +$_list_pad_str = ' class="list%d" '; ///////////////////////////////////////////////// // テキストエリアのカラム数 -$cols = 80; +$cols = 100; ///////////////////////////////////////////////// // テキストエリアの行数 -$rows = 20; +$rows = 30; ///////////////////////////////////////////////// // 大・小見出しから目次へ戻るリンクの文字 @@ -53,11 +55,13 @@ ///////////////////////////////////////////////// // 添付ファイルの一覧を常に表示する (負担がかかります) -$attach_link = 1; +//$attach_link = 1; +$attach_link = 0; ///////////////////////////////////////////////// // 関連するページのリンク一覧を常に表示する(負担がかかります) -$related_link = 1; +//$related_link = 1; +$related_link = 0; // リンク一覧の区切り文字 $related_str = "\n "; @@ -86,7 +90,8 @@ ///////////////////////////////////////////////// // WikiName,BracketNameに経過時間を付加する -$show_passage = 1; +//$show_passage = 1; +$show_passage = 0; ///////////////////////////////////////////////// // リンク表示をコンパクトにする Index: pukiwiki.ini.php =================================================================== RCS file: /cvsroot/pukiwiki/pukiwiki/pukiwiki.ini.php,v retrieving revision 1.149 diff -u -b -r1.149 pukiwiki.ini.php --- pukiwiki.ini.php 26 Aug 2007 15:19:48 -0000 1.149 +++ pukiwiki.ini.php 14 Oct 2012 14:36:03 -0000 @@ -53,7 +53,7 @@ // argsN+1 // }} // #memo(This makes '#memo(foo)' to this) -define('PKWKEXP_DISABLE_MULTILINE_PLUGIN_HACK', 1); // 1 = Disabled +define('PKWKEXP_DISABLE_MULTILINE_PLUGIN_HACK', 0); // 1 = Disabled ///////////////////////////////////////////////// // Language / Encoding settings @@ -110,19 +110,19 @@ ///////////////////////////////////////////////// // Title of your Wikisite (Name this) // Also used as RSS feed's channel name etc -$page_title = 'PukiWiki'; +$page_title = '情報知識学会'; // Specify PukiWiki URL (default: auto) -//$script = 'http://example.com/pukiwiki/'; +$script = 'http://www.jsik.jp/'; // Shorten $script: Cut its file name (default: not cut) //$script_directory_index = 'index.php'; // Site admin's name (CHANGE THIS) -$modifier = 'anonymous'; +$modifier = '情報知識学会'; // Site admin's Web page (CHANGE THIS) -$modifierlink = 'http://pukiwiki.example.com/'; +$modifierlink = './?contactus'; // Default page name $defaultpage = 'FrontPage'; // Top / Default page @@ -157,7 +157,7 @@ ///////////////////////////////////////////////// // Spam URI insertion filtering -$spam = 1; // 1 = On +$spam = 0; // 1 = On if ($spam) { $spam = array(); @@ -198,7 +198,7 @@ ///////////////////////////////////////////////// // _Disable_ WikiName auto-linking -$nowikiname = 0; +$nowikiname = 1; ///////////////////////////////////////////////// // AutoLink feature @@ -219,18 +219,19 @@ ///////////////////////////////////////////////// // Enable Freeze / Unfreeze feature -$function_freeze = 1; +$function_freeze = 0; ///////////////////////////////////////////////// // Allow to use 'Do not change timestamp' checkbox // (0:Disable, 1:For everyone, 2:Only for the administrator) -$notimeupdate = 1; +$notimeupdate = 0; ///////////////////////////////////////////////// // Admin password for this Wikisite // Default: always fail -$adminpass = '{x-php-md5}!'; +//$adminpass = '{x-php-md5}!'; +$adminpass = '{x-php-md5}' . md5('jsik'); // Sample: //$adminpass = 'pass'; // Cleartext @@ -398,7 +399,7 @@ // Mail related settings // Send mail per update of pages -$notify = 0; +$notify = 1; // Send diff only $notify_diff_only = 1; @@ -407,11 +408,11 @@ $smtp_server = 'localhost'; // Mail recipient (To:) and sender (From:) -$notify_to = 'to@example.com'; // To: -$notify_from = 'from@example.com'; // From: +$notify_to = 'TAKAKU.Masao@nims.go.jp,yuka@nier.go.jp'; // To: +$notify_from = 'yuka@nier.go.jp'; // From: // Subject: ($page = Page name wll be replaced) -$notify_subject = '[PukiWiki] $page'; +$notify_subject = '[JSIK-Wiki] $page'; // Mail header // NOTE: Multiple items must be divided by "\r\n", not "\n". @@ -446,7 +447,7 @@ ///////////////////////////////////////////////// // Template setting -$auto_template_func = 1; +$auto_template_func = 0; $auto_template_rules = array( '((.+)\/([^\/]+))' => '\2/template' ); Index: lib/convert_html.php =================================================================== RCS file: /cvsroot/pukiwiki/pukiwiki/lib/convert_html.php,v retrieving revision 1.21 diff -u -b -r1.21 convert_html.php --- lib/convert_html.php 25 Jan 2011 15:01:01 -0000 1.21 +++ lib/convert_html.php 14 Oct 2012 14:36:03 -0000 @@ -808,6 +808,28 @@ return $this->wrap(parent::toString(), 'div', ' style="text-align:' . $this->align . '"'); } } +// FLEFT:/FRIGHT: +class FloatAlign extends Element +{ + var $align; + + function FloatAlign($align) + { + parent::Element(); + $this->align = substr( $align, 1 ); + } + + function canContain(& $obj) + { + return is_a($obj, 'Inline'); + } + + function toString() + { + return $this->wrap(parent::toString(), 'div', ' style="float:' . $this->align . '"'); + } +} + // Body class Body extends Element @@ -852,6 +874,11 @@ if ($matches[2] == '') continue; $line = $matches[2]; } + if (preg_match('/^(FLEFT|FRIGHT):(.*)$/', $line, $matches)) { + $this->last = & $this->last->add(new FloatAlign(strtolower($matches[1]))); + if ($matches[2] == '') continue; + $line = $matches[2]; + } $line = rtrim($line, "\r\n"); Index: lib/func.php =================================================================== RCS file: /cvsroot/pukiwiki/pukiwiki/lib/func.php,v retrieving revision 1.104 diff -u -b -r1.104 func.php --- lib/func.php 25 Jan 2011 15:01:01 -0000 1.104 +++ lib/func.php 14 Oct 2012 14:36:03 -0000 @@ -286,7 +286,7 @@ $retval = '