]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit - html/cgi-bin/ids.cgi
ids.cgi: Rework handling of enabled/disabled sids
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 22 Aug 2018 06:39:57 +0000 (08:39 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 22 Aug 2018 06:39:57 +0000 (08:39 +0200)
commitd2212836226ee8212eef3226acf3a4e6fa65643a
tree907ab967e57e9a69d04acc7aac9b91babad1a0d4
parenta5d617520b144e22fd2b31795d2b04c8170f93ef
ids.cgi: Rework handling of enabled/disabled sids

Now the enabled or disabled sids are stored in a single
hash instead of two arrays, which easily can be modified.

When saving the ruleset, the new read_enabled_disabled_sids() function
will be used to read-in the current (old) saved enabled or disabled sids
and add them to the new hash structure.

After adding or modifiying sids to the hash, the entries will be written
to the corresponding files.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi