egroupware_official/about.php

70 lines
2.1 KiB
PHP
Raw Normal View History

2000-12-23 01:45:58 +01:00
<?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$ */
2000-12-23 01:45:58 +01:00
$GLOBALS['phpgw_info'] = array();
$GLOBALS['phpgw_info']['flags']['currentapp'] = 'about';
include('header.inc.php');
2000-12-23 01:45:58 +01:00
$app = $HTTP_GET_VARS['app'];
2002-10-04 01:16:08 +02:00
$GLOBALS['phpgw']->xslttpl->add_file(array('about'));
2000-12-23 01:45:58 +01:00
if ($app == 'phpGroupWare' || $app == 'about')
2001-04-08 09:50:20 +02:00
{
$app = 'phpgwapi';
2001-04-08 09:50:20 +02:00
}
2002-10-27 22:30:53 +01:00
$setup_file = PHPGW_INCLUDE_ROOT . '/' . $app . '/setup/setup.inc.php';
2001-02-04 12:08:53 +01:00
if (@file_exists($setup_file))
{
include($setup_file);
2002-10-27 22:30:53 +01:00
$fields = array
(
'version',
'description',
'note',
'author',
'license',
'based_on',
2002-10-27 22:30:53 +01:00
'based_on_url',
'maintainer'
);
while (list(,$field) = each($fields))
{
$app_data[$field] = $setup_info[$app][$field];
}
}
2002-10-27 22:30:53 +01:00
$data = array
(
2002-10-03 05:10:24 +02:00
'phpgw_logo' => $GLOBALS['phpgw']->common->get_image_path('phpgwapi'),
2002-10-27 22:30:53 +01:00
'lang_url_statustext' => lang('phpGroupWare --> homepage'),
2002-10-03 05:10:24 +02:00
'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'),
2002-10-27 22:30:53 +01:00
'about_app' => $app_data + array
(
'title' => lang($app),
'icon' => $GLOBALS['phpgw']->common->image($app,'navbar'),
'lang_version' => lang('version'),
'lang_author' => lang('author'),
'lang_based_on' => lang('based on'),
'lang_maintainer' => lang('maintainer'),
'lang_license' => lang('license')
)
);
2002-10-26 02:33:22 +02:00
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('about_data' => $data));
2001-04-08 09:50:20 +02:00
?>