[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgroupware about.php,1.15,1.16
From: |
Bettina Gille <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgroupware about.php,1.15,1.16 |
Date: |
Wed, 02 Oct 2002 22:47:02 -0400 |
Update of /cvsroot/phpgroupware/phpgroupware
In directory subversions:/tmp/cvs-serv31652
Modified Files:
about.php
Log Message:
fixed about function plus update to use xslt
Index: about.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgroupware/about.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** about.php 28 Sep 2002 15:20:17 -0000 1.15
--- about.php 3 Oct 2002 02:46:59 -0000 1.16
***************
*** 1,56 ****
<?php
! /**************************************************************************\
! * phpGroupWare *
! * http://www.phpgroupware.org *
! * -------------------------------------------- *
! * This program is free software; you can redistribute it and/or modify it *
! * under the terms of the GNU General Public License as published by the *
! * Free Software Foundation; either version 2 of the License, or (at your *
! * option) any later version. *
! \**************************************************************************/
!
! /* $Id$ */
$GLOBALS['phpgw_info'] = array();
$GLOBALS['phpgw_info']['flags']['currentapp'] = 'about';
- $GLOBALS['phpgw_info']['flags']['disable_Template_class'] = True;
include('header.inc.php');
$app = $HTTP_GET_VARS['app'];
if ($app)
{
$included = $GLOBALS['phpgw']->hooks->single('about',$app);
}
- else
- {
- $api_only = True;
- }
! $tpl =
CreateObject('phpgwapi.Template',$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi'));
! $tpl->set_file(array(
! 'phpgw_about' => 'about.tpl',
! 'phpgw_about_unknown' => 'about_unknown.tpl'
! ));
-
$tpl->set_var('webserver_url',$GLOBALS['phpgw']->common->get_image_path('phpgwapi'));
- $tpl->set_var('phpgw_version','phpGroupWare API version ' .
$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']);
if ($included)
{
! $tpl->set_var('phpgw_app_about',about_app('',''));
! //about_app($tpl,"phpgw_app_about");
! }
! else
! {
! if ($api_only)
! {
! $tpl->set_var('phpgw_app_about','');
! }
! else
! {
! $tpl->set_var('app_header',$app);
! $tpl->parse('phpgw_app_about','phpgw_about_unknown');
! }
}
! $tpl->pparse('out','phpgw_about');
?>
--- 1,43 ----
<?php
!
/**************************************************************************\
! * phpGroupWare
*
! * http://www.phpgroupware.org
*
! * --------------------------------------------
*
! * This program is free software; you can redistribute it and/or modify
it *
! * under the terms of the GNU General Public License as published by
the *
! * Free Software Foundation; either version 2 of the License, or (at
your *
! * option) any later version.
*
!
\**************************************************************************/
! /* $Id$ */
$GLOBALS['phpgw_info'] = array();
$GLOBALS['phpgw_info']['flags']['currentapp'] = 'about';
include('header.inc.php');
$app = $HTTP_GET_VARS['app'];
+
if ($app)
{
$included = $GLOBALS['phpgw']->hooks->single('about',$app);
}
! $tpl =
CreateObject('phpgwapi.xslttemplates',$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi','default'));
! $tpl->add_file(array('about'));
if ($included)
{
! $app_data = about_app();
}
! $data = array
! (
! 'phpgw_logo' =>
$GLOBALS['phpgw']->common->get_image_path('phpgwapi'),
! 'lang_version' => lang('version'),
! 'phpgw_version' => 'phpGroupWare API ' .
$GLOBALS['phpgw_info']['server']['versions']['phpgwapi'],
! 'phpgw_descr' => lang('is a multi-user, web-based groupware
suite written in PHP'),
! 'about_app' => $app_data
! );
!
! $tpl->set_var('about',$data);
! $tpl->pparse();
?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgroupware about.php,1.15,1.16,
Bettina Gille <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: phpgwapi/templates/default about.xsl,1.3,1.4 about.tpl,1.4,NONE about_app.tpl,1.2,NONE
- Next by Date:
[Phpgroupware-cvs] CVS: phpgwapi/inc class.common.inc.php,1.161,1.162
- Previous by thread:
[Phpgroupware-cvs] CVS: phpgwapi/templates/default about.xsl,1.3,1.4 about.tpl,1.4,NONE about_app.tpl,1.2,NONE
- Next by thread:
[Phpgroupware-cvs] CVS: phpgwapi/inc class.common.inc.php,1.161,1.162
- Index(es):