static function handle_img($params, $contents) { $origAppend = ''; # are only specific images allowed? if (isset(TagHandler::$tagconfig['i']['img']['allowedimgs'])) { if (!isset(TagHandler::$tagconfig['i']['img']['allowedimgs'][$params['params'][0]])) { return TagHandler::handle_empty($params, $contents); } else { $origAppend = $contents; $contents = TagHandler::$tagconfig['i']['img']['allowedimgs'][$params['params'][0]]; } # if } # if return array('prepend' => '<img src="' . $contents . '">', 'content' => $origAppend, 'append' => ''); }