function sa24_config_check(){
global $SA24_CONF, $SYSTEM_CONF;
if(!isset($SA24_CONF['sa24_l1_user'])) sa24_config_set_var('sa24_l1_user', 'admin');
if(!isset($SA24_CONF['sa24_l1_passwd'])) sa24_config_set_var('sa24_l1_passwd', password_generieren());
if(!isset($SA24_CONF['sa24_charset'])) sa24_config_set_var('sa24_charset', 'UTF-8');
if(!isset($SA24_CONF['sa24_default_subdomain'])) sa24_config_set_var('sa24_default_subdomain', $SA24_CONF['serverhostname']);
if(!isset($SA24_CONF['sa24_use_domainreg'])) sa24_config_set_var('sa24_use_domainreg', 'true');
if(!isset($SA24_CONF['sa24_use_domainkk'])) sa24_config_set_var('sa24_use_domainkk', 'true');
if(!isset($SA24_CONF['sa24_init_update'])) sa24_config_set_var('sa24_init_update', 'false');
if(!isset($SA24_CONF['sa24_init_system_scan'])) sa24_config_set_var('sa24_init_system_scan', 'false');
if(!isset($SYSTEM_CONF['avmailfilter_available'])) sa24_config_set_var('avmailfilter_available', '0');
if(!isset($SYSTEM_CONF['sa24_use_spamfilter'])) sa24_config_set_var('sa24_use_spamfilter', '0');
if(!isset($SYSTEM_CONF['sa24_use_avmailfilter'])) sa24_config_set_var('sa24_use_avmailfilter', '0');
if(!isset($SYSTEM_CONF['sa24_mailfilter_global'])) sa24_config_set_var('sa24_mailfilter_global', '1');
if(!isset($SYSTEM_CONF['sa24_mailfilter_avprog'])) sa24_config_set_var('sa24_mailfilter_avprog', 'clamscan_scanner');
if(!isset($SA24_CONF['mysql_user'])) sa24_config_set_var('mysql_user', 'root');
if(!isset($SA24_CONF['mysql_host'])) sa24_config_set_var('mysql_host', '127.0.0.1');
if(!isset($SA24_CONF['mysql_admin_user'])) sa24_config_set_var('mysql_admin_user', 'root');
if(!isset($SA24_CONF['mysql_admin_host'])) sa24_config_set_var('mysql_admin_host', '127.0.0.1');
if(!isset($SA24_CONF['sa24_domainmanagement_mode']) || $SA24_CONF['sa24_domainmanagement_mode']!='simple') sa24_config_set_var('sa24_domainmanagement_mode', 'reseller');
if(!isset($SA24_CONF['sa24_default_reseller'])) sa24_config_set_var('sa24_default_reseller', '');
if(!isset($SYSTEM_CONF['named_hosts_conf'])) sa24_config_set_var('named_hosts_conf', $SYSTEM_CONF['nameserver1pfad']."/hosts");
if(!isset($SYSTEM_CONF['named_zone_dir'])) sa24_config_set_var('named_zone_dir', $SYSTEM_CONF['nameserver1pfad']);
if($SYSTEM_CONF['sa24_mta']==''){
sa24_config_set_var('sa24_mta', 'qmail');
}
}