egroupware/help.php

44 lines
1.4 KiB
PHP
Raw Normal View History

2002-11-30 02:56:08 +01:00
<?php
/**************************************************************************\
* phpGroupWare - help *
* start file for the phpGroupWare help system *
* http://www.phpgroupware.org *
* Written by Bettina Gille [ceb@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. *
\**************************************************************************/
/* $Id$ */
$GLOBALS['phpgw_info'] = array();
2002-12-23 01:57:08 +01:00
$app = $HTTP_GET_VARS['app'];
if (!$app)
{
$app = 'help';
}
2002-11-30 02:56:08 +01:00
$GLOBALS['phpgw_info']['flags'] = array
(
'headonly' => True,
2002-12-23 01:57:08 +01:00
'currentapp' => $app
2002-11-30 02:56:08 +01:00
);
include('header.inc.php');
$GLOBALS['phpgw']->help = CreateObject('phpgwapi.help_helper');
2002-12-23 01:57:08 +01:00
if ($app == 'help')
{
$GLOBALS['phpgw']->hooks->process('help',array('manual'));
}
else
{
$GLOBALS['phpgw']->hooks->single('help',$app);
}
2002-11-30 02:56:08 +01:00
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',$GLOBALS['phpgw']->help->output);
?>