mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-29 01:09:10 +01:00
Another test
This commit is contained in:
parent
17d994c883
commit
0b5417f928
@ -22,11 +22,11 @@
|
|||||||
$config['mcrypt_algo'] = 'tripledes'; /* MCRYPT_TRIPLEDES */
|
$config['mcrypt_algo'] = 'tripledes'; /* MCRYPT_TRIPLEDES */
|
||||||
}
|
}
|
||||||
$algos = @mcrypt_list_algorithms();
|
$algos = @mcrypt_list_algorithms();
|
||||||
|
$found = False;
|
||||||
|
|
||||||
if(@is_array($algos))
|
|
||||||
{
|
|
||||||
while (list ($key, $value) = each ($algos))
|
while (list ($key, $value) = each ($algos))
|
||||||
{
|
{
|
||||||
|
$found = True;
|
||||||
/* Only show each once - seems this is a problem in some installs */
|
/* Only show each once - seems this is a problem in some installs */
|
||||||
if(!in_array($value,$listed))
|
if(!in_array($value,$listed))
|
||||||
{
|
{
|
||||||
@ -44,11 +44,10 @@
|
|||||||
$listed[] = $value;
|
$listed[] = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
if(!$found)
|
||||||
else
|
|
||||||
{
|
{
|
||||||
/* Something is wrong with their mcrypt install or php.ini */
|
/* Something is wrong with their mcrypt install or php.ini */
|
||||||
$out = '<option value="tripledes">' . lang('no algorithms available') . '</option>' . "\n";;
|
$out = '<option value="">' . lang('no algorithms available') . '</option>' . "\n";;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -68,11 +67,11 @@
|
|||||||
$config['mcrypt_mode'] = 'cbc'; /* MCRYPT_MODE_CBC */
|
$config['mcrypt_mode'] = 'cbc'; /* MCRYPT_MODE_CBC */
|
||||||
}
|
}
|
||||||
$modes = @mcrypt_list_modes();
|
$modes = @mcrypt_list_modes();
|
||||||
|
$found = False;
|
||||||
|
|
||||||
if(@is_array($modes))
|
|
||||||
{
|
|
||||||
while (list ($key, $value) = each ($modes))
|
while (list ($key, $value) = each ($modes))
|
||||||
{
|
{
|
||||||
|
$found = True;
|
||||||
/* Only show each once - seems this is a problem in some installs */
|
/* Only show each once - seems this is a problem in some installs */
|
||||||
if(!in_array($value,$listed))
|
if(!in_array($value,$listed))
|
||||||
{
|
{
|
||||||
@ -90,11 +89,10 @@
|
|||||||
$listed[] = $value;
|
$listed[] = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
if(!$found)
|
||||||
else
|
|
||||||
{
|
{
|
||||||
/* Something is wrong with their mcrypt install or php.ini */
|
/* Something is wrong with their mcrypt install or php.ini */
|
||||||
$out = '<option value="cbc" selected>' . lang('no modes available') . '</option>' . "\n";
|
$out = '<option value="" selected>' . lang('no modes available') . '</option>' . "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user