timeline.ajax.php 306 B

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