[[FrontPage]]

[[PukiWiki - PukiWiki-official:http://pukiwiki.sourceforge.jp/?PukiWiki]]

> PukiWikiは、自由にページを編集できるツール(CMS:コンテンツ管理システム)です。

ライセンスは、GPLv2。([[PukiWiki/Install/ライセンスについて - PukiWiki-official:http://pukiwiki.sourceforge.jp/?PukiWiki%2FInstall%2F%E3%83%A9%E3%82%A4%E3%82%BB%E3%83%B3%E3%82%B9%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6]])

** インストール [#c9a906fd]

+ http://pukiwiki.sourceforge.jp/?PukiWiki%2FDownload%2F1.4.7から、&br;UTF-8のzipファイル(pukiwiki-1.4.7_notb_utf8.zip)をダウンロード
+ C:\tools\www\ 配下に展開。&br;C:\tools\www\pukiwiki-1.4.7_notb_utf8
+ IISマネージャーで、Default Web Siteを選択、右クリックして「アプリケーションの追加」&br;&ref(pukiwiki_0.jpg,,50%);
+ エイリアスと物理パスを適切に設定してOK&br;&ref(pukiwiki_1.jpg);
+ すると、IISマネージャーに追加されます。&br;&ref(pukiwiki_2.jpg,,50%);
+ 試しにアクセス&br;&ref(pukiwiki_3.jpg,,50%);
+ まだ、書き込み等が出来ないので、&br;C:\tools\www\pukiwiki-1.4.7_notb_utf8配下のフォルダとファイルに対して、IUSRに「読み取りと実行」&br;C:\tools\www\pukiwiki-1.4.7_notb_utf8配下のフォルダ(フォルダ内のファイルも)に対して、IUSRに「変更」&br;の権限を与えます。
+ 設定ファイルを変更します。
-- pukiwiki.ini.php
 ・・・
 // Site admin's name (CHANGE THIS)
 $modifier = 'admin';
 
 // Site admin's Web page (CHANGE THIS)
 $modifierlink = 'http://imanimanimani.dontexist.net/';
 ・・・
 // Sample:
 //$adminpass = 'pass'; // Cleartext
 $adminpass = '{x-php-md5}xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
 ・・・
 // User definition
 $auth_users = array(
 	// Username => password
 	'foo'	=> 'foo_passwd', // Cleartext
 	'bar'	=> '{x-php-md5}f53ae779077e987718cc285b14dfbe86', // PHP md5() 'bar_passwd'
 	'hoge'	=> '{SMD5}OzJo/boHwM4q5R+g7LCOx2xGMkFKRVEx',      // LDAP SMD5 'hoge_passwd'
 	'admin' => '{x-php-md5}xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', // 追加
 );
 ・・・
 // Edit auth (0:Disable, 1:Enable)
 $edit_auth = 1; // 編集時の認証を有効にします
 
 $edit_auth_pages = array(
 	// Regex		   Username
 	'#BarDiary#'		=> 'bar',
 	'#HogeHoge#'		=> 'hoge',
 	'/.*$/'		=> 'admin', // 追加
 	'#(NETABARE|NetaBare)#'	=> 'foo,bar,hoge',
 );
''※ {x-php-md5}～ については、http://～/pukiwiki/index.php?plugin=md5 で生成''

** プラグイン インストール [#c972b07c]

*** [[自作プラグイン/htmlinsert.inc.php - PukiWiki-official:http://pukiwiki.sourceforge.jp/?%E8%87%AA%E4%BD%9C%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%2Fhtmlinsert.inc.php]] [#l9436f82]

テーブルソートがしたかったので、導入。~
ライセンスの記載は見当たりませんでした。

+ htmlinsert.inc.php.4をダウンロードした後、htmlinsert.inc.phpに名称変更して、pluginフォルダへコピーします。&br;自分の環境だと、C:\tools\www\pukiwiki-1.4.7_notb_utf8\plugin
+ C:\tools\www\pukiwiki-1.4.7_notb_utf8\htmlinsert というディレクトリを作って、&br;テーブルソート用のJavaScriptを格納します。&br;[[table sort:http://www.tagarga.com/blok/post/2]]のtablesort.jsを使わせていただきました。
+ tablesort.jsを読み込む用の、htmlを作成。tablesort_insert.html((後述))。tablesort.jsと同じ場所に起きます。
+ テーブルソートしたいwikiページで、&br;&amp;htmlinsert(tablesort_insert.html);を記述。

-tablesort_insert.html
 <style type="text/css">
 <!--
 style_td { font:0.8em Tahoma,sans-serif; border:1px solid #c0c0c0; padding:5px; }
 thead td { padding-right:20px;  }
 
 style_td.sortable  { background:#606060; color:white; font-weight: bold; cursor: pointer; }
 style_td.sorted_asc { background:#606060 url(/pukiwiki/htmlinsert/up.gif) center right no-repeat; }
 style_td.sorted_desc { background:#606060 url(/pukiwiki/htmlinsert/down.gif) center right no-repeat; }
 -->
 </style>
 <script type="text/javascript" src="/pukiwiki/htmlinsert/tablesort.js">
 </script>
 
例：[[FrontPage - PukiWiki:http://imanimanimani.dontexist.net/pukiwiki/index.php?FrontPage]]の各種Webアプリケーションのテーブルのヘッダをクリックすると、ソートします。(JavaScriptを有効にする必要があります)

*** [[PukiWikiプラグイン - wysiwyg:http://gimite.net/pukiwiki/index.php?PukiWiki%A5%D7%A5%E9%A5%B0%A5%A4%A5%F3]] [#a61f31c0]

htmlArea License (based on BSD license)~
plugin配下のphpファイルの文字コードをUTF8に変換する。

[[プラグイン/GUI編集 - Frontier:http://teao.te.kyusan-u.ac.jp/bluemoon/index.php?%A5%D7%A5%E9%A5%B0%A5%A4%A5%F3%2FGUI%CA%D4%BD%B8]]もそのうち試してみる。

*** [[自作プラグイン/table_edit.inc.php - PukiWiki-official:http://pukiwiki.sourceforge.jp/?%E8%87%AA%E4%BD%9C%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%2Ftable_edit.inc.php]] [#aa21d6ca]

行数の多いテーブルをサクッと修正したかったので導入。

文字化けするので、phpファイルの文字コードをUTF8に変換する。
