fen.c: add option to show side indicator to CGI mode too - chess-puzzles - chess puzzle book generator
 (HTM) git clone git://git.codemadness.org/chess-puzzles
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 207a970e589950d41fe4512c6687131f5ed60e82
 (DIR) parent fea5413be3348ec3c167a10fcc0820a50d0d070e
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Tue, 22 Jul 2025 15:25:00 +0200
       
       fen.c: add option to show side indicator to CGI mode too
       
       Diffstat:
         M fen.c                               |       2 ++
       
       1 file changed, 2 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/fen.c b/fen.c
       @@ -1547,6 +1547,8 @@ cgi_mode(void)
                query = getenv("QUERY_STRING");
                if ((p = getparam(query, "flip")) && (*p == '0' || *p == '1'))
                        board.flipboard = *p == '1' ? 1 : 0;
       +        if ((p = getparam(query, "side")) && (*p == '0' || *p == '1'))
       +                board.showside = *p == '1' ? 1 : 0;
                if ((p = getparam(query, "coords")) && (*p == '0' || *p == '1'))
                        board.showcoords = *p == '1' ? 1 : 0;
                if ((p = getparam(query, "dutch")) && *p == '1') {