55 lines
1.7 KiB
PHP
55 lines
1.7 KiB
PHP
<?php
|
|
$ValidAccess = 2010;
|
|
include "include/globals.php";
|
|
|
|
|
|
if (SessionActive() != 1 || ! UserLoggedIn()) {
|
|
header("Location: /");
|
|
exit();
|
|
}
|
|
|
|
|
|
// Ensure that only valid user types have access to this module
|
|
$AllowedUserTypes = array('SuperUser','System Administrator','Application Administrator','Administration Team','Schedule Team','Financial','Financial Team','Communications Administrator');
|
|
if (checkPermission($AllowedUserTypes) != 1) {
|
|
$error_message = getLanguageText('ERRORMSG-ACCESS-DENIED');
|
|
$naction = '';
|
|
header("Location: /?action=$action&naction=$naction$headerArgs&form_message=" . urlencode($form_message) . "&error_message=" . urlencode($error_message));
|
|
exit();
|
|
}
|
|
|
|
|
|
$dnum = intval($_GET['dnum']);
|
|
if ($dnum <= 0) {
|
|
$error_message = getLanguageText('ERRORMSG-ACCESS-DENIED');
|
|
$action = '';
|
|
$naction = '';
|
|
header("Location: /?action=$action&naction=$naction&form_message=" . urlencode($form_message) . "&error_message=" . urlencode($error_message));
|
|
exit();
|
|
}
|
|
|
|
|
|
// Get the video record
|
|
$query = "SELECT * FROM videos WHERE record_num = $dnum";
|
|
$results = db_query($query);
|
|
|
|
if (db_num_rows($results) != 1) {
|
|
$error_message = getLanguageText('ERRORMSG-ACCESS-DENIED');
|
|
$action = '';
|
|
$naction = '';
|
|
header("Location: /?action=$action&naction=$naction&form_message=" . urlencode($form_message) . "&error_message=" . urlencode($error_message));
|
|
exit();
|
|
}
|
|
|
|
$row = db_fetch_assoc($results);
|
|
extract($row);
|
|
|
|
echo("<center>");
|
|
echo("<p><b>$title</b></p>\n");
|
|
?>
|
|
<video id='help-video' width='900' controls autoplay>
|
|
<source src="videos/<?php echo($file_name) ?>" type="video/mp4">
|
|
Your browser does not support the video tag. <!-- Text to be shown incase browser does not support html5 -->
|
|
</video>
|
|
</center>
|