lp_comm.common.php 878 B

12345678910111213141516171819202122232425
  1. <?php //$id: $
  2. /**
  3. * This script contains the server part of the xajax interaction process. The client part is located
  4. * in lp_api.php or other api's.
  5. * This is a first attempt at using xajax and AJAX in general, so the code might be a bit unsettling.
  6. * @package dokeos.learnpath
  7. * @author Yannick Warnier <ywarnier@beeznest.org>
  8. */
  9. /**
  10. * Script
  11. */
  12. //flag to allow for anonymous user - needs to be set before global.inc.php
  13. $use_anonymous = true;
  14. require_once('back_compat.inc.php');
  15. require_once('learnpath.class.php');
  16. require('../inc/lib/xajax/xajax.inc.php');
  17. $xajax = new xajax(api_get_path(WEB_CODE_PATH).'newscorm/lp_comm.server.php');
  18. $xajax->registerFunction("save_item");
  19. $xajax->registerFunction("save_objectives");
  20. $xajax->registerFunction("switch_item_details");
  21. $xajax->registerFunction("backup_item_details");
  22. $xajax->registerFunction("start_timer");
  23. ?>