mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-11 17:20:53 +01:00
39 lines
1.3 KiB
PHP
39 lines
1.3 KiB
PHP
<?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');
|
|
}
|