OSDN Git Service
(root)
/
pukiwiki
/
pukiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BugTrack/2520 Remove spaces between heading text and dagger
[pukiwiki/pukiwiki.git]
/
rules.ini.php
diff --git
a/rules.ini.php
b/rules.ini.php
index
ea6eecc
..
5c507e8
100644
(file)
--- a/
rules.ini.php
+++ b/
rules.ini.php
@@
-1,6
+1,6
@@
<?php
// PukiWiki - Yet another WikiWikiWeb clone.
<?php
// PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: rules.ini.php,v 1.
7 2005/04/30 11:35:43
henoheno Exp $
+// $Id: rules.ini.php,v 1.
10 2007/06/10 02:08:40
henoheno Exp $
// Copyright (C)
// 2003-2005 PukiWiki Developers Team
// 2001-2002 Originally written by yu-ji
// Copyright (C)
// 2003-2005 PukiWiki Developers Team
// 2001-2002 Originally written by yu-ji
@@
-9,9
+9,9
@@
// PukiWiki setting file
/////////////////////////////////////////////////
// PukiWiki setting file
/////////////////////////////////////////////////
-//
Æü»þÃÖ´¹¥ë¡¼¥ë (±ÜÍ÷»þ¤ËÃÖ´¹
)
-// $usedatetime = 1
¤Ê¤éÆü»þÃÖ´¹¥ë¡¼¥ë¤¬Å¬ÍѤµ¤ì¤Þ¤¹
-//
ɬÍפΤʤ¤Êý¤Ï $usedatetime¤ò0¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
+//
日時置換ルール (閲覧時に置換
)
+// $usedatetime = 1
なら日時置換ルールが適用されます
+//
必要のない方は $usedatetimeを0にしてください。
$datetime_rules = array(
'&_now;' => format_date(UTIME),
'&_date;' => get_date($date_format),
$datetime_rules = array(
'&_now;' => format_date(UTIME),
'&_date;' => get_date($date_format),
@@
-19,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(
$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),
'&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",
);
'&fpage;' => $vars['page'],
'&t;' => "\t",
);
+unset($page_array);
+
?>
?>