Example #1
0
                    }
                    $s .= "</td></tr>\n";
                }
            }
            $s .= "</table>\n";
            return $s;
        }
        $api_only = !($included = file_exists(PHPGW_INCLUDE_ROOT . "/{$app}/setup/setup.inc.php"));
    }
} else {
    $api_only = True;
}
$GLOBALS['phpgw']->template->set_file(array('phpgw_about' => 'about.tpl', 'phpgw_about_unknown' => 'about_unknown.tpl'));
$GLOBALS['phpgw']->template->set_var('phpgw_logo', $GLOBALS['phpgw']->common->image('phpgwapi', 'logo'));
$GLOBALS['phpgw']->template->set_var('phpgw_version', 'phpGroupWare API version ' . $GLOBALS['phpgw_info']['server']['versions']['phpgwapi']);
if ($included) {
    $GLOBALS['phpgw']->template->set_var('phpgw_app_about', about_app('', ''));
    //about_app($GLOBALS['phpgw']->template,"phpgw_app_about");
} else {
    if ($api_only) {
        $GLOBALS['phpgw']->template->set_var('phpgw_app_about', '');
    } else {
        $GLOBALS['phpgw']->template->set_var('app_header', $app);
        $GLOBALS['phpgw']->template->parse('phpgw_app_about', 'phpgw_about_unknown');
    }
}
$title = isset($GLOBALS['phpgw_info']['apps'][$app]) ? $GLOBALS['phpgw_info']['apps'][$app]['title'] : 'phpGroupWare';
$GLOBALS['phpgw_info']['flags']['app_header'] = lang('About %1', $title);
$GLOBALS['phpgw']->common->phpgw_header(true);
$GLOBALS['phpgw']->template->pparse('out', 'phpgw_about');
$GLOBALS['phpgw']->common->phpgw_footer();
                $s .= "<tr><td colspan='2' align='left'>{$info['extra_untranslated']}</td></tr>\n";
            }
            $s .= "</table>\n";
            return $s;
        }
        $api_only = !($included = file_exists(PHPGW_INCLUDE_ROOT . "/{$app}/setup/setup.inc.php"));
    }
} else {
    $api_only = True;
}
$tpl = CreateObject('phpgwapi.Template', $GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi'));
$tpl->set_file(array('phpgw_about' => 'about.tpl', 'phpgw_about_unknown' => 'about_unknown.tpl'));
$tpl->set_var('phpgw_logo', $GLOBALS['phpgw']->common->image('phpgwapi', 'logo.gif'));
$tpl->set_var('phpgw_version', lang('eGroupWare API version %1', $GLOBALS['phpgw_info']['server']['versions']['phpgwapi']));
$tpl->set_var('phpgw_message', lang('%1eGroupWare%2 is a multi-user, web-based groupware suite written in %3PHP%4.', '<a href="http://www.eGroupWare.org" target="_blank">', '</a>', '<a href="http://www.php.net" target="_blank">', '</a>'));
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');
    }
}
$title = isset($GLOBALS['phpgw_info']['apps'][$app]) ? $GLOBALS['phpgw_info']['apps'][$app]['title'] : 'eGroupWare';
$GLOBALS['phpgw_info']['flags']['app_header'] = lang('About %1', $title);
$GLOBALS['phpgw']->common->phpgw_header();
$tpl->pparse('out', 'phpgw_about');
$GLOBALS['phpgw']->common->phpgw_footer();