0 $types = array( 'OverloadFrames' => 'integer', 'ExtendAlarmFrames' => 'integer', ); $changes = getFormChanges($zone, $_REQUEST['newZone'], $types); if ( count($changes) ) { if ( $zid > 0 ) { dbQuery('UPDATE Zones SET '.implode(', ', $changes).' WHERE MonitorId=? AND Id=?', array($mid, $zid)); } else { dbQuery('INSERT INTO Zones SET MonitorId=?, '.implode(', ', $changes), array($mid)); } if ( daemonCheck() && ($monitor['Type'] != 'WebSite') ) { if ( $_REQUEST['newZone']['Type'] == 'Privacy' ) { zmaControl($monitor, 'stop'); zmcControl($monitor, 'restart'); zmaControl($monitor, 'start'); } else { zmaControl($monitor, 'restart'); } } if ( ($_REQUEST['newZone']['Type'] == 'Privacy') && $monitor['Controllable'] ) { require_once('control_functions.php'); sendControlCommand($mid, 'quit'); } $refreshParent = true; } $view = 'none'; } // end if action } // end if $mid and canEdit($mid) ?>