?> "/> </head> <body> <?php if ($data['status'] == 'error') { $txt_error = "<div>" . _("The following errors occurred") . ":</div>\n\t\t\t\t\t <div style='padding:2px 10px 5px 10px;'>" . implode("<br/>", $validation_errors) . "</div>"; $config_nt = array('content' => $txt_error, 'options' => array('type' => 'nf_error', 'cancel_button' => false), 'style' => 'width: 80%; margin: 20px auto; text-align: left;'); $nt = new Notification('nt_1', $config_nt); $nt->show(); Util::make_form("POST", "newportform.php"); exit; } $db = new ossim_db(); $conn = $db->connect(); Port::update($conn, $port, $protocol, $service, $descr, $ctx); Util::memcacheFlush(); $db->close(); ?> <script type='text/javascript'> if (!parent.is_lightbox_loaded(window.name)) { document.location.href="port.php?msg=updated"; } </script> </body> </html>