<?php // ===================== // = standard includes = // ===================== require '../includes/basics.php'; $usr = checkUser(); // select for projects $projectSel = makeSelectBox("pct", $kga['usr']['usr_grp']); // select for events $eventSel = makeSelectBox("evt", $kga['usr']['usr_grp']); if (isset($_REQUEST['stopRecord'])) { stopRecorder(); } if (isset($_REQUEST['startRecord']) && isset($_REQUEST['project']) && isset($_REQUEST['event'])) { $data = array(); $data['lastProject'] = $_REQUEST['project']; $data['lastEvent'] = $_REQUEST['event']; usr_edit($kga['usr']['usr_ID'], $data); $kga['usr']['lastProject'] = $data['lastProject']; $kga['usr']['lastEvent'] = $data['lastEvent']; startRecorder($_REQUEST['project'], $_REQUEST['event'], $kga['usr']['usr_ID']); } if (isset($_REQUEST['updateComment'])) { $data = get_event_last(); zef_edit_comment($data['zef_ID'], $_REQUEST['comment_type'], $_REQUEST['comment']); } ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
$evtdata = evt_get_data($zefData['zef_evtID']); $return .= 'evt_name = "' . $evtdata['evt_name'] . '"; '; echo $return; // TODO return false if error break; // ================== // = stop recording = // ================== // ================== // = stop recording = // ================== case 'stop': if (isset($kga['customer'])) { die; } stopRecorder($kga['usr']['usr_ID']); echo 1; break; // =================================== // = set comment for a running event = // =================================== // =================================== // = set comment for a running event = // =================================== case 'edit_running_project': if (isset($kga['customer'])) { die; } $last_event = get_event_last(); zef_edit_pct($last_event['zef_ID'], $_REQUEST['project']); echo 1;