X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=rules.ini.php;h=5c507e86efd1285b496ad52527e23e2375081d2a;hb=refs%2Fheads%2Fbugtrack_2411_doc_comment;hp=03a33e2e7ba93bbdd9e70d62c415ad8c4fe92953;hpb=eaf1fe99f2f036bf22b4b6c4990f3c2c7ad62d95;p=pukiwiki%2Fpukiwiki.git diff --git a/rules.ini.php b/rules.ini.php index 03a33e2..5c507e8 100644 --- a/rules.ini.php +++ b/rules.ini.php @@ -1,15 +1,17 @@ format_date(UTIME), '&_date;' => get_date($date_format), @@ -17,22 +19,31 @@ $datetime_rules = array( ); ///////////////////////////////////////////////// -// ¥æ¡¼¥¶ÄêµÁ¥ë¡¼¥ë(Êݸ»þ¤ËÃÖ´¹) -// Àµµ¬É½¸½¤Çµ­½Ò¤·¤Æ¤¯¤À¤µ¤¤¡£?(){}-*./+\$^|¤Ê¤É -// ¤Ï \? ¤Î¤è¤¦¤Ë¥¯¥©¡¼¥È¤·¤Æ¤¯¤À¤µ¤¤¡£ -// Á°¸å¤Ëɬ¤º / ¤ò´Þ¤á¤Æ¤¯¤À¤µ¤¤¡£¹ÔƬ»ØÄê¤Ï ^ ¤òƬ¤Ë¡£ -// ¹ÔËö»ØÄê¤Ï $ ¤ò¸å¤í¤Ë¡£ +// ユーザ定義ルール(保存時に置換) +// 正規表現で記述してください。?(){}-*./+\$^|など +// は \? のようにクォートしてください。 +// 前後に必ず / を含めてください。行頭指定は ^ を頭に。 +// 行末指定は $ を後ろに。 // + +// 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), - '&page;' => array_pop(explode('/', $vars['page'])), + '&page;' => array_pop($page_array), '&fpage;' => $vars['page'], '&t;' => "\t", ); +unset($page_array); + ?>