<?php
	require_once('IP2Country.php');

	define('DB_SERVER', 'localhost');
	define('DB_PORT', 3306);
	define('DB_NAME', 'dnscheckng');
	define('DB_USER', 'dnscheckng');
	define('DB_PASS', 'dnscheckng');

	define('STATUS_OK', 'OK');
	define('STATUS_WARN', 'WARNING');
	define('STATUS_ERROR', 'ERROR');
	define('STATUS_DOMAIN_DOES_NOT_EXIST', 'ERROR_DOMAIN_DOES_NOT_EXIST');
	define('STATUS_DOMAIN_SYNTAX', 'ERROR_DOMAIN_SYNTAX');
	define('STATUS_NO_NAMESERVERS', 'ERROR_NO_NAMESERVERS');
	define('STATUS_IN_PROGRESS', 'IN_PROGRESS');
	define('STATUS_INTERNAL_ERROR', 'INTERNAL_ERROR');

	define('PAGER_SIZE', 10);
	
	define('GUI_TIMEOUT', 300);

	$sourceIdentifiers = array(
		'standard' => 'webgui',
		'undelegated' => 'webgui-undelegated'
	);


	define('DEFAULT_LANGUAGE_ID', getDefaultLanguage());
    
    /* Provide a place where settings can be overridden, to make Debian packaging easier. */
    if (is_readable('/etc/dnscheck/webui_config.php')) {
        require_once('/etc/dnscheck/webui_config.php');
    }

?>

<?php
	require_once('IP2Country.php');

	define('DB_SERVER', 'localhost');
	define('DB_PORT', 3306);
	define('DB_NAME', 'dnscheckng');
	define('DB_USER', 'dnscheckng');
	define('DB_PASS', 'dnscheckng');

	define('STATUS_OK', 'OK');
	define('STATUS_WARN', 'WARNING');
	define('STATUS_ERROR', 'ERROR');
	define('STATUS_DOMAIN_DOES_NOT_EXIST', 'ERROR_DOMAIN_DOES_NOT_EXIST');
	define('STATUS_DOMAIN_SYNTAX', 'ERROR_DOMAIN_SYNTAX');
	define('STATUS_NO_NAMESERVERS', 'ERROR_NO_NAMESERVERS');
	define('STATUS_IN_PROGRESS', 'IN_PROGRESS');
	define('STATUS_INTERNAL_ERROR', 'INTERNAL_ERROR');

	define('PAGER_SIZE', 10);
	
	define('GUI_TIMEOUT', 300);

	$sourceIdentifiers = array(
		'standard' => 'webgui',
		'undelegated' => 'webgui-undelegated'
	);


	define('DEFAULT_LANGUAGE_ID', getDefaultLanguage());
    
    /* Provide a place where settings can be overridden, to make Debian packaging easier. */
    if (is_readable('/etc/dnscheck.php')) {
        require_once('/etc/dnscheck.php');
    }

?>

--- 
+++ 
@@ -29,8 +29,8 @@
 	define('DEFAULT_LANGUAGE_ID', getDefaultLanguage());
     
     /* Provide a place where settings can be overridden, to make Debian packaging easier. */
-    if (is_readable('/etc/dnscheck.php')) {
-        require_once('/etc/dnscheck.php');
+    if (is_readable('/etc/dnscheck/webui_config.php')) {
+        require_once('/etc/dnscheck/webui_config.php');
     }
 
 ?>
Move webui optional config file to the same directory DNSCheck Lib uses.
