/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: func.php,v 1.63 2004/05/08 02:57:52 arino Exp $
+// $Id: func.php,v 1.64 2004/06/26 13:27:49 henoheno Exp $
//
// ʸ»úÎó¤¬InterWikiName¤«¤É¤¦¤«
return preg_match("/^$InterWikiName$/",$str);
}
+
// ʸ»úÎ󤬥ڡ¼¥¸Ì¾¤«¤É¤¦¤«
function is_pagename($str)
{
return $is_pagename;
}
+
// ʸ»úÎó¤¬URL¤«¤É¤¦¤«
function is_url($str,$only_http=FALSE)
{
$scheme = $only_http ? 'https?' : 'https?|ftp|news';
return preg_match('/^('.$scheme.')(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]*)$/', $str);
}
+
// ¥Ú¡¼¥¸¤¬Â¸ºß¤¹¤ë¤«
function is_page($page,$reload=FALSE)
{
return file_exists(get_filename($page));
}
+
// ¥Ú¡¼¥¸¤¬ÊÔ½¸²Äǽ¤«
function is_editable($page)
{
}
return $body;
}
+
// ¸¡º÷¸ì¤òŸ³«¤¹¤ë
function get_search_words($words,$special=FALSE)
{
}
return $retval;
}
+
// ¸¡º÷
function do_search($word,$type='AND',$non_format=FALSE)
{
return array($result,$result_a,$forceignorepages);
}
+
function get_autolink_pattern_sub(&$pages,$start,$end,$pos)
{
if ($end == 0)
}
return $result;
}
+
// pukiwiki.php¥¹¥¯¥ê¥×¥È¤Îabsolute-uri¤òÀ¸À®
function get_script_uri()
{
return $script;
}
+
/*
ÊÑ¿ôÆâ¤Înull(\0)¥Ð¥¤¥È¤òºï½ü¤¹¤ë
PHP¤Ïfopen("hoge.php\0.txt")¤Ç"hoge.php"¤ò³«¤¤¤Æ¤·¤Þ¤¦¤Ê¤É¤ÎÌäÂꤢ¤ê