you can now have more than 10 ldap servers and themes, bug fixed!
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 24 Jul 2000 16:39:59 +0000 (16:39 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 24 Jul 2000 16:39:59 +0000 (16:39 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@633 7612ce4b-ef26-0410-bec9-ea0150e637f0

config/conf.pl

index 8912bb3..357bea3 100755 (executable)
@@ -38,24 +38,21 @@ while ($line = <FILE>) {
          $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 = <FILE>) && ($continue != 1)) {
                if ($tmp =~ /\);\s*$/) {