The audit_configuration.php file is used to add and change configurations. On first accessing the file there is no configuration selected for editing and so $_GET['config_id'] isn't set. One of the first things in the code is to check for this and set $id = 0 if we're not editing an existing configuration.
Code:
$id = ( isset($_GET['config_id']) ) ? $_GET['config_id'] : '0';
It looks like for some reason on your machine when config_id isn't set $_GET['config_id'] returns an error string ( <br%20/><b>Notice</b>:%20%20Undefined%20index:%20config_id%20in%20<b>PATH_TO\audit_configuration.php</b>%20on%20line%20<b>76</b><br%20/>).
After $id is set early in the code further code should use $id rather than $_GET['config_id']. Two places in the released code are using $_GET['config_id'] rather than $id. I changed this because the garbage returned in your configuration was causing problems.
Code:
<form action="javascript:SubmitForm('config','<?php echo $form_action ?>','<?php echo $_GET['config_id']; ?>');" method="post" id="form_config">
should be
<form action="javascript:SubmitForm('config','<?php echo $form_action ?>','<?php echo $id; ?>');" method="post" id="form_config">
<input type="hidden" value="<?php echo $_GET['config_id']; ?>" id="config_id"/>
should be
<input type="hidden" value="<?php echo $id; ?>" id="config_id"/>
If we are editing a configuration then $id is set to the configuration id and the configuration information is retrieved and presented for editing. The released code was not retrieving the last octet of "IP End" for an "IP Range" type audit. So I added the following to get this info.
Code:
$ip_end = ( !is_null($cfg[$id]) ) ? $cfg[$id]['ip_end'] : '0';