timeline.ajax.php 464 B

12345678910111213141516171819
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. require_once '../global.inc.php';
  4. require_once api_get_path(LIBRARY_PATH).'timeline.lib.php';
  5. $timeline = new Timeline();
  6. $action = $_GET['a'];
  7. switch ($action) {
  8. case 'get_timeline_content':
  9. $items = $timeline->get_timeline_content($_GET['id']);
  10. echo json_encode($items);
  11. /*echo '<pre>';
  12. echo json_encode($items);
  13. echo '</pre>';
  14. var_dump($items);*/
  15. break;
  16. }