AW: [horde] Patches for virtual hosting with multiple themes perVH

Udo Schubert news4dadirtyluk at gmx.de
Tue Mar 11 12:50:08 PST 2003


>> The first one (css) uses $_SERVER['HTTP_HOST'] to determine which
>> html.php file to load, doing fallback to other files as needed.  This is
>> to help sites with virtual hosting set up multiple looks and feels (for
>> ALL horde apps AFAICT) depending on the name the horde app(s) is (are)
>> hit with.
>
>This would be done *much* more easily (and without any patches) with a hook
>that set the 'theme' preference based on HTTP_HOST.

if you are using imp too,then maybe you could use the realm field in
the server.conf to determine which html.php to use... (if you use this
field,but i think this should be set on vh setups ?!)

if i understand that right,then you could store the 'theme' preference for
each vh with the according realm appended.
then you 'only' had to change the part where the theme is selected from
the table and,of course,where it is being set,right?possible? who knows...

just some thoughts... ;)

good luck

   udo



More information about the horde mailing list