/index.php?plugin=md5 // このURLにアクセスすることで、MD5ハッシュを算出するための画 // 面が表示されます。しかし、この機能を利用する場合、あなたが // タイプしたパスワードがネットワークをそのまま流れる可能性が // あるため、(1)あなたが使っているコンピュータ、(2)サーバーま // でのネットワーク、(3)サーバー のいずれかが信頼できないので // あれば、この方法は使わないで下さい。 ///////////////////////////////////////////////// // Page-reading (ページ名に読みがなをつける機能) に関する設定 // (「ページ一覧」の並び順を正しくするために、漢字仮名まじりの // ページ名について、自動的に読みがなを生成する) // ChaSen または KAKASHI コマンドを使って読みがなを得る機能を // 有効にする (1:有効, 0:無効) $pagereading_enable = 0; // コンバーターを指定する: ChaSen('chasen'), KAKASI('kakasi'), なし('none') $pagereading_kanji2kana_converter = 'none'; // 受け渡すデータのエンコーディングを指定する $pagereading_kanji2kana_encoding = 'EUC'; // Unix でのデフォルト //$pagereading_kanji2kana_encoding = 'SJIS'; // Windows でのデフォルト // コンバーターの絶対パス (ChaSen) $pagereading_chasen_path = '/usr/local/bin/chasen'; //$pagereading_chasen_path = 'c:\progra~1\chasen21\chasen.exe'; // コンバーターの絶対パス (KAKASI) $pagereading_kakasi_path = '/usr/local/bin/kakasi'; //$pagereading_kakasi_path = 'c:\kakasi\bin\kakasi.exe'; // 読みがなを格納するページ名 $pagereading_config_page = ':config/PageReading'; // コンバーターが「なし('none')」である時に使われる、既定の読み // がなを収めたページ名 $pagereading_config_dict = ':config/PageReading/dict'; ///////////////////////////////////////////////// // ユーザー定義 $auth_users = array( // 'ユーザー名' => 'パスワード', 'foo' => 'foo_passwd', // クリアテキスト 'bar' => '{x-php-md5}f53ae779077e987718cc285b14dfbe86', // md5('bar_passwd') 'hoge' => '{SMD5}OzJo/boHwM4q5R+g7LCOx2xGMkFKRVEx', // SMD5 'hoge_passwd' ); ///////////////////////////////////////////////// // 認証方法 $auth_method_type = 'pagename'; // ページ名による認証 //$auth_method_type = 'contents'; // ページの内容による認証 ///////////////////////////////////////////////// // 閲覧認証 (0:無効、1:有効) $read_auth = 0; // 閲覧認証をかけるための正規表現 $read_auth_pages = array( '#ひきこもるほげ#' => 'hoge', '#(ネタバレ|ねたばれ)#' => 'foo,bar,hoge', ); ///////////////////////////////////////////////// // 編集認証 (0:無効、1:有効) $edit_auth = 0; // 編集認証をかけるための正規表現 $edit_auth_pages = array( '#Barの公開日記#' => 'bar', '#ひきこもるほげ#' => 'hoge', '#(ネタバレ|ねたばれ)#' => 'foo', ); ///////////////////////////////////////////////// // 検索認証 // 0: 無効 (閲覧禁止であるページの内容も検索する) // 1: 有効 (そのユーザーに許可されているページのみを検索する) $search_auth = 0; ///////////////////////////////////////////////// // 使用しないプラグイン(サイトのポリシーによって変更してください) $exclude_plugin = array( 'server', 'version', 'versionlist', ); ///////////////////////////////////////////////// // $whatsnew: RecentChangesの最大項目数 $maxshow = 60; // $whatsdeleted: RecentDeletedの最大項目数 (0 = 無効) $maxshow_deleted = 60; ///////////////////////////////////////////////// // 編集を禁止するページ名 $cantedit = array( $whatsnew, $whatsdeleted ); ///////////////////////////////////////////////// // HTTP: Last-Modified ヘッダを出力する $lastmod = 0; ///////////////////////////////////////////////// // 日付のフォーマット $date_format = 'Y-m-d'; // 時刻のフォーマット $time_format = 'H:i:s'; ///////////////////////////////////////////////// // RSSフィードの最大項目数 $rss_max = 15; ///////////////////////////////////////////////// // バックアップ関係の設定 // バックアップ機能を有効にする $do_backup = 1; // ページが削除された時に、そのバックアップも削除するか? $del_backup = 0; // バックアップの間隔と世代 $cycle = 1; // 何時間ごとにバックアップするか (0 = 常に行う) $maxage = 360; // 何世代までのバックアップを保存するか // 参考: $cycle x $maxage / 24 = データを失うまでの最短日数 // 1 x 360 / 24 = 15 // バックアップデータの中身を区切る文字列 (注意: 変更しないでください!) define('PKWK_SPLITTER', '>>>>>>>>>>'); ///////////////////////////////////////////////// // 更新される度に実行するコマンド define('PKWK_UPDATE_EXEC', ''); $update_exec = PKWK_UPDATE_EXEC; // 設定サンプル: Namazu の設定 //$target = '/var/www/wiki/'; //$mknmz = '/usr/bin/mknmz'; //$output_dir = '/var/lib/namazu/index/'; //define('PKWK_UPDATE_EXEC', // $mknmz . ' --media-type=text/pukiwiki' . // ' -O ' . $output_dir . ' -L ja -c -K ' . $target); ///////////////////////////////////////////////// // プロキシの設定 (TrackBackなどが用いる) // 他のサイトからデータを得るためにHTTPプロキシサーバーを経由する $use_proxy = 0; $proxy_host = 'proxy.example.com'; $proxy_port = 8080; // ベーシック認証を行う $need_proxy_auth = 0; $proxy_auth_user = 'username'; $proxy_auth_pass = 'password'; // プロキシサーバーを必要としないホスト $no_proxy = array( 'localhost', // localhost '127.0.0.0/8', // loopback // '10.0.0.0/8' // private class A // '172.16.0.0/12' // private class B // '192.168.0.0/16' // private class C // 'no-proxy.com', ); //////////////////////////////////////////////// // 電子メール関連の設定 // ページが更新される度にメールを送る $notify = 0; // 差分データのみを送る $notify_diff_only = 1; // SMTP サーバー (Windows環境のみ。通常は php.ini で定義されている) $smtp_server = 'localhost'; // 宛先(To:)と送信者(From:) $notify_to = 'to@example.com'; // To: $notify_from = 'from@example.com'; // From: // 件名(Subject:) ($page = 更新されたページの名前に置換される) $notify_subject = '[PukiWiki] $page'; // メールヘッダ $notify_header = "From: $notify_from\r\n" . 'X-Mailer: PukiWiki/' . S_VERSION . ' PHP/' . phpversion(); // メールによる通知を必要としないホスト $notify_exclude = array( // '192.168.0.', ); ///////////////////////////////////////////////// // 電子メール: POP / APOP Before SMTP // メールを送る前に POP/APOP 認証を行う $smtp_auth = 0; $pop_server = 'localhost'; $pop_port = 110; $pop_userid = ''; $pop_passwd = ''; // POPの代わりにAPOPを用いる (もしサーバーが対応していれば) // 未設定 = 自動 (可能ならAPOPを用いる) // 1 = 常に APOP を用いる // 0 = 常に POP を用いる // $pop_auth_use_apop = 1; ///////////////////////////////////////////////// // 無視するページのリスト // 無視するページの正規表現 $non_list = '^\:'; // 無視するページを検索するかどうか $search_non_list = 1; ///////////////////////////////////////////////// // テンプレートの設定 $auto_template_func = 1; $auto_template_rules = array( '((.+)\/([^\/]+))' => '\2/template' ); ///////////////////////////////////////////////// // 見出しに既定の形式でアンカー(タグ)を自動挿入する $fixed_heading_anchor = 1; ///////////////////////////////////////////////// // 「整形済みテキスト」から先頭のスペースを取り除く $preformat_ltrim = 1; ///////////////////////////////////////////////// // 改行を
タグに置換する $line_break = 0; ///////////////////////////////////////////////// // 日付・時刻の置換ルールを使用(rules.ini.phpも参照) $usedatetime = 1; ///////////////////////////////////////////////// // 見出しごとの編集を可能にする // // 見出し行の固有のアンカ自動挿入されているとき // のみ有効です $fixed_heading_edited = 0; ///////////////////////////////////////////////// // ページを任意のフレームに開く時に使う設定 $use_open_uri_in_new_window = 1; // 同一サーバーとしてみなすホストのURI $open_uri_in_new_window_servername = array( "http://localhost/", "http://localhost.localdomain/", ); // URIの種類によって開く動作を設定。 // "_blank"で別窓へ表示、falseを指定すると無効 $open_uri_in_new_window_opis = "_blank"; // pukiwikiの外で同一サーバー内 $open_uri_in_new_window_opisi = false; // pukiwikiの外で同一サーバー内(InterWikiLink) $open_uri_in_new_window_opos = "_blank"; // pukiwikiの外で外部サーバー $open_uri_in_new_window_oposi = "_blank"; // pukiwikiの外で外部サーバー(InterWikiLink) // (注意:あえて拡張しやすいようにしていますが、"_blank"以外は指定しないでください) ///////////////////////////////////////////////// // ユーザーエージェント設定 // // もしもリッチコンテンツを含んだWikiサイトとして組み込みブラウザを // サポートしたく無いのであれば、'keitai' に関する設定を全て削除 // (ないしコメントアウト)して下さい。 // // もしkeitaiスキンを使用した、簡素なWikiサイトとして利用したいので // あれば、 keitai.ini.php を default.ini.php にコピーし、中身を // デスクトップPC向けにカスタマイズして下さい。 $agents = array( // pattern: A regular-expression that matches device(browser)'s name and version // profile: A group of browsers // Embedded browsers (Rich-clients for PukiWiki) // Windows CE (Microsoft(R) Internet Explorer 5.5 for Windows(R) CE) // Sample: "Mozilla/4.0 (compatible; MSIE 5.5; Windows CE; sigmarion3)" (sigmarion, Hand-held PC) array('pattern'=>'#\b(?:MSIE [5-9]).*\b(Windows CE)\b#', 'profile'=>'default'), // ACCESS "NetFront" / "Compact NetFront" and thier OEM, expects to be "Mozilla/4.0" // Sample: "Mozilla/4.0 (PS2; PlayStation BB Navigator 1.0) NetFront/3.0" (PlayStation BB Navigator, for SONY PlayStation 2) // Sample: "Mozilla/4.0 (PDA; PalmOS/sony/model crdb/Revision:1.1.19) NetFront/3.0" (SONY Clie series) // Sample: "Mozilla/4.0 (PDA; SL-A300/1.0,Embedix/Qtopia/1.1.0) NetFront/3.0" (SHARP Zaurus) array('pattern'=>'#^(?:Mozilla/4).*\b(NetFront)/([0-9\.]+)#', 'profile'=>'default'), // Embedded browsers (Non-rich) // Windows CE (the others) // Sample: "Mozilla/2.0 (compatible; MSIE 3.02; Windows CE; 240x320 )" (GFORT, NTT DoCoMo) array('pattern'=>'#\b(Windows CE)\b#', 'profile'=>'keitai'), // ACCESS "NetFront" / "Compact NetFront" and thier OEM // Sample: "Mozilla/3.0 (AveFront/2.6)" ("SUNTAC OnlineStation", USB-Modem for PlayStation 2) // Sample: "Mozilla/3.0(DDIPOCKET;JRC/AH-J3001V,AH-J3002V/1.0/0100/c50)CNF/2.0" (DDI Pocket: AirH" Phone by JRC) array('pattern'=>'#\b(NetFront)/([0-9\.]+)#', 'profile'=>'keitai'), array('pattern'=>'#\b(CNF)/([0-9\.]+)#', 'profile'=>'keitai'), array('pattern'=>'#\b(AveFront)/([0-9\.]+)#', 'profile'=>'keitai'), array('pattern'=>'#\b(AVE-Front)/([0-9\.]+)#', 'profile'=>'keitai'), // The same? // NTT-DoCoMo, i-mode (embeded Compact NetFront) and FOMA (embedded NetFront) phones // Sample: "DoCoMo/1.0/F501i", "DoCoMo/1.0/N504i/c10/TB/serXXXX" // c以降は可変 // Sample: "DoCoMo/2.0 MST_v_SH2101V(c100;TB;W22H12;serXXXX;iccxxxx)" // ()の中は可変 array('pattern'=>'#^(DoCoMo)/([0-9\.]+)#', 'profile'=>'keitai'), // Vodafone's embedded browser // Sample: "J-PHONE/2.0/J-T03" // 2.0は"ブラウザの"バージョン // Sample: "J-PHONE/4.0/J-SH51/SNxxxx SH/0001a Profile/MIDP-1.0 Configuration/CLDC-1.0 Ext-Profile/JSCL-1.1.0" array('pattern'=>'#^(J-PHONE)/([0-9\.]+)#', 'profile'=>'keitai'), // Vodafone/SoftBank 3G's embedded browser // Sample: "Vodafone/1.0/V904SH/SHJ001/SNxxxx Browser/VF-NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1" // Sample: "SoftBank/1.0/910T/TJ001/SNxxxxxx Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1" // array('pattern'=>'#^(Vodafone|SoftBank)/([0-9\.]+)#', 'profile'=>'keitai'), // Openwave(R) Mobile Browser (EZweb, WAP phone, etc) // Sample: "OPWV-SDK/62K UP.Browser/6.2.0.5.136 (GUI) MMP/2.0" array('pattern'=>'#\b(UP\.Browser)/([0-9\.]+)#', 'profile'=>'keitai'), // Opera, dressing up as other embedded browsers // Sample: "Mozilla/3.0(DDIPOCKET;KYOCERA/AH-K3001V/1.4.1.67.000000/0.1/C100) Opera 7.0" (Like CNF at 'keitai'-mode) array('pattern'=>'#\b(?:DDIPOCKET|WILLCOM)\b.+\b(Opera) ([0-9\.]+)\b#', 'profile'=>'keitai'), // Planetweb http://www.planetweb.com/ // Sample: "Mozilla/3.0 (Planetweb/v1.07 Build 141; SPS JP)" ("EGBROWSER", Web browser for PlayStation 2) array('pattern'=>'#\b(Planetweb)/v([0-9\.]+)#', 'profile'=>'keitai'), // DreamPassport, Web browser for SEGA DreamCast // Sample: "Mozilla/3.0 (DreamPassport/3.0)" array('pattern'=>'#\b(DreamPassport)/([0-9\.]+)#', 'profile'=>'keitai'), // Palm "Web Pro" http://www.palmone.com/us/support/accessories/webpro/ // Sample: "Mozilla/4.76 [en] (PalmOS; U; WebPro)" array('pattern'=>'#\b(WebPro)\b#', 'profile'=>'keitai'), // ilinx "Palmscape" / "Xiino" http://www.ilinx.co.jp/ // Sample: "Xiino/2.1SJ [ja] (v. 4.1; 153x130; c16/d)" array('pattern'=>'#^(Palmscape)/([0-9\.]+)#', 'profile'=>'keitai'), array('pattern'=>'#^(Xiino)/([0-9\.]+)#', 'profile'=>'keitai'), // SHARP PDA Browser (SHARP Zaurus) // Sample: "sharp pda browser/6.1[ja](MI-E1/1.0) " array('pattern'=>'#^(sharp [a-z]+ browser)/([0-9\.]+)#', 'profile'=>'keitai'), // WebTV array('pattern'=>'#^(WebTV)/([0-9\.]+)#', 'profile'=>'keitai'), // Desktop-PC browsers // Opera (for desktop PC, not embedded) -- See official:BugTrack/743 for detail // NOTE: Keep this pattern above MSIE and Mozilla // Sample: "Opera/7.0 (OS; U)" (not disguise) // Sample: "Mozilla/4.0 (compatible; MSIE 5.0; OS) Opera 6.0" (disguise) array('pattern'=>'#\b(Opera)[/ ]([0-9\.]+)\b#', 'profile'=>'default'), // MSIE: Microsoft Internet Explorer (or something disguised as MSIE) // Sample: "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" array('pattern'=>'#\b(MSIE) ([0-9\.]+)\b#', 'profile'=>'default'), // Mozilla Firefox // NOTE: Keep this pattern above Mozilla // Sample: "Mozilla/5.0 (Windows; U; Windows NT 5.0; ja-JP; rv:1.7) Gecko/20040803 Firefox/0.9.3" array('pattern'=>'#\b(Firefox)/([0-9\.]+)\b#', 'profile'=>'default'), // Loose default: Including something Mozilla array('pattern'=>'#^([a-zA-z0-9 ]+)/([0-9\.]+)\b#', 'profile'=>'default'), array('pattern'=>'#^#', 'profile'=>'default'), // Sentinel ); ?>