lp_ajax_start_timer.php 581 B

1234567891011121314151617181920212223
  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. $app['template.show_footer'] = false;
  13. $app['template.show_header'] = false;
  14. $app['default_layout'] = 'default/layout/blank.tpl';
  15. function start_timer() {
  16. $time = time();
  17. return $time; //"olms.asset_timer='$time'; olms.asset_timer_total = 0;";
  18. }
  19. echo start_timer();
  20. exit;