X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=rules.ini.php;h=5c507e86efd1285b496ad52527e23e2375081d2a;hb=refs%2Fheads%2Fbugtrack_2434_search_result_cache2;hp=ba42de77aeaa23b1235a48ff6c7a641344d3e4dc;hpb=8d6dd8ae7438a04343508de32e83bd42c0ba4ea9;p=pukiwiki%2Fpukiwiki.git diff --git a/rules.ini.php b/rules.ini.php index ba42de7..5c507e8 100644 --- a/rules.ini.php +++ b/rules.ini.php @@ -1,6 +1,6 @@ format_date(UTIME), '&_date;' => get_date($date_format), @@ -19,20 +19,23 @@ $datetime_rules = array( ); ///////////////////////////////////////////////// -// ¥æ¡¼¥¶ÄêµÁ¥ë¡¼¥ë(Êݸ»þ¤ËÃÖ´¹) -// Àµµ¬É½¸½¤Çµ­½Ò¤·¤Æ¤¯¤À¤µ¤¤¡£?(){}-*./+\$^|¤Ê¤É -// ¤Ï \? ¤Î¤è¤¦¤Ë¥¯¥©¡¼¥È¤·¤Æ¤¯¤À¤µ¤¤¡£ -// Á°¸å¤Ëɬ¤º / ¤ò´Þ¤á¤Æ¤¯¤À¤µ¤¤¡£¹ÔƬ»ØÄê¤Ï ^ ¤òƬ¤Ë¡£ -// ¹ÔËö»ØÄê¤Ï $ ¤ò¸å¤í¤Ë¡£ +// ユーザ定義ルール(保存時に置換) +// 正規表現で記述してください。?(){}-*./+\$^|など +// は \? のようにクォートしてください。 +// 前後に必ず / を含めてください。行頭指定は ^ を頭に。 +// 行末指定は $ を後ろに。 // -// Only variables can be passed by reference from PHP 5.0.5 +// BugTrack2/106: Only variables can be passed by reference from PHP 5.0.5 $page_array = explode('/', $vars['page']); // with array_pop() $str_rules = array( - 'now\?' => format_date(UTIME), - 'date\?' => get_date($date_format), - 'time\?' => get_date($time_format), + + // Compat 1.3.x + //'now\?' => format_date(UTIME), + //'date\?' => get_date($date_format), + //'time\?' => get_date($time_format), + '&now;' => format_date(UTIME), '&date;' => get_date($date_format), '&time;' => get_date($time_format), @@ -40,6 +43,7 @@ $str_rules = array( '&fpage;' => $vars['page'], '&t;' => "\t", ); + unset($page_array); ?>