?> "> <input type="hidden" name="mediaCD" value="<?php echo $mediaCD; ?> "> </form> <?php } else { if ($action == $strCloseReq and $nItens) { if (!isset($address)) { $address = 0; } $objCartG->operator = $operator; $objCartG->addressId = $matAddr[$address]->addressId; $total = $objCartG->getTotalPrice(); if ($total == 0 or $GLOBALS['turnOnEletronicPayment'] == false) { if (!($reqId = $objCartG->generateRequest($dbusercat))) { echo "Mensagem = " . $cartRequestE1; die($cartRequestE1); } // Get the current Language for providing correct mail message language $lang = $_SESSION['userLang']; $sql = "UPDATE Request SET Language = '{$lang}' WHERE ReqId = '{$reqId}'"; if (!$dbcat->query($sql)) { $dbcat->error(); die("<br> ===========> Error Updating Data Base ! <br>"); } // Execute wget for each product $path = "/usr/bin/wget -b -a " . $GLOBALS["systemLog"] . "wget.log -O " . $GLOBALS["systemLog"] . "wgetExec_" . $reqId . "log "; $path .= $GLOBALS["dispatcher"] . "requestDispatcher.php?reqId={$reqId}";