socket used are no long displayed in the servers choice combo

This commit is contained in:
Loïc Chapeaux
2001-10-29 20:57:46 +00:00
parent a45c8b0650
commit 18f136052f
2 changed files with 8 additions and 4 deletions

View File

@@ -7,7 +7,9 @@ $Source$
2001-10-28 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* main.php3, line 342: cosmetic change.
* main.php3:
- lines 107-111: removed the socket used from the settings displayed;
- line 342: cosmetic change.
* lang/bulgarian.inc.php3, line 304: a ';' was missig at EOL.
2001-10-27 Lo<4C>c Chapeaux <lolo@phpheaven.net>

View File

@@ -104,9 +104,11 @@ if ($server == 0 || count($cfgServers) > 1) {
echo ':' . $val['port'];
}
// loic1: connection with socket is only available since php 3.0.10
if (!empty($val['socket']) && PHP_INT_VERSION >= 30010) {
echo ':' . $val['socket'];
}
// loic1: skip this because it's not a so good idea to display
// sockets used to everybody
// if (!empty($val['socket']) && PHP_INT_VERSION >= 30010) {
// echo ':' . $val['socket'];
// }
// loic1: if 'only_db' is an array and there is more than one
// value, displaying such informations may not be a so good
// idea