From 08b3e1fc2cb18a740f6a10434e5b4acfd2b29b7c Mon Sep 17 00:00:00 2001 From: nachoparker Date: Thu, 10 Aug 2017 19:47:34 +0200 Subject: ncp-web: active mark --- ncp-web/ncp-launcher.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ncp-web/ncp-launcher.php') diff --git a/ncp-web/ncp-launcher.php b/ncp-web/ncp-launcher.php index ce3e88a5..2038cc61 100644 --- a/ncp-web/ncp-launcher.php +++ b/ncp-web/ncp-launcher.php @@ -35,6 +35,7 @@ if ( $_POST['action'] == "cfgreq" ) while ( $line = fgets($fh) ) { + // checkbox (yes/no) field if ( preg_match('/^(\w+)_=(yes|no)$/', $line, $matches) ) { if ( $matches[2] == "yes" ) @@ -44,6 +45,8 @@ if ( $_POST['action'] == "cfgreq" ) $output = $output . ""; $output = $output . ""; } + + // text field else if ( preg_match('/^(\w+)_=(.*)$/', $line, $matches) ) { $output = $output . ""; -- cgit v1.2.3