switch ($action) { case 'ack': RRD_anomaly_global::ack($conn, $what); break; case 'del': RRD_anomaly_global::delete($conn, $what); break; } } else { $ip = ereg_replace("_", ".", $ip); switch ($action) { case 'ack': RRD_anomaly::ack($conn, $ip, $what); break; case 'del': RRD_anomaly::delete($conn, $ip, $what); break; } } } $db->close($conn); ?> <p> <?php echo gettext("Successfully Acked/Deleted"); ?> </p> <script>document.location.href="anomalies.php"</script> </body> </html>