don't duplicate declaration of process_configfile, because we include our version from ZM

pull/2077/head
Isaac Connor 2018-04-05 11:24:17 -04:00
parent e28ecf8e28
commit 8fee795fb4
1 changed files with 0 additions and 23 deletions

View File

@ -163,26 +163,3 @@ if ( ! defined('ZM_SERVER_ID') ) {
}
}
}
function process_configfile($configFile) {
if ( is_readable( $configFile ) ) {
$configvals = array();
$cfg = fopen( $configFile, 'r') or die('Could not open config file.');
while ( !feof($cfg) ) {
$str = fgets( $cfg, 256 );
if ( preg_match( '/^\s*$/', $str ))
continue;
elseif ( preg_match( '/^\s*#/', $str ))
continue;
elseif ( preg_match( '/^\s*([^=\s]+)\s*=\s*(.*?)\s*$/', $str, $matches ))
$configvals[$matches[1]] = $matches[2];
}
fclose( $cfg );
return( $configvals );
} else {
error_log( "WARNING: ZoneMinder configuration file found but is not readable. Check file permissions on $configFile." );
return( false );
}
}