Location: PHPKode > projects > Brunhilde Media Server > brunhilde/mov.php
<?php

include("global.php");
include("function.php");

### mov.php ###
// sends an asx video playlist file with links to the selected video file(s)

// sets url encoded and decoded variables for the rest of the script
if(!$cdir) { $cdir = ""; }
$cdir_url = rawurlencode(stripslashes($cdir));
$cdir = stripslashes(rawurldecode($cdir));

// These lines are ESSENTIAL for the brunhilde server to remain secure
// They keep a client from entering "../" to gain access to files
// outside of your web tree
if((substr_count($cdir, "../") > 0) || (substr_count($cdir, "..\\") > 0)) {
  include("security.php");
  }

$play = rawurlencode(stripslashes("$play"));
header("Content-Type: text/html");
header("Content-Disposition: filename=\"Brunhilde.html\"");

// creates an embedded quicktime plugin tag in html
$cdir = "blah"; // so the header display links
include("header.php");

echo "<p>";
echo "<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"2\" WIDTH=\"100%\" $BORDER>\n";
echo "<TBODY>\n";
echo "<TR>\n<TD>\n";
echo "<TABLE BORDER=\"0\" CELLPADDING=\"1\" CELLSPACING=\"1\" WIDTH=\"100%\" $BODY>\n";
echo "<TBODY>\n";
echo "<TR $TITLE>\n<TH>Brunhilde Quicktime Player:</TH>\n</TR>\n";
echo "<TR ALIGN=\"CENTER\">\n<TD ALIGN=\"CENTER\">\n<P><BR><BR>\n";

// the quicktime tag
echo "<EMBED src=\"";
if($PLAY_DIR != "") {
  echo "$DOMAIN$PLAY_DIR"."play.php?play=$play&base=$base";
  }
else { echo "$SCRIPT_URL/play.php?play=$play&base=$base"; }
echo "\" WIDTH=\"352\" HEIGHT=\"264\">\n";
echo "</EMBED>";
// end quicktime tag

echo "<BR><BR></P>\n</TD>\n</TR>\n</TBODY>\n</TABLE>\n";
echo "</TD>\n</TR>\n</TBODY>\n</TABLE>\n";
echo "</P>";

include("footer.php");

exit;

?>
Return current item: Brunhilde Media Server