egroupware/about.php

46 lines
1.7 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. *
\**************************************************************************/
2001-03-07 00:39:00 +01:00
2000-12-23 01:45:58 +01:00
/* $Id$ */
$phpgw_info["flags"]["currentapp"] = "about";
include("header.inc.php");
if ($app) {
2000-12-23 04:23:36 +01:00
$included = $phpgw->common->hook_single("about",$app);
2000-12-23 01:45:58 +01:00
} else {
$api_only = True;
}
2001-01-13 05:33:53 +01:00
$tpl = CreateObject('phpgwapi.Template',$phpgw->common->get_tpl_dir('phpgwapi'));
2000-12-23 01:45:58 +01:00
$tpl->set_file(array("phpgw_about" => "about.tpl",
"phpgw_about_unknown" => "about_unknown.tpl"
));
2001-01-13 05:33:53 +01:00
$tpl->set_var("webserver_url",$phpgw->common->get_image_path('phpgwapi'));
2000-12-23 01:45:58 +01:00
$tpl->set_var("phpgw_version","phpGroupWare API version " . $phpgw_info["server"]["versions"]["phpgwapi"]);
if ($included) {
$tpl->set_var("phpgw_app_about",about_app("",""));
//about_app($tpl,"phpgw_app_about");
} else {
if ($api_only) {
$tpl->set_var("phpgw_app_about","");
} else {
$tpl->set_var("app_header",$app);
$tpl->parse("phpgw_app_about","phpgw_about_unknown");
}
}
$tpl->pparse("out","phpgw_about");
2001-01-10 11:53:43 +01:00
$phpgw->common->phpgw_footer();
2001-02-04 12:08:53 +01:00
?>