User:Knystr10

 'Embed Document',        'author' => 'SLohse, DrTrigon',        'version' => '0.12',        'url' => 'http://www.mediawiki.org/wiki/Extension:Embed_Document',        'description' => 'Allows embedding *.pdf, *.doc and *.wav files on a wiki page', ); $wgExtensionFunctions[] = 'registerEmbedDocumentHandler'; function registerEmbedDocumentHandler { global $wgParser; $wgParser->setHook( 'embed_document', 'embedDocumentHandler' ); } function embedDocumentHandler( $input, $argv ) { $allowedchars = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',                         'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',                          'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N',                          'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',                          '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',                          '_', '/', '.', '-', ':'); $w = '100%'; $h = '680'; foreach( $argv as $name => $value ) {       if ($name == 'width')  $w = $value; if ($name == 'height') $h = $value; }   if( str_replace($allowedchars, , $input) ==  ) { return " "; } else { return "Error: invalid character sequence between  markers, allowed are onlya...zA...Z0...9_/.-</li>:</li></ul> "; } }