Files
Chamilo/plugin/h5p/index.php
T
Xes 73154ae174
Behat tests 1.11.x 🐞 / PHP 7.4 Test on ubuntu-latest (push) Canceled after 0s
PHP-CS-Fixer / composer_install (7.4) (push) Canceled after 0s
Chamilo 1.11.40 (ZIP oficial v1.11.40)
Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip
sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439
Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
2026-08-06 17:59:45 +02:00

29 lines
1.1 KiB
PHP

<?php
/* For license terms, see /license.txt */
$parsedUrl = parse_url($_SERVER['REQUEST_URI']);
$parsedUrlpathCtr = $parsedUrl['path'];
$posCtr = strrpos($parsedUrlpathCtr, "lp_controller.php");
$fh = '';
if ($posCtr === false) {
echo '';
} else {
$ctrAction = isset($_GET['action']) ? (string) $_GET['action'] : '';
$version = '?v=09';
$loginAccepted = isset($_SESSION['h5p']) ? $_SESSION['h5p_accepted'] : null;
$pluginPath = api_get_path(WEB_PLUGIN_PATH);
$webPath = api_get_path(WEB_PATH);
if ($ctrAction == 'edit_item' || $ctrAction == 'add_item') {
$fh .= '<script src="'.$pluginPath.'h5p/resources/js/h5p_extras.js'.$version.'" type="text/javascript" ></script>';
$fh .= '<script>if (!jQuery.ui) {'."$('body').append('<script src=\"".$webPath."web/assets/jquery-ui/jquery-ui.min.js\"><\/script>');}</script>";
$fh .= '<link rel="stylesheet" type="text/css" href="'.$webPath.'web/assets/jquery-ui/themes/smoothness/jquery-ui.min.css">';
$fh .= '<link rel="stylesheet" type="text/css" href="'.$pluginPath.'h5p/resources/css/window-h5p.css">';
}
}
echo $fh;