if (isset($_GET["project"])) {
$projectnum = addslashes($_GET["project"]);
$basefilename = $projectnum . "_review";
$found = false;
// Looking for either PROJECT_review.wmv or PROJECT_review.mov
// .mov takes precedence if it exists.
if (file_exists("/opt/www/www.vfmii.net/progressive/" . $basefilename . ".mov")) {
$filename = $basefilename . ".mov";
$type = "mov";
$found = true;
}
else if (file_exists("/opt/www/www.vfmii.net/progressive/" . $basefilename . ".wmv")) {
$filename = $basefilename . ".wmv";
$type = "wmv";
$found = true;
}
?>
if ($found) {
?>
Video Approval Page
if ($type == "wmv") {
echo "Windows Media: ";
}
else if ($type == "mov") {
echo "Quicktime: ";
} ?>
echo $filename; ?>
Last Modified: echo date("F d Y H:i:s.", filemtime("/opt/www/www.vfmii.net/progressive/" . $filename)) ?>
Click Here to Review the Video
}
else {
?>
The video file was not found, if you were expecting to see a video, please email Ryan Hystead
}
}
else {
?>
No video number specified, if you were expecting to see a video, please email Ryan Hystead
}
?>