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$ */
|
|
|
|
|
2001-12-05 17:19:12 +01:00
|
|
|
$GLOBALS['phpgw_info'] = array();
|
2001-09-26 00:55:33 +02:00
|
|
|
$GLOBALS['phpgw_info']['flags']['currentapp'] = 'about';
|
|
|
|
$GLOBALS['phpgw_info']['flags']['disable_Template_class'] = True;
|
|
|
|
include('header.inc.php');
|
2000-12-23 01:45:58 +01:00
|
|
|
|
2001-09-26 00:55:33 +02:00
|
|
|
$app = $HTTP_GET_VARS['app'];
|
2001-04-08 09:50:20 +02:00
|
|
|
if ($app)
|
|
|
|
{
|
2002-01-02 15:33:05 +01:00
|
|
|
$included = $GLOBALS['phpgw']->hooks->single('about',$app);
|
2001-04-08 09:50:20 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$api_only = True;
|
|
|
|
}
|
2000-12-23 01:45:58 +01:00
|
|
|
|
2001-09-26 00:55:33 +02:00
|
|
|
$tpl = CreateObject('phpgwapi.Template',$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi'));
|
2001-04-08 09:50:20 +02:00
|
|
|
$tpl->set_file(array(
|
2001-09-26 00:55:33 +02:00
|
|
|
'phpgw_about' => 'about.tpl',
|
|
|
|
'phpgw_about_unknown' => 'about_unknown.tpl'
|
2001-04-08 09:50:20 +02:00
|
|
|
));
|
2000-12-23 01:45:58 +01:00
|
|
|
|
2001-09-26 00:55:33 +02:00
|
|
|
$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']);
|
2001-04-08 09:50:20 +02:00
|
|
|
if ($included)
|
|
|
|
{
|
2001-09-26 00:55:33 +02:00
|
|
|
$tpl->set_var('phpgw_app_about',about_app('',''));
|
2001-04-08 09:50:20 +02:00
|
|
|
//about_app($tpl,"phpgw_app_about");
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if ($api_only)
|
|
|
|
{
|
2001-09-26 00:55:33 +02:00
|
|
|
$tpl->set_var('phpgw_app_about','');
|
2001-04-08 09:50:20 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2001-09-26 00:55:33 +02:00
|
|
|
$tpl->set_var('app_header',$app);
|
|
|
|
$tpl->parse('phpgw_app_about','phpgw_about_unknown');
|
2001-04-08 09:50:20 +02:00
|
|
|
}
|
|
|
|
}
|
2001-02-04 12:08:53 +01:00
|
|
|
|
2001-09-26 00:55:33 +02:00
|
|
|
$tpl->pparse('out','phpgw_about');
|
2001-04-08 09:50:20 +02:00
|
|
|
?>
|