Another test

This commit is contained in:
Miles Lott 2002-01-02 18:20:10 +00:00
parent 17d994c883
commit 0b5417f928

View File

@ -22,11 +22,11 @@
$config['mcrypt_algo'] = 'tripledes'; /* MCRYPT_TRIPLEDES */
}
$algos = @mcrypt_list_algorithms();
$found = False;
if(@is_array($algos))
{
while (list ($key, $value) = each ($algos))
{
$found = True;
/* Only show each once - seems this is a problem in some installs */
if(!in_array($value,$listed))
{
@ -44,11 +44,10 @@
$listed[] = $value;
}
}
}
else
if(!$found)
{
/* 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
@ -68,11 +67,11 @@
$config['mcrypt_mode'] = 'cbc'; /* MCRYPT_MODE_CBC */
}
$modes = @mcrypt_list_modes();
$found = False;
if(@is_array($modes))
{
while (list ($key, $value) = each ($modes))
{
$found = True;
/* Only show each once - seems this is a problem in some installs */
if(!in_array($value,$listed))
{
@ -90,11 +89,10 @@
$listed[] = $value;
}
}
}
else
if(!$found)
{
/* 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