Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/main/inc/lib/mp3player/is_autostart.as.php

25 lines
447 B

<?php
/* For licensing terms, see /license.txt */
/**
* This script is used by the mp3 player to see if it should start
* automatically or not
* @package chamilo.include
*/
/**
* Code
*/
require ('../../global.inc.php');
switch ($_SESSION['whereami']) {
case 'lp/build' :
case 'document/create' :
case 'document/edit' :
$autostart = 'false';
break;
default :
$autostart = 'true';
}
echo utf8_encode('autostart='.$autostart);
?>