function setHeatStatus($status) { if ($status >= $GLOBALS['cfgHeatStatus']['open']) { $this->update("\r\n\t\t\t\tUPDATE serie SET\r\n\t\t\t\t\tStatus = {$status}\r\n\t\t\t\t\tWHERE xSerie = " . $this->heatID); // change this round's speaker status // (class Round will determine correct speaker status) $round = new Round($this->roundID); $round->setSpeakerStatus($GLOBALS['cfgSpeakerStatus']['open']); } // ET valid heat status }
function process() { require './lib/common.lib.php'; require './lib/utils.lib.php'; if (empty($_POST['checked'])) { // $status = $GLOBALS['cfgSpeakerStatus']['open']; } else { $status = $_POST['status']; } $round = new Round($_POST['round']); $round->setSpeakerStatus($status); if (!empty($GLOBALS['AA_ERROR'])) { return; } $this->ok_out['msg'] = $GLOBALS['strOKUpdate'] . ": " . $GLOBALS['strSpeakerStatus'] . " (xRunde = " . $_POST['round'] . ")"; }