22 $this->emoticon_path = sprintf(
'%s%s/images',preg_replace(
'/^\.\//i',
'',$this->component_path),
'tpl',
'images');
31 if(!$emoticon || !preg_match(
"/^([a-z0-9\_]+)$/i",$emoticon))
return new BaseObject(-1,
'msg_invalid_request');
35 $this->
add(
'emoticons', implode(
"\n",$list));
47 while($file = $oDir->read())
49 if(substr($file,0,1)==
'.')
continue;
50 if(preg_match(
'/\.(jpg|jpeg|gif|png)$/i',$file))
$output[] = sprintf(
"%s/%s", $path, str_replace($this->emoticon_path,
'',$file));
64 $emoticon_list = array();
67 foreach($emoticon_dirs as $emoticon)
69 if(preg_match(
"/^([a-z0-9\_]+)$/i", $emoticon)) $emoticon_list[] = $emoticon;
77 $tpl_path = $this->component_path.
'tpl';
78 $tpl_file =
'popup.html';
81 return $oTemplate->compile($tpl_path, $tpl_file);
89 $src = $xml_obj->attrs->src;
90 $alt = $xml_obj->attrs->alt;
94 $tmp_arr = explode(
'/',$src);
95 $alt = array_pop($tmp_arr);
98 $src = str_replace(array(
'&',
'"'), array(
'&',
'&qout;'), $src);
99 if(!$alt) $alt = $src;
101 $attr_output = array();
102 $attr_output = array(
"src=\"".$src.
"\"");
106 $attr_output[] =
"alt=\"".$alt.
"\"";
109 $code = sprintf(
"<img %s style=\"border:0px\" />", implode(
" ",$attr_output));
__construct($editor_sequence, $component_path)
editor_sequence and components out of the path
set($key, $val, $set_to_get_vars=0)
transHTML($xml_obj)
Emoticon of the path were added to solve the problem. (06/09/2007 Benny)
getPopupContent()
popup window to display in popup window request is to add content
getEmoticonList()
Returns a list of emoticons file.
getEmoticons($path)
Likely to be recursively emoticons will search all the files to a subdirectory. 8000 gaekkajineun ran...
Emoticons image connected components.
readDir($path, $filter= '', $to_lower=FALSE, $concat_prefix=FALSE)