<?php
-/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
-//
-// $Id: rules.ini.php,v 1.3 2004/07/13 13:12:15 henoheno Exp $
+// $Id: rules.ini.php,v 1.9 2005/10/04 13:41:03 henoheno Exp $
+// Copyright (C)
+// 2003-2005 PukiWiki Developers Team
+// 2001-2002 Originally written by yu-ji
+// License: GPL v2 or (at your option) any later version
//
// PukiWiki setting file
/////////////////////////////////////////////////
-// ¥æ¡¼¥¶ÄêµÁ¥ë¡¼¥ë
-//
+// Æü»þÃÖ´¹¥ë¡¼¥ë (±ÜÍ÷»þ¤ËÃÖ´¹)
+// $usedatetime = 1¤Ê¤éÆü»þÃÖ´¹¥ë¡¼¥ë¤¬Å¬ÍѤµ¤ì¤Þ¤¹
+// ɬÍפΤʤ¤Êý¤Ï $usedatetime¤ò0¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
+$datetime_rules = array(
+ '&_now;' => format_date(UTIME),
+ '&_date;' => get_date($date_format),
+ '&_time;' => get_date($time_format),
+);
+
+/////////////////////////////////////////////////
+// ¥æ¡¼¥¶ÄêµÁ¥ë¡¼¥ë(Êݸ»þ¤ËÃÖ´¹)
// Àµµ¬É½¸½¤Çµ½Ò¤·¤Æ¤¯¤À¤µ¤¤¡£?(){}-*./+\$^|¤Ê¤É
// ¤Ï \? ¤Î¤è¤¦¤Ë¥¯¥©¡¼¥È¤·¤Æ¤¯¤À¤µ¤¤¡£
// Á°¸å¤Ëɬ¤º / ¤ò´Þ¤á¤Æ¤¯¤À¤µ¤¤¡£¹ÔƬ»ØÄê¤Ï ^ ¤òƬ¤Ë¡£
// ¹ÔËö»ØÄê¤Ï $ ¤ò¸å¤í¤Ë¡£
//
-/////////////////////////////////////////////////
-// ¥æ¡¼¥¶ÄêµÁ¥ë¡¼¥ë(ľÀÜ¥½¡¼¥¹¤òÃÖ´¹)
+
+// 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),
'&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);
+
?>