]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit - html/cgi-bin/pakfire.cgi
pakfire.cgi: Separate command processing and HTML generation
authorLeo-Andres Hofmann <hofmann@leo-andres.de>
Sun, 8 May 2022 12:09:46 +0000 (14:09 +0200)
committerPeter Müller <peter.mueller@ipfire.org>
Sun, 8 May 2022 13:13:20 +0000 (13:13 +0000)
commitcd521e78b815e84c31683b3cc2ec085f6f97d939
treed57dc9c465641cd00181c1ef66248b0bbe6c7408
parentc7105c6e66bdc9ed1c42d4248926c0e7b654b414
pakfire.cgi: Separate command processing and HTML generation

Move most of the command execution away from the HTML output.
This makes it easier to modify or extend individual commands.

Also load Pakfire settings earlier to ensure that they are
available during command execution.

Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
Acked-by: Peter Müller <peter.muelle@ipfire.org>
html/cgi-bin/pakfire.cgi