if (isset($_GET['select']))
{
$select=$_GET['select'];
}
else
{
$select=0;
}
error_reporting(E_ALL);
$movdir="trailer";
$thmbdir="thumbs";
$txtdir="includes";
$files=array();
$i=0;
if ($handle = opendir("../$movdir")) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && is_file("../$movdir/$file")) {
$files[$i]=$file;
$i++;
}
}
closedir($handle);
}
sort ($files);
$files = array_reverse($files);
// $files = $files2;
$src="../$movdir/$files[$select]";
if (substr($src,-3) == 'txt') {
$src = file($src);
$src = $src[0];
$url_data = parse_url ( $src );
parse_str ( $url_data['query'] );
$src = 'http://www.youtube.com/v/' . $v; }
?>
uuv