From a924ee07d32fd8f108c315be84510f5936f19396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ad=C3=ABle?= Date: Tue, 1 Jun 2021 11:47:22 +0200 Subject: [PATCH] convert comment lines from gemserv config file to ini file syntax adds a ";" at the beginning of the line if it starts with "#" --- index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.php b/index.php index 051fd24..33b145d 100755 --- a/index.php +++ b/index.php @@ -62,6 +62,10 @@ else if(CONFIG_TYPE === "gemserv") { $line = "[server_".$nb."]"; ++$nb; } + // comment lines with ; + if(substr($line,0,1)=='#') + $line = "; ".$line; + } //reassemble file and parse as array