From 584fb49ad15af01a8317e2601adae4f374accec9 Mon Sep 17 00:00:00 2001 From: Michael Dale Date: Wed, 16 Sep 2009 02:46:58 +0000 Subject: [PATCH] related to r56402 * removed mv_embed_iframe.php (moving to metavid extension since it contains metavid specific roe url rewriting) --- js2/mwEmbed/php/mv_embed_iframe.php | 84 ----------------------------- 1 file changed, 84 deletions(-) delete mode 100644 js2/mwEmbed/php/mv_embed_iframe.php diff --git a/js2/mwEmbed/php/mv_embed_iframe.php b/js2/mwEmbed/php/mv_embed_iframe.php deleted file mode 100644 index 35f1500e93..0000000000 --- a/js2/mwEmbed/php/mv_embed_iframe.php +++ /dev/null @@ -1,84 +0,0 @@ -filter_input() function
' ); - } - // Default to null media if not provided - $stream_name = ( isset( $_GET['sn'] ) ) ? $_GET['sn'] : die( 'no stream name provided' ); - $time = ( isset( $_GET['t'] ) ) ? $_GET['t']: ''; - $width = ( isset( $_GET['width'] ) ) ? intval( $_GET['width'] ) : '400'; - $height = ( isset( $_GET['height'] ) ) ? intval( $_GET['height'] ) : '300'; // - - $roe_url = 'http://metavid.org/wiki/Special:MvExportStream?feed_format=roe' . - '&stream_name=' . htmlspecialchars( $stream_name ) . - '&t=' . htmlspecialchars( $time ); - // Everything good, output page: - output_page( array( - 'roe_url' => $roe_url, - 'width' => $width, - 'height' => $height, - ) ); -} -function output_page( $params ) { - extract( $params ); -?> - - - - - mv_embed iframe - - - - - - - - "\\\\", - "\"" => "\\\"", - '\'' => '\\\'', - "\n" => "\\n", - "\r" => "\\r", - - # To avoid closing the element or CDATA section - "<" => "\\x3c", - ">" => "\\x3e", - - # To avoid any complaints about bad entity refs - "&" => "\\x26", - - # Work around https://bugzilla.mozilla.org/show_bug.cgi?id=274152 - # Encode certain Unicode formatting chars so affected - # versions of Gecko don't misinterpret our strings; - # this is a common problem with Farsi text. - "\xe2\x80\x8c" => "\\u200c", // ZERO WIDTH NON-JOINER - "\xe2\x80\x8d" => "\\u200d", // ZERO WIDTH JOINER - ); - return strtr( $string, $pairs ); -} -- 2.20.1