phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: phpsysinfo index.php,1.2,1.2.2.1


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpsysinfo index.php,1.2,1.2.2.1
Date: Sun, 24 Nov 2002 17:19:44 -0500

Update of /cvsroot/phpgroupware/phpsysinfo
In directory subversions:/tmp/cvs-serv20494

Modified Files:
      Tag: Version-0_9_14-branch
        index.php 
Log Message:
a few fixes to get it working

Index: index.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpsysinfo/index.php,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -C2 -r1.2 -r1.2.2.1
*** index.php   16 Dec 2001 23:35:11 -0000      1.2
--- index.php   24 Nov 2002 22:19:42 -0000      1.2.2.1
***************
*** 19,23 ****
  
        $lng = $GLOBALS['phpgw_info']['user']['preferences']['common']['lang'];
!       $template = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['theme'];
  
        // default to english, but this is negotiable.
--- 19,23 ----
  
        $lng = $GLOBALS['phpgw_info']['user']['preferences']['common']['lang'];
!       $template = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['template_set'];
  
        // default to english, but this is negotiable.
***************
*** 32,45 ****
  
        // figure out if we got a template passed in the url
!       if (!(isset($template) && file_exists("templates/$template")))
        {
                // default template we should use if we don't get a argument.
!               define('TEMPLATE_SET', 'default');
!               $template = 'default';
!       }
!       else
!       {
!               define('TEMPLATE_SET', $template);
        }
  
        // fire up the template engine
--- 32,41 ----
  
        // figure out if we got a template passed in the url
!       if (!(isset($template) && file_exists("templates/$template/box.tpl")))
        {
                // default template we should use if we don't get a argument.
!               $template = 'idsociety';
        }
+       define('TEMPLATE_SET', $template);
  
        // fire up the template engine
***************
*** 67,72 ****
        #require('includes/system_header.php');
  
!       #$tpl->set_var('title', $text['title'] . ': ' . sys_chostname() . ' (' 
. sys_ip_addr() . ')');
! 
        require('includes/table_vitals.php');
        require('includes/table_network.php');    
--- 63,67 ----
        #require('includes/system_header.php');
  
!       $tpl->set_var('title', $text['title'] . ': ' . sys_chostname() . ' (' . 
sys_ip_addr() . ')');
        require('includes/table_vitals.php');
        require('includes/table_network.php');    





reply via email to

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