___.inc.php3 * * The function name has to be the like above filename: * * -- function PMA_transformation____.inc.php3 * * Please use short and expressive names. For now, special characters which aren't allowed in * filenames or functions should not be used. * * Please provide a comment for your function, what it does and what parameters are available. * */ if (!defined('PMA_TRANSFORMATION_LIB_GLOBAL')){ define('PMA_TRANSFORMATION_LIB_GLOBAL', 1); function PMA_transformation_global_plain($buffer, $options = array()) { return htmlspecialchars($buffer); } function PMA_transformation_global_html($buffer, $options = array()) { return $buffer; } function PMA_transformation_global_html_replace($buffer, $options = array()) { if (!isset($options['string'])) { $options['string'] = ''; } if (isset($options['regex']) && isset($options['regex_replace'])) { $buffer = eregi_replace($options['regex'], $options['regex_replace'], $buffer); } // Replace occurences of [__BUFFER__] with actual text $return = str_replace("[__BUFFER__]", $buffer, $options['string']); return $return; } }