phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: phpgwapi/inc class.common.inc.php,1.123.2.9.2.2


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.common.inc.php,1.123.2.9.2.2,1.123.2.9.2.3
Date: Fri, 18 Apr 2003 10:36:01 -0400

Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv1828/phpgwapi/inc

Modified Files:
      Tag: Version-0_9_16-branch
        class.common.inc.php 
Log Message:
imported Pim Snel's idots template

Index: class.common.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.common.inc.php,v
retrieving revision 1.123.2.9.2.2
retrieving revision 1.123.2.9.2.3
diff -C2 -r1.123.2.9.2.2 -r1.123.2.9.2.3
*** class.common.inc.php        5 Apr 2003 22:49:36 -0000       1.123.2.9.2.2
--- class.common.inc.php        18 Apr 2003 14:35:27 -0000      1.123.2.9.2.3
***************
*** 596,611 ****
                @function list_themes
                @abstract list themes available
                */
                function list_themes()
                {
!                       $dh = opendir(PHPGW_SERVER_ROOT . '/phpgwapi/themes');
!                       while ($file = readdir($dh))
                        {
!                               if (eregi("\.theme$", $file))
                                {
!                                       $list[] = 
substr($file,0,strpos($file,'.'));
                                }
                        }
!                       //$dh->close();
                        reset ($list);
                        return $list;
--- 596,628 ----
                @function list_themes
                @abstract list themes available
+               @note themes can either be css file like in HEAD (if the 
template has a css-dir) \
+                       or ordinary .14 themes-files
                */
                function list_themes()
                {
!                       $tpl_dir = $this->get_tpl_dir('phpgwapi');
! 
!                       if ($dh = @opendir($tpl_dir . SEP . 'css'))
                        {
!                               while ($file = readdir($dh))
                                {
!                                       if (eregi("\.css$", $file) && $file != 
'phpgw.css')
!                                       {
!                                               $list[] = 
substr($file,0,strpos($file,'.'));
!                                       }
                                }
                        }
!                       else
!                       {
!                               $dh = opendir(PHPGW_SERVER_ROOT . 
'/phpgwapi/themes');
!                               while ($file = readdir($dh))
!                               {
!                                       if (eregi("\.theme$", $file))
!                                       {
!                                               $list[] = 
substr($file,0,strpos($file,'.'));
!                                       }
!                               }
!                       }
!                       closedir($dh);
                        reset ($list);
                        return $list;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]