3 $curfiletitle = htmlspecialchars( $_GET['title'], ENT_QUOTES
);
4 $curfilenum = $_GET['file'];
6 if( $_GET['large'] == "1" )
17 # This is a list of all the files in the directory
19 $handle = opendir( '/home/andy/.gnometvguide/recorded_programmes' );
22 while( ( $filename = readdir( $handle ) ) )
24 $filenames[] = $filename;
31 foreach( $filenames as $filename )
33 if( preg_match( '/^(.*)\\.flv$/', $filename, $matches ) )
35 if( $num == $curfilenum )
49 <title
><?php
print "$curfiletitle" ?
></title
>
50 <script type
="text/javascript" src
="swfobject.js"></script
>
53 <body style
="background-color: black; color: white">
54 <table width
='100%' height
='100%'><tr valign
='middle'><td align
='center'>
56 <p id
='player1'>No flash player
!</p
>
57 <script type
='text/javascript'>
58 var s1
= new SWFObject('flvplayer.swf','single','<?php print $width; ?>','<?php print $height; ?>','7');
59 s1
.addVariable('overstretch','true');
60 s1
.addParam('allowfullscreen','true');
61 s1
.addVariable('file','<?php print "$curfile" ?>');
62 s1
.addVariable('showvolume','false');
63 s1
.addVariable('autostart','true');