From christian@alcove.fr Wed Nov 29 18:36:50 2000 From: christian@alcove.fr (Christian Couder) Date: Wed, 29 Nov 2000 19:36:50 +0100 Subject: Improvement: advanced search Message-ID: <3A254CC2.BCCA6570@alcove.fr> ---------------------- multipart/mixed attachment Hi, A few month ago Stuart send a mail on this list to jump start this project. I answered to him that my company was willong to donate some GPL code and some of my time to help integrate the code in Turba. So I sent the code to Chuck and Jim but unfortunately a few days latter my company (Alc=F4ve) sent me for nearly 2 monthes to southern France to work in a client company... So now I am back and hopefully I will have more time to work on Turba. Anyway, here is some code to implement an advanced search. It is not completely finished but it should work. One thing that remains to be done though is to reload the adv_search.php page when the source select is used on this page to select another source, because I attached the new files. The adv_search.php file should be put in the "turba" directory and the other files in the "turba/templates/search" directory. Or perhaps you can create a new "turba/templates/adv_search" directory and put the .inc files in it (but you will need to modify adv_search.php a little). And here are some patches needed to make it work. The fisrt patch just add 2 new functions to the Turba_Source class and the second fix a problem when searching with many criterias. --- horde/turba/lib/Source.php 2000/10/26 21:33:13 1.14 +++ horde/turba/lib/Source.php 2000/11/29 18:14:12 @@ -277,6 +277,42 @@ list($object_key, $object_id) =3D each($this->toDriverKeys(array('__key' =3D> $object->getValue('__key'))))= ; $this->driver->removeObject($object_key, $object_id); } + + /** + * Returns the criterias available for this source except '__key'. + * + * @return An array containing the criterias. + */ + function get_criterias() + { + $criterias =3D array(); + foreach($this->map as $key =3D> $value) { + if($key !=3D "__key") { + $criterias[] =3D $key; + } + } + return $criterias; + } + + /** + * Returns an array made of the criterias set globally + * except '__key'. + * + * @return Array of criterias set globally. + */ + function get_globals_criterias() + { + $criterias =3D array(); + foreach($this->map as $key =3D> $value) { + if($key !=3D "__key") { + if(isset($GLOBALS[$key]) && $GLOBALS[$key] !=3D "") { + $criterias[$key] =3D $GLOBALS[$key]; + } + } + } + return $criterias; + } + } ?> --- horde/turba/lib/Driver/ldap.php 2000/10/30 18:16:53 1.9 +++ horde/turba/lib/Driver/ldap.php 2000/11/29 18:25:52 @@ -63,13 +63,14 @@ { // FIXME: implement strict_fields - $filter =3D ''; + $filter =3D '(&'; reset($criteria); while (list($key, $val) =3D each($criteria)) { - if ($filter !=3D '') $filter .=3D ', '; - $filter .=3D '(' . $key . '=3D*' . $val . '*)'; + // if ($filter !=3D '') $filter .=3D ', '; + $filter .=3D ' (' . $key . '=3D*' . $val . '*)'; } - + $filter .=3D ' )'; + /* * Four11 (at least) doesn't seem to return 'cn' if you don't ask * for 'sn' as well. Add 'sn' implicitly. Bye, -- Christian COUDER christian@alcove.fr Ing=E9nieur Informatique Libre Alc=F4ve - http://www.alcove.fr/ ---------------------- multipart/mixed attachment A non-text attachment was scrubbed... Name: adv_search.php Type: application/x-httpd-php Size: 4489 bytes Desc: not available Url : http://lists.horde.org/archives/turba/attachments/c7bc3321/adv_search.php ---------------------- multipart/mixed attachment
---------------------- multipart/mixed attachment ---------------------- multipart/mixed attachment
 
   
">

|
---------------------- multipart/mixed attachment-- From christian@alcove.fr Thu Nov 30 10:21:21 2000 From: christian@alcove.fr (Christian Couder) Date: Thu, 30 Nov 2000 11:21:21 +0100 Subject: Turba and IMP Message-ID: <3A262A21.D7DBE062@alcove.fr> Hi, When I search the Netcenter Member Directory, and there are some results, I get this warning: Warning: Failed opening '../lib/../config/../imp/lib/js/open_compose_win.js' for inclusion (include_path=3D'') in ../lib/Registry.php on line 240 Turba should work without IMP, using the default mailer (that means mailto links), but I couldn't find no config option and no config test for this. If you don't mind I will add a config option and make it work without IMP. Regards, -- Christian COUDER christian@alcove.fr Ing=E9nieur Informatique Libre Alc=F4ve - http://www.alcove.fr/ From chuck@horde.org Thu Nov 30 13:32:03 2000 From: chuck@horde.org (Chuck Hagenbuch) Date: Thu, 30 Nov 2000 08:32:03 -0500 Subject: [turba] Turba and IMP In-Reply-To: <3A262A21.D7DBE062@alcove.fr> References: <3A262A21.D7DBE062@alcove.fr> Message-ID: <975591123.3a2656d30a3e1@nirgal.your.mom> Quoting Christian Couder : > Turba should work without IMP, using the default mailer (that means > mailto links), but I couldn't find no config option and no config test > for this. In horde/config/registry.php: $__horde_registry['mail']['compose'] = 'imp'; Change that to 'default'. -chuck -- Charles Hagenbuch, "If you can't stand the heat, get out of the chicken!" - Baby Blues From christian@alcove.fr Thu Nov 30 18:05:43 2000 From: christian@alcove.fr (Christian Couder) Date: Thu, 30 Nov 2000 19:05:43 +0100 Subject: [turba] Turba and IMP References: <3A262A21.D7DBE062@alcove.fr> <975591123.3a2656d30a3e1@nirgal.your.mom> Message-ID: <3A2696F7.B8DCA708@alcove.fr> ---------------------- multipart/mixed attachment Chuck Hagenbuch wrote: > Quoting Christian Couder : > > > Turba should work without IMP, using the default mailer (that means > > mailto links), but I couldn't find no config option and no config tes= t > > for this. > > In horde/config/registry.php: > $__horde_registry['mail']['compose'] =3D 'imp'; > > Change that to 'default'. Thanks I did it and I also made some changes so that it works when there is no IMP. Here are the files. Regards, -- Christian COUDER christian@alcove.fr Ing=E9nieur Informatique Libre Alc=F4ve - http://www.alcove.fr/ ---------------------- multipart/mixed attachment A non-text attachment was scrubbed... Name: adv_search.php Type: application/x-httpd-php Size: 4915 bytes Desc: not available Url : http://lists.horde.org/archives/turba/attachments/17a4576c/adv_search.php ---------------------- multipart/mixed attachment
---------------------- multipart/mixed attachment ---------------------- multipart/mixed attachment
 
   
">

|
---------------------- multipart/mixed attachment-- From chuck@horde.org Fri Dec 1 02:48:47 2000 From: chuck@horde.org (Chuck Hagenbuch) Date: Thu, 30 Nov 2000 21:48:47 -0500 Subject: [turba] Improvement: advanced search In-Reply-To: <3A254CC2.BCCA6570@alcove.fr> References: <3A254CC2.BCCA6570@alcove.fr> Message-ID: <975638927.3a27118f9a90b@nirgal.your.mom> Quoting Christian Couder : > Anyway, here is some code to implement an advanced > search. It is not completely finished but it should work. It's certainly a good start! I've just cleaned it up a bit (match coding standards, seperate the templates out into their own directory, etc), and committed it to CVS. Thanks! -chuck -- Charles Hagenbuch, "If you can't stand the heat, get out of the chicken!" - Baby Blues From chuck@horde.org Fri Dec 1 03:36:20 2000 From: chuck@horde.org (Chuck Hagenbuch) Date: Thu, 30 Nov 2000 22:36:20 -0500 Subject: [turba] Turba and IMP In-Reply-To: <3A2696F7.B8DCA708@alcove.fr> References: <3A262A21.D7DBE062@alcove.fr> <975591123.3a2656d30a3e1@nirgal.your.mom> <3A2696F7.B8DCA708@alcove.fr> Message-ID: <975641780.3a271cb479435@nirgal.your.mom> Quoting Christian Couder : > Thanks I did it and I also made some changes so that > it works when there is no IMP. > > Here are the files. Heh, guess I should have looked at these before I made my first round of cleanups/commits. :) Oh well - these changes are now committed to CVS. Thanks again! (I'd like to find a cleaner way of doing the non-IMP stuff - ie, build it into the registry - but that can wait a bit). -chuck -- Charles Hagenbuch, "If you can't stand the heat, get out of the chicken!" - Baby Blues From christian@alcove.fr Wed Nov 29 18:36:50 2000 From: christian@alcove.fr (Christian Couder) Date: Wed, 29 Nov 2000 19:36:50 +0100 Subject: Improvement: advanced search Message-ID: <3A254CC2.BCCA6570@alcove.fr> ---------------------- multipart/mixed attachment Hi, A few month ago Stuart send a mail on this list to jump start this project. I answered to him that my company was willong to donate some GPL code and some of my time to help integrate the code in Turba. So I sent the code to Chuck and Jim but unfortunately a few days latter my company (Alc=F4ve) sent me for nearly 2 monthes to southern France to work in a client company... So now I am back and hopefully I will have more time to work on Turba. Anyway, here is some code to implement an advanced search. It is not completely finished but it should work. One thing that remains to be done though is to reload the adv_search.php page when the source select is used on this page to select another source, because I attached the new files. The adv_search.php file should be put in the "turba" directory and the other files in the "turba/templates/search" directory. Or perhaps you can create a new "turba/templates/adv_search" directory and put the .inc files in it (but you will need to modify adv_search.php a little). And here are some patches needed to make it work. The fisrt patch just add 2 new functions to the Turba_Source class and the second fix a problem when searching with many criterias. --- horde/turba/lib/Source.php 2000/10/26 21:33:13 1.14 +++ horde/turba/lib/Source.php 2000/11/29 18:14:12 @@ -277,6 +277,42 @@ list($object_key, $object_id) =3D each($this->toDriverKeys(array('__key' =3D> $object->getValue('__key'))))= ; $this->driver->removeObject($object_key, $object_id); } + + /** + * Returns the criterias available for this source except '__key'. + * + * @return An array containing the criterias. + */ + function get_criterias() + { + $criterias =3D array(); + foreach($this->map as $key =3D> $value) { + if($key !=3D "__key") { + $criterias[] =3D $key; + } + } + return $criterias; + } + + /** + * Returns an array made of the criterias set globally + * except '__key'. + * + * @return Array of criterias set globally. + */ + function get_globals_criterias() + { + $criterias =3D array(); + foreach($this->map as $key =3D> $value) { + if($key !=3D "__key") { + if(isset($GLOBALS[$key]) && $GLOBALS[$key] !=3D "") { + $criterias[$key] =3D $GLOBALS[$key]; + } + } + } + return $criterias; + } + } ?> --- horde/turba/lib/Driver/ldap.php 2000/10/30 18:16:53 1.9 +++ horde/turba/lib/Driver/ldap.php 2000/11/29 18:25:52 @@ -63,13 +63,14 @@ { // FIXME: implement strict_fields - $filter =3D ''; + $filter =3D '(&'; reset($criteria); while (list($key, $val) =3D each($criteria)) { - if ($filter !=3D '') $filter .=3D ', '; - $filter .=3D '(' . $key . '=3D*' . $val . '*)'; + // if ($filter !=3D '') $filter .=3D ', '; + $filter .=3D ' (' . $key . '=3D*' . $val . '*)'; } - + $filter .=3D ' )'; + /* * Four11 (at least) doesn't seem to return 'cn' if you don't ask * for 'sn' as well. Add 'sn' implicitly. Bye, -- Christian COUDER christian@alcove.fr Ing=E9nieur Informatique Libre Alc=F4ve - http://www.alcove.fr/ ---------------------- multipart/mixed attachment A non-text attachment was scrubbed... Name: adv_search.php Type: application/x-httpd-php Size: 4489 bytes Desc: not available Url : http://lists.horde.org/archives/turba/attachments/8f6184f0/adv_search.php ---------------------- multipart/mixed attachment
---------------------- multipart/mixed attachment ---------------------- multipart/mixed attachment
 
   
">

|
---------------------- multipart/mixed attachment-- From christian@alcove.fr Thu Nov 30 10:21:21 2000 From: christian@alcove.fr (Christian Couder) Date: Thu, 30 Nov 2000 11:21:21 +0100 Subject: Turba and IMP Message-ID: <3A262A21.D7DBE062@alcove.fr> Hi, When I search the Netcenter Member Directory, and there are some results, I get this warning: Warning: Failed opening '../lib/../config/../imp/lib/js/open_compose_win.js' for inclusion (include_path=3D'') in ../lib/Registry.php on line 240 Turba should work without IMP, using the default mailer (that means mailto links), but I couldn't find no config option and no config test for this. If you don't mind I will add a config option and make it work without IMP. Regards, -- Christian COUDER christian@alcove.fr Ing=E9nieur Informatique Libre Alc=F4ve - http://www.alcove.fr/ From chuck@horde.org Thu Nov 30 13:32:03 2000 From: chuck@horde.org (Chuck Hagenbuch) Date: Thu, 30 Nov 2000 08:32:03 -0500 Subject: [turba] Turba and IMP In-Reply-To: <3A262A21.D7DBE062@alcove.fr> References: <3A262A21.D7DBE062@alcove.fr> Message-ID: <975591123.3a2656d30a3e1@nirgal.your.mom> Quoting Christian Couder : > Turba should work without IMP, using the default mailer (that means > mailto links), but I couldn't find no config option and no config test > for this. In horde/config/registry.php: $__horde_registry['mail']['compose'] = 'imp'; Change that to 'default'. -chuck -- Charles Hagenbuch, "If you can't stand the heat, get out of the chicken!" - Baby Blues From christian@alcove.fr Thu Nov 30 18:05:43 2000 From: christian@alcove.fr (Christian Couder) Date: Thu, 30 Nov 2000 19:05:43 +0100 Subject: [turba] Turba and IMP References: <3A262A21.D7DBE062@alcove.fr> <975591123.3a2656d30a3e1@nirgal.your.mom> Message-ID: <3A2696F7.B8DCA708@alcove.fr> ---------------------- multipart/mixed attachment Chuck Hagenbuch wrote: > Quoting Christian Couder : > > > Turba should work without IMP, using the default mailer (that means > > mailto links), but I couldn't find no config option and no config tes= t > > for this. > > In horde/config/registry.php: > $__horde_registry['mail']['compose'] =3D 'imp'; > > Change that to 'default'. Thanks I did it and I also made some changes so that it works when there is no IMP. Here are the files. Regards, -- Christian COUDER christian@alcove.fr Ing=E9nieur Informatique Libre Alc=F4ve - http://www.alcove.fr/ ---------------------- multipart/mixed attachment A non-text attachment was scrubbed... Name: adv_search.php Type: application/x-httpd-php Size: 4915 bytes Desc: not available Url : http://lists.horde.org/archives/turba/attachments/5c30b406/adv_search.php ---------------------- multipart/mixed attachment
---------------------- multipart/mixed attachment ---------------------- multipart/mixed attachment
 
   
">

|
---------------------- multipart/mixed attachment-- From chuck@horde.org Fri Dec 1 02:48:47 2000 From: chuck@horde.org (Chuck Hagenbuch) Date: Thu, 30 Nov 2000 21:48:47 -0500 Subject: [turba] Improvement: advanced search In-Reply-To: <3A254CC2.BCCA6570@alcove.fr> References: <3A254CC2.BCCA6570@alcove.fr> Message-ID: <975638927.3a27118f9a90b@nirgal.your.mom> Quoting Christian Couder : > Anyway, here is some code to implement an advanced > search. It is not completely finished but it should work. It's certainly a good start! I've just cleaned it up a bit (match coding standards, seperate the templates out into their own directory, etc), and committed it to CVS. Thanks! -chuck -- Charles Hagenbuch, "If you can't stand the heat, get out of the chicken!" - Baby Blues From chuck@horde.org Fri Dec 1 03:36:20 2000 From: chuck@horde.org (Chuck Hagenbuch) Date: Thu, 30 Nov 2000 22:36:20 -0500 Subject: [turba] Turba and IMP In-Reply-To: <3A2696F7.B8DCA708@alcove.fr> References: <3A262A21.D7DBE062@alcove.fr> <975591123.3a2656d30a3e1@nirgal.your.mom> <3A2696F7.B8DCA708@alcove.fr> Message-ID: <975641780.3a271cb479435@nirgal.your.mom> Quoting Christian Couder : > Thanks I did it and I also made some changes so that > it works when there is no IMP. > > Here are the files. Heh, guess I should have looked at these before I made my first round of cleanups/commits. :) Oh well - these changes are now committed to CVS. Thanks again! (I'd like to find a cleaner way of doing the non-IMP stuff - ie, build it into the registry - but that can wait a bit). -chuck -- Charles Hagenbuch, "If you can't stand the heat, get out of the chicken!" - Baby Blues From christian@alcove.fr Wed Nov 29 18:36:50 2000 From: christian@alcove.fr (Christian Couder) Date: Wed, 29 Nov 2000 19:36:50 +0100 Subject: Improvement: advanced search Message-ID: <3A254CC2.BCCA6570@alcove.fr> ---------------------- multipart/mixed attachment Hi, A few month ago Stuart send a mail on this list to jump start this project. I answered to him that my company was willong to donate some GPL code and some of my time to help integrate the code in Turba. So I sent the code to Chuck and Jim but unfortunately a few days latter my company (Alc=F4ve) sent me for nearly 2 monthes to southern France to work in a client company... So now I am back and hopefully I will have more time to work on Turba. Anyway, here is some code to implement an advanced search. It is not completely finished but it should work. One thing that remains to be done though is to reload the adv_search.php page when the source select is used on this page to select another source, because I attached the new files. The adv_search.php file should be put in the "turba" directory and the other files in the "turba/templates/search" directory. Or perhaps you can create a new "turba/templates/adv_search" directory and put the .inc files in it (but you will need to modify adv_search.php a little). And here are some patches needed to make it work. The fisrt patch just add 2 new functions to the Turba_Source class and the second fix a problem when searching with many criterias. --- horde/turba/lib/Source.php 2000/10/26 21:33:13 1.14 +++ horde/turba/lib/Source.php 2000/11/29 18:14:12 @@ -277,6 +277,42 @@ list($object_key, $object_id) =3D each($this->toDriverKeys(array('__key' =3D> $object->getValue('__key'))))= ; $this->driver->removeObject($object_key, $object_id); } + + /** + * Returns the criterias available for this source except '__key'. + * + * @return An array containing the criterias. + */ + function get_criterias() + { + $criterias =3D array(); + foreach($this->map as $key =3D> $value) { + if($key !=3D "__key") { + $criterias[] =3D $key; + } + } + return $criterias; + } + + /** + * Returns an array made of the criterias set globally + * except '__key'. + * + * @return Array of criterias set globally. + */ + function get_globals_criterias() + { + $criterias =3D array(); + foreach($this->map as $key =3D> $value) { + if($key !=3D "__key") { + if(isset($GLOBALS[$key]) && $GLOBALS[$key] !=3D "") { + $criterias[$key] =3D $GLOBALS[$key]; + } + } + } + return $criterias; + } + } ?> --- horde/turba/lib/Driver/ldap.php 2000/10/30 18:16:53 1.9 +++ horde/turba/lib/Driver/ldap.php 2000/11/29 18:25:52 @@ -63,13 +63,14 @@ { // FIXME: implement strict_fields - $filter =3D ''; + $filter =3D '(&'; reset($criteria); while (list($key, $val) =3D each($criteria)) { - if ($filter !=3D '') $filter .=3D ', '; - $filter .=3D '(' . $key . '=3D*' . $val . '*)'; + // if ($filter !=3D '') $filter .=3D ', '; + $filter .=3D ' (' . $key . '=3D*' . $val . '*)'; } - + $filter .=3D ' )'; + /* * Four11 (at least) doesn't seem to return 'cn' if you don't ask * for 'sn' as well. Add 'sn' implicitly. Bye, -- Christian COUDER christian@alcove.fr Ing=E9nieur Informatique Libre Alc=F4ve - http://www.alcove.fr/ ---------------------- multipart/mixed attachment A non-text attachment was scrubbed... Name: adv_search.php Type: application/x-httpd-php Size: 4489 bytes Desc: not available Url : http://lists.horde.org/archives/turba/attachments/d1a00f2a/adv_search.php ---------------------- multipart/mixed attachment
---------------------- multipart/mixed attachment ---------------------- multipart/mixed attachment
 
   
">

|
---------------------- multipart/mixed attachment-- From christian@alcove.fr Thu Nov 30 10:21:21 2000 From: christian@alcove.fr (Christian Couder) Date: Thu, 30 Nov 2000 11:21:21 +0100 Subject: Turba and IMP Message-ID: <3A262A21.D7DBE062@alcove.fr> Hi, When I search the Netcenter Member Directory, and there are some results, I get this warning: Warning: Failed opening '../lib/../config/../imp/lib/js/open_compose_win.js' for inclusion (include_path=3D'') in ../lib/Registry.php on line 240 Turba should work without IMP, using the default mailer (that means mailto links), but I couldn't find no config option and no config test for this. If you don't mind I will add a config option and make it work without IMP. Regards, -- Christian COUDER christian@alcove.fr Ing=E9nieur Informatique Libre Alc=F4ve - http://www.alcove.fr/ From chuck@horde.org Thu Nov 30 13:32:03 2000 From: chuck@horde.org (Chuck Hagenbuch) Date: Thu, 30 Nov 2000 08:32:03 -0500 Subject: [turba] Turba and IMP In-Reply-To: <3A262A21.D7DBE062@alcove.fr> References: <3A262A21.D7DBE062@alcove.fr> Message-ID: <975591123.3a2656d30a3e1@nirgal.your.mom> Quoting Christian Couder : > Turba should work without IMP, using the default mailer (that means > mailto links), but I couldn't find no config option and no config test > for this. In horde/config/registry.php: $__horde_registry['mail']['compose'] = 'imp'; Change that to 'default'. -chuck -- Charles Hagenbuch, "If you can't stand the heat, get out of the chicken!" - Baby Blues From christian@alcove.fr Thu Nov 30 18:05:43 2000 From: christian@alcove.fr (Christian Couder) Date: Thu, 30 Nov 2000 19:05:43 +0100 Subject: [turba] Turba and IMP References: <3A262A21.D7DBE062@alcove.fr> <975591123.3a2656d30a3e1@nirgal.your.mom> Message-ID: <3A2696F7.B8DCA708@alcove.fr> ---------------------- multipart/mixed attachment Chuck Hagenbuch wrote: > Quoting Christian Couder : > > > Turba should work without IMP, using the default mailer (that means > > mailto links), but I couldn't find no config option and no config tes= t > > for this. > > In horde/config/registry.php: > $__horde_registry['mail']['compose'] =3D 'imp'; > > Change that to 'default'. Thanks I did it and I also made some changes so that it works when there is no IMP. Here are the files. Regards, -- Christian COUDER christian@alcove.fr Ing=E9nieur Informatique Libre Alc=F4ve - http://www.alcove.fr/ ---------------------- multipart/mixed attachment A non-text attachment was scrubbed... Name: adv_search.php Type: application/x-httpd-php Size: 4915 bytes Desc: not available Url : http://lists.horde.org/archives/turba/attachments/fba3d92f/adv_search.php ---------------------- multipart/mixed attachment
---------------------- multipart/mixed attachment ---------------------- multipart/mixed attachment
 
   
">

|
---------------------- multipart/mixed attachment-- From chuck@horde.org Fri Dec 1 02:48:47 2000 From: chuck@horde.org (Chuck Hagenbuch) Date: Thu, 30 Nov 2000 21:48:47 -0500 Subject: [turba] Improvement: advanced search In-Reply-To: <3A254CC2.BCCA6570@alcove.fr> References: <3A254CC2.BCCA6570@alcove.fr> Message-ID: <975638927.3a27118f9a90b@nirgal.your.mom> Quoting Christian Couder : > Anyway, here is some code to implement an advanced > search. It is not completely finished but it should work. It's certainly a good start! I've just cleaned it up a bit (match coding standards, seperate the templates out into their own directory, etc), and committed it to CVS. Thanks! -chuck -- Charles Hagenbuch, "If you can't stand the heat, get out of the chicken!" - Baby Blues From chuck@horde.org Fri Dec 1 03:36:20 2000 From: chuck@horde.org (Chuck Hagenbuch) Date: Thu, 30 Nov 2000 22:36:20 -0500 Subject: [turba] Turba and IMP In-Reply-To: <3A2696F7.B8DCA708@alcove.fr> References: <3A262A21.D7DBE062@alcove.fr> <975591123.3a2656d30a3e1@nirgal.your.mom> <3A2696F7.B8DCA708@alcove.fr> Message-ID: <975641780.3a271cb479435@nirgal.your.mom> Quoting Christian Couder : > Thanks I did it and I also made some changes so that > it works when there is no IMP. > > Here are the files. Heh, guess I should have looked at these before I made my first round of cleanups/commits. :) Oh well - these changes are now committed to CVS. Thanks again! (I'd like to find a cleaner way of doing the non-IMP stuff - ie, build it into the registry - but that can wait a bit). -chuck -- Charles Hagenbuch, "If you can't stand the heat, get out of the chicken!" - Baby Blues