First Commit

This commit is contained in:
mark committed 2026-10-19 15:22:52 -07:00
1 parent 5eb9dd037d
commit 2e62c0e60b
11877 files changed
+2035312

No files matched your search

+54
View File
@@ -0,0 +1,54 @@
<?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>