phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: sitemgr/sitemgr-site index.php,1.9,1.10


From: Michael Totschnig <address@hidden>
Subject: [Phpgroupware-cvs] CVS: sitemgr/sitemgr-site index.php,1.9,1.10
Date: Fri, 30 May 2003 00:01:45 -0400

Update of /cvsroot/phpgroupware/sitemgr/sitemgr-site
In directory subversions:/tmp/cvs-serv4975/sitemgr-site

Modified Files:
        index.php 
Log Message:
make sitemgr capable of handling versions


Index: index.php
===================================================================
RCS file: /cvsroot/phpgroupware/sitemgr/sitemgr-site/index.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** index.php   22 May 2003 02:36:54 -0000      1.9
--- index.php   30 May 2003 04:01:43 -0000      1.10
***************
*** 22,30 ****
                'nonavbar'   => True
        );
-       require_once('./security.inc.php');
  
        if (file_exists('./config.inc.php'))
        {
!               require_once('./config.inc.php');
        }
        else
--- 22,29 ----
                'nonavbar'   => True
        );
  
        if (file_exists('./config.inc.php'))
        {
!               include('./config.inc.php');
        }
        else
***************
*** 33,52 ****
        }
  
!       require_once('./functions.inc.php');
! 
! 
!       $Common_BO = CreateObject('sitemgr.Common_BO');
!       $Common_BO->sites->set_currentsite($site_url);
!       $sitemgr_info = 
array_merge($sitemgr_info,$Common_BO->sites->current_site);
!       $sitemgr_info['sitelanguages'] = 
explode(',',$sitemgr_info['site_languages']);
  
        include './inc/class.ui.inc.php';
        include './inc/class.sitebo.inc.php';
        include './inc/class.Template3.inc.php';
! 
!       $objui = new ui;
!       //I move the creation of the bo here, so that in the template we have 
access to it without creating it a second time
        $objbo = new sitebo;
        $objbo->setsitemgrPreferredLanguage();
  
        $page = CreateObject('sitemgr.Page_SO');
--- 32,48 ----
        }
  
!       include('./functions.inc.php');
  
        include './inc/class.ui.inc.php';
        include './inc/class.sitebo.inc.php';
        include './inc/class.Template3.inc.php';
!       
!       $Common_BO = CreateObject('sitemgr.Common_BO');
        $objbo = new sitebo;
+       $Common_BO->sites->set_currentsite($site_url,$objbo->getmode());
+       $sitemgr_info = 
array_merge($sitemgr_info,$Common_BO->sites->current_site);
+       $sitemgr_info['sitelanguages'] = 
explode(',',$sitemgr_info['site_languages']);
        $objbo->setsitemgrPreferredLanguage();
+       $objui = new ui;
  
        $page = CreateObject('sitemgr.Page_SO');





reply via email to

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