4 |
$str = preg_replace("/(\<\/?\s*(\w+)>[^\>]*\>)/e", |
$str = preg_replace("/(\<\/?\s*(\w+)>[^\>]*\>)/e", |
5 |
"array_search(strtoupper('\\2'),\$allowed,false)?'\\1':HTMLSpecialChars('\\1')", |
"array_search(strtoupper('\\2'),\$allowed,false)?'\\1':HTMLSpecialChars('\\1')", |
6 |
$str); |
$str); |
7 |
|
$str = preg_replace("/(^\s+|\s+$)/", "", $str); |
8 |
return $str; |
return $str; |
9 |
} |
} |
10 |
function ParseNewline($str) { |
function ParseNewline($str) { |
39 |
} |
} |
40 |
return $ret; |
return $ret; |
41 |
} |
} |
42 |
|
function isEdit() { |
43 |
|
global $PHP_SELF; |
44 |
|
return stristr($PHP_SELF, "/edit/") ? true : false; |
45 |
|
} |
46 |
?> |
?> |