OSDN Git Service
(root)
/
pukiwiki
/
pukiwiki.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PukiWiki/1.4 first beta release
[pukiwiki/pukiwiki.git]
/
plugin
/
aname.inc.php
1
<?php
2
// $Id: aname.inc.php,v 1.7 2003/01/27 05:38:44 panda Exp $
3
4
function plugin_aname_inline()
5
{
6
if (func_num_args() < 1) {
7
return FALSE;
8
}
9
list($id,$body) = func_get_args();
10
11
if (!preg_match('/[A-Za-z][\w\-]*/',$id)) {
12
return FALSE;
13
}
14
15
return "<a id=\"$id\">$body</a>";
16
}
17
?>