// 初期設定($WikiName,$BracketNameなど) // $WikiName = '[A-Z][a-z]+(?:[A-Z][a-z]+)+'; // $WikiName = '\b[A-Z][a-z]+(?:[A-Z][a-z]+)+\b'; // $WikiName = '(?<![[:alnum:]])(?:[[:upper:]][[:lower:]]+){2,}(?![[:alnum:]])'; // $WikiName = '(?<!\w)(?:[A-Z][a-z]+){2,}(?!\w)'; // BugTrack/304暫定対処 $WikiName = '(?:[A-Z][a-z]+){2,}(?!\\w)'; // $BracketName = ':?[^\s\]#&<>":]+:?'; $BracketName = '(?!\\s):?[^\\r\\n\\t\\f\\[\\]<>#&":]+:?(?<!\\s)'; // InterWiki $InterWikiName = '(\\[\\[)?((?:(?!\\s|:|\\]\\]).)+):(.+)(?(1)\\]\\])'; // 注釈 $NotePattern = '/\\(\\(((?:(?>(?:(?!\\(\\()(?!\\)\\)(?:[^\\)]|$)).)+)|(?R))*)\\)\\)/ex'; ///////////////////////////////////////////////// // 初期設定(ユーザ定義ルール読み込み) require add_homedir('rules.ini.php'); ///////////////////////////////////////////////// // 初期設定(その他のグローバル変数) // 現在時刻 $now = format_date(UTIME); // 日時置換ルールを$line_rulesに加える if ($usedatetime) { $line_rules = array_merge($datetime_rules, $line_rules); } unset($datetime_rules); // フェイスマークを$line_rulesに加える if ($usefacemark) { $line_rules = array_merge($facemark_rules, $line_rules); } unset($facemark_rules); // 実体参照パターンおよびシステムで使用するパターンを$line_rulesに加える
// リンク表示をコンパクトにする // * ページに対するハイパーリンクからタイトルを外す // * Dangling linkのCSSを外す $link_compact = 0; ///////////////////////////////////////////////// // フェイスマークを使用する $usefacemark = 1; ///////////////////////////////////////////////// // ユーザ定義ルール // // 正規表現で記述してください。?(){}-*./+\$^|など // は \? のようにクォートしてください。 // 前後に必ず / を含めてください。行頭指定は ^ を頭に。 // 行末指定は $ を後ろに。 // ///////////////////////////////////////////////// // ユーザ定義ルール(コンバート時に置換) $line_rules = array('COLOR\\(([^\\(\\)]*)\\){([^}]*)}' => '<span style="color:$1">$2</span>', 'SIZE\\(([^\\(\\)]*)\\){([^}]*)}' => '<span style="font-size:$1px">$2</span>', 'COLOR\\(([^\\(\\)]*)\\):((?:(?!COLOR\\([^\\)]+\\)\\:).)*)' => '<span style="color:$1">$2</span>', 'SIZE\\(([^\\(\\)]*)\\):((?:(?!SIZE\\([^\\)]+\\)\\:).)*)' => '<span class="size$1">$2</span>', 'SUP{([^}]*)}' => '<span style="font-size:60%;vertical-align:super;">$1</span>', 'SUB{([^}]*)}' => '<span style="font-size:60%;vertical-align:sub;">$1</span>', '%%%(?!%)((?:(?!%%%).)*)%%%' => '<ins>$1</ins>', '%%(?!%)((?:(?!%%).)*)%%' => '<del>$1</del>', "'''(?!')((?:(?!''').)*)'''" => '<em>$1</em>', "''(?!')((?:(?!'').)*)''" => '<strong>$1</strong>'); ///////////////////////////////////////////////// // フェイスマーク定義ルール(コンバート時に置換) // $usefacemark = 1ならフェイスマークが置換されます // 文章内にXDなどが入った場合にfacemarkに置換されてしまうので // 必要のない方は $usefacemarkを0にしてください。 $facemark_rules = array('\\s(\\:\\))' => ' <img alt="$1" src="' . IMAGE_URI . 'face/smile.png" />', '\\s(\\:D)' => ' <img alt="$1" src="' . IMAGE_URI . 'face/bigsmile.png" />', '\\s(\\:p)' => ' <img alt="$1" src="' . IMAGE_URI . 'face/huh.png" />', '\\s(\\:d)' => ' <img alt="$1" src="' . IMAGE_URI . 'face/huh.png" />', '\\s(XD)' => ' <img alt="$1" src="' . IMAGE_URI . 'face/oh.png" />', '\\s(X\\()' => ' <img alt="$1" src="' . IMAGE_URI . 'face/oh.png" />', '\\s(;\\))' => ' <img alt="$1" src="' . IMAGE_URI . 'face/wink.png" />', '\\s(;\\()' => ' <img alt="$1" src="' . IMAGE_URI . 'face/sad.png" />', '\\s(\\:\\()' => ' <img alt="$1" src="' . IMAGE_URI . 'face/sad.png" />', '&(smile);' => ' <img alt="[$1]" src="' . IMAGE_URI . 'face/smile.png" />', '&(bigsmile);' => ' <img alt="[$1]" src="' . IMAGE_URI . 'face/bigsmile.png" />', '&(huh);' => ' <img alt="[$1]" src="' . IMAGE_URI . 'face/huh.png" />', '&(oh);' => ' <img alt="[$1]" src="' . IMAGE_URI . 'face/oh.png" />', '&(wink);' => ' <img alt="[$1]" src="' . IMAGE_URI . 'face/wink.png" />', '&(sad);' => ' <img alt="[$1]" src="' . IMAGE_URI . 'face/sad.png" />', '&(heart);' => ' <img alt="[$1]" src="' . IMAGE_URI . 'face/heart.png" />', '&(worried);' => ' <img alt="[$1]" src="' . IMAGE_URI . 'face/worried.png" />', '&(sweat);' => ' <img alt="[$1]" src="' . IMAGE_URI . 'face/worried.png" />', '&(tear);' => ' <img alt="[$1]" src="' . IMAGE_URI . 'face/tear.png" />', '&(umm);' => ' <img alt="[$1]" src="' . IMAGE_URI . 'face/umm.png" />', '&(star);' => ' <img alt="[$1]" src="' . IMAGE_URI . 'face/star.gif" />', '\\((\\^\\^\\))' => ' <img alt="($1" src="' . IMAGE_URI . 'face/smile.png" />', '\\((\\^-\\^)' => ' <img alt="($1" src="' . IMAGE_URI . 'face/bigsmile.png" />', '\\((\\^Q\\^)' => ' <img alt="($1" src="' . IMAGE_URI . 'face/huh.png" />', '\\((\\.\\.;)' => ' <img alt="($1" src="' . IMAGE_URI . 'face/oh.png" />', '\\((\\^_-)' => ' <img alt="($1" src="' . IMAGE_URI . 'face/wink.png" />', '\\((\\^_-\\))' => ' <img alt="($1" src="' . IMAGE_URI . 'face/wink.png" />', '\\((--;)' => ' <img alt="($1" src="' . IMAGE_URI . 'face/sad.png" />', '\\((\\^\\^;)' => ' <img alt="($1" src="' . IMAGE_URI . 'face/worried.png" />', '\\((\\^\\^;\\))' => ' <img alt="($1" src="' . IMAGE_URI . 'face/worried.png" />', '\\((\\T-T)' => ' <img alt="($1" src="' . IMAGE_URI . 'face/tear.png" />', '\\((\\T-T\\))' => ' <img alt="($1" src="' . IMAGE_URI . 'face/tear.png" />', '\\((\\;_;)' => ' <img alt="($1" src="' . IMAGE_URI . 'face/tear.png" />', '\\((\\;_;\\))' => ' <img alt="($1" src="' . IMAGE_URI . 'face/tear.png" />', '\\((__;)' => ' <img alt="($1" src="' . IMAGE_URI . 'face/umm.png" />', '&(pb1);' => '[1]', '&(pb2);' => '[2]', '&(pb3);' => '[3]', '&(pb4);' => '[4]', '&(pb5);' => '[5]', '&(pb6);' => '[6]', '&(pb7);' => '[7]', '&(pb8);' => '[8]', '&(pb9);' => '[9]', '&(pb0);' => '[0]', '&(pb#);' => '[#]', '&(zzz);' => '[zzz]', '&(man);' => '[man]', '&(clock);' => '[clock]', '&(mail);' => '[mail]', '&(mailto);' => '[mailto]', '&(phone);' => '[phone]', '&(phoneto);' => '[phoneto]', '&(faxto);' => '[faxto]'); ///////////////////////////////////////////////// // クッキーを使用できないアドレス // (通常、デスクトップでは存在しない) $use_trans_sid_address = array(); ///////////////////////////////////////////////// @(include add_homedir('default.usr.ini.php'));
// md5('pass') //$adminpass = '******'; // CRYPT 'pass' //$adminpass = '******'; // MD5 'pass' //$adminpass = '******'; // SMD5 'pass' ///////////////////////////////////////////////// // User definition // 役割(ROLE) // // プラグインによりデータを管理 define('PKWK_AUTH_FILE', add_homedir('auth_users.ini.php')); require_once PKWK_AUTH_FILE; define('PKWK_AUTH_WKGRP_FILE', add_homedir('auth_wkgrp.ini.php')); require_once PKWK_AUTH_WKGRP_FILE; ///////////////////////////////////////////////// // Auth API define('PKWK_AUTH_API_FILE', add_homedir('auth_api.ini.php')); require_once PKWK_AUTH_API_FILE; ///////////////////////////////////////////////// // Authentication method $auth_method_type = 'pagename'; // By Page name //$auth_method_type = 'contents'; // By Page contents ///////////////////////////////////////////////// // Read auth (0:Disable, 1:Enable) $read_auth = 0; $read_auth_pages = array('/:log/' => 'hoge', '#ひきこもるほげ#' => 'hoge', '#(ネタバレ|ねたばれ)#' => 'foo,bar,hoge'); ///////////////////////////////////////////////// // Edit auth (0:Disable, 1:Enable) $edit_auth = 0; $edit_auth_pages = array('#Barの公開日記#' => 'bar', '#ひきこもるほげ#' => 'hoge', '#(ネタバレ|ねたばれ)#' => 'foo,bar,hoge'); /////////////////////////////////////////////////
<?php // $Id: spam.php,v 1.32.3 2008/04/10 00:37:00 upk Exp $ // Copyright (C) // 2007,2009 PukiWiki Plus! Team // 2006-2007 PukiWiki Developers Team // License: GPL v2 or (at your option) any later version // // Functions for Concept-work of spam-uri metrics // // (PHP 4 >= 4.3.0): preg_match_all(PREG_OFFSET_CAPTURE): $method['uri_XXX'] related feature if (!defined('SPAM_INI_FILE')) { define('SPAM_INI_FILE', add_homedir('spam.ini.php')); } if (!defined('DOMAIN_INI_FILE')) { define('DOMAIN_INI_FILE', add_homedir('domain.ini.php')); } // --------------------- // Compat etc // (PHP 4 >= 4.2.0): var_export(): mail-reporting and dump related if (!function_exists('var_export')) { function var_export() { return 'var_export() is not found on this server' . "\n"; } } // (PHP 4 >= 4.2.0): preg_grep() enables invert option function preg_grep_invert($pattern = '//', $input = array()) { static $invert; if (!isset($invert)) {
$line_break = 0; ///////////////////////////////////////////////// // Use date-time rules (See rules.ini.php) $usedatetime = 1; ///////////////////////////////////////////////// // 見出しごとの編集を可能にする // // 見出し行の固有のアンカ自動挿入されているとき // のみ有効です // 0:無効 // 1:edit, 2:guiedit, 3:edit+guiedit プラグインを利用 $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'以外は指定しないでください) // User-Agent settings require_once add_homedir('profile.ini.php');