From 1fe8fc345292bba742e0d371f85d94e345decd00 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Mon, 24 Jul 2000 16:39:59 +0000 Subject: [PATCH] you can now have more than 10 ldap servers and themes, bug fixed! git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@633 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- config/conf.pl | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/config/conf.pl b/config/conf.pl index 8912bb39..357bea32 100755 --- a/config/conf.pl +++ b/config/conf.pl @@ -38,24 +38,21 @@ while ($line = ) { $options[1] =~ s/\";$//; $options[1] =~ s/;$//; $options[1] =~ s/^"//; -# if (/"$/) { -# $options[1] =~ s/"$//; -# } if ($options[0] =~ /^theme\[[0-9]+\]\["PATH"\]/) { $sub = $options[0]; $sub =~ s/\]\["PATH"\]//; - $sub = substr ($sub, @sub-1, 1); + $sub =~ s/.*\[//; $theme_path[$sub] = $options[1]; } elsif ($options[0] =~ /^theme\[[0-9]+\]\["NAME"\]/) { $sub = $options[0]; $sub =~ s/\]\["NAME"\]//; $sub =~ s/.*\[//; - #$sub = substr ($sub, @sub-1, 1); $theme_name[$sub] = $options[1]; } elsif ($options[0] =~ /^ldap_server\[[0-9]+\]/) { $sub = $options[0]; - $sub = substr ($sub, length($sub)-2, 1); + $sub =~ s/\]//; + $sub =~ s/^ldap_server\[//; $continue = 0; while (($tmp = ) && ($continue != 1)) { if ($tmp =~ /\);\s*$/) { -- 2.25.1