More formatting

This commit is contained in:
Miles Lott 2001-04-08 07:50:20 +00:00
parent 321fe4def2
commit b872330d12

View File

@ -11,35 +11,44 @@
/* $Id$ */ /* $Id$ */
$phpgw_info["flags"]["currentapp"] = "about"; $phpgw_info["flags"]["currentapp"] = "about";
include("header.inc.php"); include("header.inc.php");
if ($app) { if ($app)
$included = $phpgw->common->hook_single("about",$app); {
} else { $included = $phpgw->common->hook_single("about",$app);
$api_only = True; }
} else
{
$tpl = CreateObject('phpgwapi.Template',$phpgw->common->get_tpl_dir('phpgwapi')); $api_only = True;
$tpl->set_file(array("phpgw_about" => "about.tpl", }
"phpgw_about_unknown" => "about_unknown.tpl"
));
$tpl->set_var("webserver_url",$phpgw->common->get_image_path('phpgwapi')); $tpl = CreateObject('phpgwapi.Template',$phpgw->common->get_tpl_dir('phpgwapi'));
$tpl->set_var("phpgw_version","phpGroupWare API version " . $phpgw_info["server"]["versions"]["phpgwapi"]); $tpl->set_file(array(
if ($included) { "phpgw_about" => "about.tpl",
$tpl->set_var("phpgw_app_about",about_app("","")); "phpgw_about_unknown" => "about_unknown.tpl"
//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"); $tpl->set_var("webserver_url",$phpgw->common->get_image_path('phpgwapi'));
$phpgw->common->phpgw_footer(); $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");
$phpgw->common->phpgw_footer();
?>