source: branches/2.0/help.php @ 1863

Revision 1863, 1007 bytes checked in by niltonneto, 14 years ago (diff)

Ticket #830 - Corrigido problema de exibição do link Ajuda no login.

Line 
1<?php
2
3$GLOBALS['phpgw_info']['flags'] = array(
4        'disable_Template_class' => True,
5        'login'                  => True,
6        'currentapp'             => 'login',
7        'noheader'               => True
8);
9        require_once('./header.inc.php');
10        $GLOBALS['phpgw_info']['server']['template_dir'] = PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info']['login_template_set'];
11        $tmpl = CreateObject('phpgwapi.Template', $GLOBALS['phpgw_info']['server']['template_dir']);
12        $tmpl->set_file(array('login_form' => 'help.tpl'));
13        $tmpl->set_var('website_title', $GLOBALS['phpgw_info']['server']['site_title']);
14    $tmpl->set_var('template_set',$GLOBALS['phpgw_info']['login_template_set']);
15        $GLOBALS['phpgw']->translation->init();
16        $GLOBALS['phpgw']->translation->add_app('loginhelp');
17        $GLOBALS['phpgw']->translation->add_app('loginhelp',$_GET['lang']);
18        if(lang('loginhelp_message') != 'loginhelp_message*')
19        {
20                $tmpl->set_var('login_help',lang('loginhelp_message'));
21        }
22        $tmpl->pfp('loginout','login_form');
23?>
24
Note: See TracBrowser for help on using the repository browser.