2001-04-08 10:19:38 +02:00
< ? php
function about_app ()
{
$appname = 'addressbook' ;
2001-09-03 14:00:38 +02:00
$imgfile = $GLOBALS [ 'phpgw' ] -> common -> get_image_dir ( $appname ) . SEP . $appname . '.gif' ;
2001-04-08 10:19:38 +02:00
if ( file_exists ( $imgfile ))
{
2001-09-03 14:00:38 +02:00
$imgpath = $GLOBALS [ 'phpgw' ] -> common -> get_image_path ( $appname ) . SEP . $appname . '.gif' ;
2001-04-08 10:19:38 +02:00
}
else
{
2001-09-26 00:57:21 +02:00
$imgpath = $GLOBALS [ 'phpgw' ] -> common -> get_image_path ( $appname ) . SEP . 'navbar.gif' ;
2001-04-08 10:19:38 +02:00
}
$browser = CreateObject ( 'phpgwapi.browser' );
$os = $browser -> get_platform ();
$agent = ucfirst ( strtolower ( $browser -> get_agent ()));
$version = $browser -> get_version ();
2001-09-03 14:00:38 +02:00
$tpl = CreateObject ( 'phpgwapi.Template' , $GLOBALS [ 'phpgw' ] -> common -> get_tpl_dir ( 'addressbook' ));
2001-04-08 10:19:38 +02:00
2001-09-03 14:00:38 +02:00
$tpl -> set_file ( array ( 'body' => 'about.tpl' ));
2001-04-08 10:19:38 +02:00
2001-04-08 10:22:36 +02:00
$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.' );
2001-04-08 10:19:38 +02:00
2001-09-03 14:00:38 +02:00
$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' ));
2001-04-08 10:19:38 +02:00
2001-09-03 14:00:38 +02:00
return $tpl -> parse ( 'out' , 'body' );
2001-04-08 10:19:38 +02:00
}