if (isset($_POST['Save2'])) { foreach ($_POST as $name => $smoke) { if ($smoke == "Save2") { continue; } ereg("([a-z]+)-(.+)", $name, $regs); $type = $regs[1]; $build = $regs[2]; if (ereg("(.*)\\_(.*)", $build, $regs)) { $build = $regs[1] . "." . $regs[2]; } if ($type == "comment") { updateRapRegComment($build, $smoke, "grenregResults"); } if ($type == "bug") { updateBugs2($build, $smoke, "grenregResults"); } if ($type == "analysis") { updateRapRegAnalysisStatus($build, $smoke, "grenregResults"); } if ($type == "runstatus") { updateBranchRegRunStatus($build, $smoke, "grenregResults"); } } } if (isset($_POST['Save'])) { foreach ($_POST as $name => $smoke) { if ($smoke == "Save") { continue; } ereg("([a-z]+)-(.+)-([a-zA-Z]+)", $name, $regs);
$arr = loginUser($_POST); $arr = logoutUser($_POST, $arr); $regType = $_GET[regr] == "minireg" ? "minireg" : "smoke"; $tableQuery = $_GET[regr] == "minireg" ? "miniregResults" : "regressionResults"; if (isset($_POST['Save'])) { foreach ($_POST as $name => $val) { if ($val == "Save") { continue; } ereg("([a-z]+)-([0-9]+)", $name, $regs); $type = $regs[1]; $build = $regs[2]; if ($type == "comment") { updateRapRegComment($build, $val, $tableQuery); } elseif ($type == "bug") { updateBugs2($build, $val, $tableQuery); } elseif ($type == "analysis") { updateAnalysisStatus2($build, $val, $tableQuery); } elseif ($type == "runstatus") { updateRunStatus($build, $val, $tableQuery); } } } if (!ereg("[0-9]+", $_GET['buildID'])) { $errStr = "BUILD ID '" . $_GET['buildID'] . "' is NOT VALID!<br>PLEASE SEARCH ANOTHER BUILD!"; } else { // get data for AOS image $buildData = createDataForRegBuild($_GET['buildID'], $regType); writeRegBuildCasesToFile($buildData, $_GET['buildID'], $regType); $arrData = getDataForRegBuild($_GET['buildID'], $regType); // get result for Alcatel build
if (isset($_POST['Save2'])) { foreach ($_POST as $name => $smoke) { if ($smoke == "Save2") { continue; } ereg("([a-z]+)-(.+)", $name, $regs); $type = $regs[1]; $build = $regs[2]; if (ereg("(.*)\\_(.*)", $build, $regs)) { $build = $regs[1] . "." . $regs[2]; } if ($type == "comment") { updateRapRegComment($build, $smoke, "rapregResults"); } if ($type == "bug") { updateBugs2($build, $smoke, "rapregResults"); } if ($type == "analysis") { updateRapRegAnalysisStatus($build, $smoke, "rapregResults"); } if ($type == "runstatus") { updateBranchRegRunStatus($build, $smoke, "rapregResults"); } } } if (isset($_POST['Save'])) { foreach ($_POST as $name => $smoke) { if ($smoke == "Save") { continue; } ereg("([a-z]+)-(.+)-([a-zA-Z]+)", $name, $regs);