");
Markup("wink","block","/;-\)/","
");
Markup("sad","block","/:-\(/","
");
Markup("tongue","block","/:-p/","
");
Markup("redface","block","/:-o/","
");
Markup("cool","block","/\{cool\}/","
");
Markup("biggrin","block","/:-D\\b/","
");
Markup("confused","block","/\{confused\}/","
");
Markup("eek","block","/\{eek\}/","
");
Markup("mad","block","/\{angry\}/","
");
Markup("rolleyes","block","/\{rolleyes\}/","
");
## Other smilies : called with their names inside "{" and "}" : {happy}
# ">block" to force this rule to be used after the other concerning smiley (give a chance to {angry} smiley to be linked with mad.gif)
# "/\{([^\}]+?)\}/" because the regexp must not catch text like {}
Markup('smiley_icon','>block','/\{([^\}]+?)\}/',"
");
/* Experimental, don't work, needs pathname...
Markup('smiley_icon','>block','/\{([^\}]+?)\}/e',"Smiley_Exists(\"$1\")");
function Smiley_Exists($SmileyFile) {
global $SmileysFolder;
#Quoted from php.net : file_exists will have trouble finding your file if the file permissions are not read enabled for 'other' when not owned by your php user.
if (file_exists("$SmileysFolder/$SmileyFile.gif")) {
# Numbering format needs PHP 4.0.6 or higher
# return sprintf("
", $SmileysFolder, $SmileyFile);
return "Yes";
} else {
return "No";
}
}
*/
?>