Beispiel #1
0
 public static function transMobcentPhiz($string, $prefixTag = '[img]', $suffixTag = '[/img]')
 {
     global $tempPhizs;
     $tempPhizs = array(WebUtils::getMobcentPhizMaps(), $prefixTag, $suffixTag);
     $string = preg_replace_callback('/\\[.*?\\]/', create_function('$matches', '
             global $tempPhizs;
             list($phizMaps, $prefixTag, $suffixTag) = $tempPhizs;
             $phiz = $matches[0];
             if (!empty($phizMaps[$phiz])) {
                 $phiz = $prefixTag.WebUtils::getHttpFileName("mobcent/app/data/phiz/default/".$phizMaps[$phiz]).$suffixTag;
             }
             return $phiz;
         '), $string);
     return $string;
 }