[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgroupware about.php,1.19,1.20
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgroupware about.php,1.19,1.20 |
Date: |
Sun, 27 Oct 2002 14:10:47 -0500 |
Update of /cvsroot/phpgroupware/phpgroupware
In directory subversions:/tmp/cvs-serv12381
Modified Files:
about.php
Log Message:
ubdate to new about-system (all infos are in setup.inc.php, no more hook_about)
Index: about.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgroupware/about.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** about.php 26 Oct 2002 00:28:02 -0000 1.19
--- about.php 27 Oct 2002 19:10:45 -0000 1.20
***************
*** 17,32 ****
$app = $HTTP_GET_VARS['app'];
- if ($app)
- {
- $included = $GLOBALS['phpgw']->hooks->single('about',$app);
- }
-
$GLOBALS['phpgw']->xslttpl->add_file(array('about'));
! if ($included)
{
! $app_data = about_app();
}
$data = array
(
--- 17,53 ----
$app = $HTTP_GET_VARS['app'];
$GLOBALS['phpgw']->xslttpl->add_file(array('about'));
! if ($app == 'phpGroupWare' || $app == 'about')
{
! $app = 'phpgwapi';
}
+ $app_data['title'] = str_replace('- ','-',ucwords(str_replace('_','-
',$app)));
+ $app_data['icon'] = $GLOBALS['phpgw']->common->image($app,'navbar');
+
+ $setup_file = PHPGW_INCLUDE_ROOT . '/' . $app . '/setup/setup.inc.php';
+ if (@file_exists($setup_file))
+ {
+ include($setup_file);
+
+ $fields = array(
+ 'version',
+ 'description',
+ 'note',
+ 'author',
+ 'maintainer',
+ 'maintainer_email',
+ 'license',
+ 'based_on',
+ 'based_on_url'
+ );
+ while (list(,$field) = each($fields))
+ {
+ $app_data[$field] = $setup_info[$app][$field];
+ }
+ $app_data['maintainer_email'] = ereg_replace('(address@hidden)',
+ '<a
href="mailto:\\1">\\1</a>',$app_data['maintainer_email']);
+ }
$data = array
(
***************
*** 36,43 ****
'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
);
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('about_data' =>
$data));
- //$GLOBALS['phpgw']->xslttpl->pparse();
?>
--- 57,69 ----
'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 + array(
! 'lang_version' => lang('version'),
! 'lang_written_by' => lang('written by'),
! 'lang_based_on' => lang('based on'),
! 'lang_maintainer' => lang('maintainer'),
! 'lang_license' => lang('license')
! )
);
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('about_data' =>
$data));
?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgroupware about.php,1.19,1.20,
Ralf Becker <address@hidden> <=