[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: addressbook/inc hook_about.inc.php,1.3,1.4
From: |
Miles Lott <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: addressbook/inc hook_about.inc.php,1.3,1.4 |
Date: |
Mon, 18 Mar 2002 21:58:15 -0500 |
Update of /cvsroot/phpgroupware/addressbook/inc
In directory subversions:/tmp/cvs-serv3341
Modified Files:
hook_about.inc.php
Log Message:
Hmm, that was an old one...
Index: hook_about.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/addressbook/inc/hook_about.inc.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** hook_about.inc.php 25 Sep 2001 22:57:21 -0000 1.3
--- hook_about.inc.php 19 Mar 2002 02:58:13 -0000 1.4
***************
*** 1,38 ****
<?php
function about_app()
{
! $appname = 'addressbook';
!
! $imgfile = $GLOBALS['phpgw']->common->get_image_dir($appname) .
SEP . $appname . '.gif';
! if (file_exists($imgfile))
! {
! $imgpath =
$GLOBALS['phpgw']->common->get_image_path($appname) . SEP . $appname . '.gif';
! }
! else
! {
! $imgpath =
$GLOBALS['phpgw']->common->get_image_path($appname) . SEP . 'navbar.gif';
! }
!
! $browser = CreateObject('phpgwapi.browser');
! $os = $browser->get_platform();
! $agent = ucfirst(strtolower($browser->get_agent()));
! $version = $browser->get_version();
!
! $tpl =
CreateObject('phpgwapi.Template',$GLOBALS['phpgw']->common->get_tpl_dir('addressbook'));
!
! $tpl->set_file(array('body' => 'about.tpl'));
!
! $tpl->set_var("about_addressbook",'Addressbook is the
phpgroupware default contact application. It makes use of the phpgroupware
contacts class to store and retrieve contact information via SQL or LDAP.');
!
! $tpl->set_var('url',$GLOBALS['phpgw']->link('/addressbook'));
! $tpl->set_var('image',$imgpath);
! $tpl->set_var('alt',lang('addressbook'));
! $tpl->set_var('version',$version);
! $tpl->set_var('agent',$agent);
! $tpl->set_var('platform',$os);
! $tpl->set_var('appear',lang('You appear to be running'));
! $tpl->set_var('on',lang('on'));
! return $tpl->parse('out','body');
}
--- 1,21 ----
<?php
+ /**************************************************************************\
+ * phpGroupWare *
+ * http://www.phpgroupware.org *
+ * Written by Mark Peters <address@hidden> *
+ * -------------------------------------------- *
+ * 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$ */
function about_app()
{
! $GLOBALS['tpl']->set_var('developers','Joseph
Engo address@hidden<br>Miles Lott address@hidden');
! $GLOBALS['tpl']->set_var('description',lang('Addressbook is the
phpgroupware default contact application. <br>It makes use of the phpgroupware
contacts class to store and retrieve contact information via SQL or LDAP.'));
! return $GLOBALS['tpl']->fp('out','about');
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: addressbook/inc hook_about.inc.php,1.3,1.4,
Miles Lott <address@hidden> <=