mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
Merge branch 'MDL-74042-master' of https://github.com/jleyva/moodle
This commit is contained in:
commit
c111717ffb
@ -40,6 +40,7 @@ $token = required_param('token', PARAM_ALPHANUM);
|
|||||||
$video = required_param('video', PARAM_ALPHANUM); // Video ids are numeric, but it's more solid to expect things like 00001.
|
$video = required_param('video', PARAM_ALPHANUM); // Video ids are numeric, but it's more solid to expect things like 00001.
|
||||||
$width = optional_param('width', 0, PARAM_INT);
|
$width = optional_param('width', 0, PARAM_INT);
|
||||||
$height = optional_param('height', 0, PARAM_INT);
|
$height = optional_param('height', 0, PARAM_INT);
|
||||||
|
$h = optional_param('h', '', PARAM_ALPHANUM); // Security hash for restricted videos.
|
||||||
|
|
||||||
// Authenticate the user.
|
// Authenticate the user.
|
||||||
$webservicelib = new webservice();
|
$webservicelib = new webservice();
|
||||||
@ -52,6 +53,10 @@ if (empty($width) && empty($height)) {
|
|||||||
$display = "width=\"$width\" height=\"$height\"";
|
$display = "width=\"$width\" height=\"$height\"";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($h)) {
|
||||||
|
$video .= '?h=' . $h;
|
||||||
|
}
|
||||||
|
|
||||||
$output = <<<OET
|
$output = <<<OET
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user