lp_ajax_start_timer.php 445 B

1234567891011121314151617181920
  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. {
  14. $time = time();
  15. return $time; //"olms.asset_timer='$time'; olms.asset_timer_total = 0;";
  16. }
  17. echo start_timer();