1, 'xp'=>0,'x'=>0,'y'=>0,'value'=>0), array('id'=>2, 'xp'=>0,'x'=>0,'y'=>0,'value'=>0), array('id'=>3, 'xp'=>0,'x'=>0,'y'=>0,'value'=>0), array('id'=>4, 'xp'=>0,'x'=>0,'y'=>0,'value'=>0), ); $time = 0; if (isset($_GET['aid'])) { if ( is_numeric($_GET['aid']) ) { //session_start(); require_once('../../includes/config.php'); require_once('../../includes/api.php'); require_once('../../includes/BaseAnswer.php'); require_once('TimelineAnswer.php'); require_once('../../includes/Base.php'); require_once('../../includes/Assignments.php'); require_once('../../includes/BaseResource.php'); require_once('../../includes/db.php'); require_once('../../includes/user.php'); $objs = $kdb->getAnswerByID($_GET['aid'], "TimelineAnswer"); if ( count($objs) > 1 ) { $obj = $objs[0]; } else { $obj = $objs; } $ques = unserialize($obj->getData()); $time = $obj->getTime(); } } print ''; print ''; foreach ($ques as $que) { print ''; print ''.$que['value'].''; print ''; } print ''; print ''.$time.''; print ''; print ''; ?>