Added HUp signal on zone deletion.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@81 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2002-10-02 11:58:35 +00:00
parent 00db60fe84
commit abf75dc4cc
1 changed files with 7 additions and 0 deletions

View File

@ -140,11 +140,18 @@ if ( $action )
}
elseif ( $delete_zids )
{
$deleted_zid = 0;
foreach( $delete_zids as $delete_zid )
{
$result = mysql_query( "delete from Zones where Id = '$delete_zid'" );
if ( !$result )
die( mysql_error() );
$deleted_zid = 1;
}
if ( $deleted_zid )
{
startDaemon( "zma", $mid );
$refresh_parent = true;
}
}
elseif ( $delete_mids )