[horde] Fwd: Horde: fix preference theme

Jan Schneider jan at horde.org
Tue Oct 19 07:36:49 PDT 2004



----- Weitergeleitete Nachricht von frank_lupo at email.it -----
    Datum: Tue, 19 Oct 2004 16:32:12 +0200
    Von: frank_lupo <frank_lupo at email.it>
Antwort an: frank_lupo <frank_lupo at email.it>
 Betreff: Horde: fix preference theme
      An: jan at horde.org

I fix the change theme in horde framework.



Index: prefs.php
===================================================================
RCS file: /repository/horde/lib/prefs.php,v
retrieving revision 1.16
diff -r1.16 prefs.php
121c121,122
<     $dh = @opendir($appbase . '/config/themes');
---
> 	$dirrootthemes=$appbase . '/themes';
>     $dh = @opendir($dirrootthemes);
125,133c126,140
<         while (($file = readdir($dh)) !== false) {
<             if (substr($file, 0, 5) != 'html-' && substr($file, -4) ==
'.php') {
<                 $theme_name = null;
<                 @include $appbase . '/config/themes/' . $file;
<                 if (!empty($theme_name)) {
<                     $theme_options[substr($file, 0, -4)] = $theme_name;
<                 }
<             }
<         }
---
>		while (($dir = readdir($dh)) !== false) {
>			if($dir != '.' && $dir != '..'){
>				$dirtheme = $dirrootthemes .'/' . $dir;
>				$dht = @opendir($dirtheme);
>				while (($file = readdir($dht)) !== false) {
>					if ($file == 'info.php') {
>						$theme_name = null;
>						@include $dirtheme . '/' . $file;
>						if (!empty($theme_name)) {
>							$theme_options[$dir] = $theme_name;
>						}
>					}
>				}
>		}
> 		}


 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f

 Sponsor:
 Fare shopping con EmailConto Risparmio è facile e conveniente: con un solo
click sconti tutti i tuoi acquisti!
Provalo adesso.
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=839&d=20041019




----- Ende der weitergeleiteten Nachricht -----


Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the horde mailing list