Index: trunk/extensions/MetavidWiki/maintenance/ogg_thumb_insert.php |
— | — | @@ -10,7 +10,7 @@ |
11 | 11 | * @url http://metavid.org |
12 | 12 | */ |
13 | 13 | |
14 | | - $cur_path = $IP = dirname( __FILE__ ); |
| 14 | +$cur_path = $IP = dirname( __FILE__ ); |
15 | 15 | // include commandLine.inc from the mediaWiki maintance dir: |
16 | 16 | require_once ( '../../../maintenance/commandLine.inc' ); |
17 | 17 | require_once ( 'metavid2mvWiki.inc.php' ); |
Index: trunk/extensions/MetavidWiki/includes/MV_GlobalFunctions.php |
— | — | @@ -1,4 +1,4 @@ |
2 | | -<? |
| 2 | +<?php |
3 | 3 | /** |
4 | 4 | * Global functions and constants for Metavid MediaWiki. |
5 | 5 | * |
Index: trunk/extensions/MetavidWiki/includes/MV_Settings.php |
— | — | @@ -1,4 +1,4 @@ |
2 | | -<? |
| 2 | +<?php |
3 | 3 | if ( !defined( 'MEDIAWIKI' ) ) die( 1 ); |
4 | 4 | |
5 | 5 | # ## |
Index: trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_EditPageAjax.php |
— | — | @@ -1,4 +1,4 @@ |
2 | | -<? |
| 2 | +<?php |
3 | 3 | /* |
4 | 4 | * Created on Jun 28, 2007 |
5 | 5 | * |
Index: trunk/extensions/MetavidWiki/skins/mv_embed/example_usage/sample_timed_text.php |
— | — | @@ -1,4 +1,4 @@ |
2 | | -<? |
| 2 | +<?php |
3 | 3 | do_sample_page(); |
4 | 4 | |
5 | 5 | function do_sample_page(){ |
— | — | @@ -17,10 +17,10 @@ |
18 | 18 | $examples = Array(); |
19 | 19 | //set up tags for easy display: |
20 | 20 | $roe_url = 'http://metavid.org/w/index.php?title=Special:MvExportStream&stream_name=House_proceeding_07-18-06_00&t=1:23:16/1:23:44&feed_format=roe'; |
21 | | -$examples[] = array( 'tag' => '<video roe="'.$roe_url.'" ></video>', |
| 21 | +$examples[] = array( 'tag' => '<video roe="' . htmlspecialchars( $roe_url ) . '" ></video>', |
22 | 22 | 'desc' => 'Metavid based ROE file using CMML<br /> <pre>' . |
23 | | - htmlspecialchars('<video roe="'.$roe_url.'" ></video>'). '</pre>'. |
24 | | - '<iframe width="600" height="250" src="'.$roe_url.'" ></iframe>' |
| 23 | + htmlspecialchars('<video roe="' . htmlspecialchars( $roe_url ) . '" ></video>' ) . '</pre>'. |
| 24 | + '<iframe width="600" height="250" src="' . htmlspecialchars( $roe_url ) . '" ></iframe>' |
25 | 25 | ); |
26 | 26 | $srt_tag = ''. |
27 | 27 | '<video src="sample_fish.ogg" poster="sample_fish.jpg" duration="26"> |
— | — | @@ -52,6 +52,6 @@ |
53 | 53 | </table> |
54 | 54 | </body> |
55 | 55 | </html> |
56 | | -<? |
| 56 | +<?php |
57 | 57 | } |
58 | | -?> |
\ No newline at end of file |
| 58 | + |
Index: trunk/extensions/MetavidWiki/skins/mv_embed/example_usage/sample_page.php |
— | — | @@ -104,4 +104,4 @@ |
105 | 105 | </html> |
106 | 106 | <?php |
107 | 107 | } |
108 | | -?> |
\ No newline at end of file |
| 108 | + |
Index: trunk/extensions/MetavidWiki/skins/mv_embed/example_usage/sample_playlists.php |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | <h3> Sample Playlists</h3> |
19 | 19 | The <b>default attributes:</b>: |
20 | 20 | <span id="default_attr"> |
21 | | -<? |
| 21 | +<?php |
22 | 22 | $sample_embed = array(); |
23 | 23 | |
24 | 24 | // playlist tags: |
— | — | @@ -84,4 +84,4 @@ |
85 | 85 | </html> |
86 | 86 | <?php |
87 | 87 | } |
88 | | -?> |
| 88 | + |
Index: trunk/extensions/MetavidWiki/skins/mv_embed/oggServer/PEAR/File_Ogg/File/Ogg/Bitstream.php |
— | — | @@ -138,4 +138,3 @@ |
139 | 139 | |
140 | 140 | } |
141 | 141 | |
142 | | -?> |
Index: trunk/extensions/MetavidWiki/skins/mv_embed/oggServer/PEAR/File_Ogg/File/Ogg/Media.php |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | // | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
23 | 23 | // +----------------------------------------------------------------------------+ |
24 | 24 | |
25 | | -require_once('File/Ogg/Bitstream.php'); |
| 25 | +require_once dirname( __FILE__ ) . '/Bitstream.php'; |
26 | 26 | |
27 | 27 | /** |
28 | 28 | * Parent class for media bitstreams |
Index: trunk/extensions/MetavidWiki/skins/mv_embed/oggServer/PEAR/File_Ogg/File/Ogg/Theora.php |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | // | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
23 | 23 | // +----------------------------------------------------------------------------+ |
24 | 24 | |
25 | | -require_once('File/Ogg/Bitstream.php'); |
| 25 | +require_once dirname(__FILE__) . '/Bitstream.php'; |
26 | 26 | |
27 | 27 | define( 'OGG_THEORA_IDENTIFICATION_HEADER', 0x80 ); |
28 | 28 | define( 'OGG_THEORA_COMMENTS_HEADER', 0x81 ); |
Index: trunk/extensions/MetavidWiki/skins/mv_embed/oggServer/PEAR/File_Ogg/File/Ogg/Speex.php |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | // | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
23 | 23 | // +----------------------------------------------------------------------------+ |
24 | 24 | |
25 | | -require_once('File/Ogg/Media.php'); |
| 25 | +require_once dirname( __FILE__ ) . '/Media.php'; |
26 | 26 | |
27 | 27 | /** |
28 | 28 | * @author David Grant <david@grant.org.uk>, Tim Starling <tstarling@wikimedia.org> |
Index: trunk/extensions/MetavidWiki/skins/mv_embed/oggServer/PEAR/File_Ogg/File/Ogg/Vorbis.php |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | // | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
23 | 23 | // +----------------------------------------------------------------------------+ |
24 | 24 | |
25 | | -require_once('File/Ogg/Bitstream.php'); |
| 25 | +require_once dirname( __FILE__ ) . '/Bitstream.php'; |
26 | 26 | |
27 | 27 | /** |
28 | 28 | * Check number for the first header in a Vorbis stream. |
Index: trunk/extensions/MetavidWiki/skins/mv_embed/oggServer/PEAR/File_Ogg/File/Ogg/Flac.php |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | // | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
23 | 23 | // +----------------------------------------------------------------------------+ |
24 | 24 | |
25 | | -require_once('File/Ogg/Media.php'); |
| 25 | +require_once dirname( __FILE__ ) . '/Media.php'; |
26 | 26 | |
27 | 27 | /** |
28 | 28 | * @author David Grant <david@grant.org.uk>, Tim Starling <tstarling@wikimedia.org> |
Index: trunk/extensions/MetavidWiki/skins/mv_embed/flvServer/MvFlv.php |
— | — | @@ -299,4 +299,4 @@ |
300 | 300 | } |
301 | 301 | } |
302 | 302 | } |
303 | | -?> |
\ No newline at end of file |
| 303 | + |
Index: trunk/extensions/MetavidWiki/skins/mv_embed/flvServer/mvFlvServer.php |
— | — | @@ -113,4 +113,4 @@ |
114 | 114 | } |
115 | 115 | return ($hours*3600) + ($min*60) + $sec; |
116 | 116 | } |
117 | | -?> |
| 117 | + |