classID = $classID; $this->cellID = $cellID; $this->cellData = $cellData; $this->isTrigger = $isTrigger; } }; if ($_SERVER[REQUEST_METHOD] == "POST") { $theToken = $_POST['token']; $cells = array(); $formID = 0; $guid = ""; //var_dump($_POST); foreach (array_keys($_POST) as $key) { $cellData = explode(":", $key); if (count($cellData) == 2) { $cells[] = new Cell((int)$cellData[0], (int)$cellData[1], $_POST[$key]); } else if ($key == "submitTrigger") { $cellData = explode(":", $_POST[$key]); $cells[] = new Cell((int)$cellData[0], (int)$cellData[1], "", true); } else if ($key == "formID") { $formID = $_POST[$key]; } else if ($key == "guid") { $guid = $_POST[$key]; } else if ($key == "token") { // Don't need to do anything with this var at this point. continue; } else { error_log("Unexpected post parameter: " . $key); continue; } } $theHTML = submit_metawizard_response($user, $guid, (int)$formID, count($cells), $cells, $theToken); if( $theHTML == "" ) { // We got the End-Of-Sequence back // Meaning the user pressed EXIT // Handle the RAS ticket token if( isset($_POST[token]) && $_POST[token] != '' ) { error_log("Releasing RAS Token '". $_POST[token] ."' in serviceMenu.htm"); set_ras_token_in_use($user, $_POST[token], false); $_SESSION['RasToken'] = ''; // Clear the Global } error_log("submit_metawizard_response returned EndOfSeq - exiting to main page"); echo""; } } else { $rasResult = open_service_menu($user); $theToken = $rasResult->token; error_log("Setting the GLOBAL RasToken"); $_SESSION['RasToken'] = $theToken; // Set the Global so we can release it when the user leaves the Service menu $theHTML = $rasResult->html; error_log( "Token = ". $theToken ); } ?> Service Wizard