lp_ajax_start_timer.php 444 B

123456789101112131415161718
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * @package chamilo.learnpath
  5. * @author Yannick Warnier <ywarnier@beeznest.org>
  6. */
  7. /**
  8. * Start a timer and hand it back to the JS by assigning the current time (of start) to
  9. * var asset_timer
  10. * @return string JavaScript time intializer
  11. */
  12. function start_timer() {
  13. $time = time();
  14. return $time; //"olms.asset_timer='$time'; olms.asset_timer_total = 0;";
  15. }
  16. echo start_timer();