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/newscorm/lp_ajax_start_timer.php

18 lines
444 B

<?php
/* For licensing terms, see /license.txt */
/**
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
*/
/**
* Start a timer and hand it back to the JS by assigning the current time (of start) to
* var asset_timer
* @return string JavaScript time intializer
*/
function start_timer() {
$time = time();
return $time; //"olms.asset_timer='$time'; olms.asset_timer_total = 0;";
}
echo start_timer();