show full database url in setup, not just driver-name and show used IP in "Invalid IP address" message

This commit is contained in:
Ralf Becker 2015-05-03 12:03:29 +00:00
parent cebd7eb868
commit 7a49d11e52
2 changed files with 6 additions and 2 deletions

View File

@ -416,7 +416,7 @@ class setup
return True; // match
}
}
$GLOBALS['egw_info']['setup']['ConfigLoginMSG'] = lang('Invalid IP address');
$GLOBALS['egw_info']['setup']['ConfigLoginMSG'] = lang('Invalid IP address').' '.$remoteip;
error_log(__METHOD__.'-> checking IP failed:'.print_r($remoteip,true));
return False;
}

View File

@ -70,7 +70,11 @@ $GLOBALS['egw_setup']->html->show_header(
$GLOBALS['egw_info']['setup']['header_msg'],
False,
'config',
$GLOBALS['egw_setup']->ConfigDomain . '(' . $GLOBALS['egw_domain'][$GLOBALS['egw_setup']->ConfigDomain]['db_type'] . ')'
$GLOBALS['egw_setup']->ConfigDomain . ' (' . $GLOBALS['egw_domain'][$GLOBALS['egw_setup']->ConfigDomain]['db_type'].'://'.
$GLOBALS['egw_domain'][$GLOBALS['egw_setup']->ConfigDomain]['db_user'].'@'.
$GLOBALS['egw_domain'][$GLOBALS['egw_setup']->ConfigDomain]['db_host'].':'.
$GLOBALS['egw_domain'][$GLOBALS['egw_setup']->ConfigDomain]['db_port'].'/'.
$GLOBALS['egw_domain'][$GLOBALS['egw_setup']->ConfigDomain]['db_name'] . ')'
);
/* Add cleaning of app_sessions per skeeter, but with a check for the table being there, just in case */
/* $GLOBALS['egw_setup']->clear_session_cache(); */