">
"; flock($handle, LOCK_EX); echo "Writing out new config file...
"; $newconfig2 = str_replace('\"', '"', $new_config); fwrite($handle, $newconfig2); echo "Unlocking the file...
"; flock($handle, LOCK_UN); log_agent("$uname manually edited $filename"); echo "Success, wrote the new entries to file ($filename)"; fclose($handle); } else { echo "The file $filename is not writable"; log_agent("$uname cannot write to edited $filename - not writable by webserver"); } echo "
"; #include('../footer.php'); } ?>