source: trunk/help.php @ 5509

Revision 5509, 1.7 KB checked in by gustavo, 7 years ago (diff)

Ticket #2488 - Adicionar cabecalho de licenca em arquivos que nao o possuem

Line 
1<?php
2                /***************************************************************************
3                * Expresso Livre                                                           *
4                * http://www.expressolivre.org                                             *
5                * --------------------------------------------                             *
6                *  This program is free software; you can redistribute it and/or modify it *
7                *  under the terms of the GNU General Public License as published by the   *
8                *  Free Software Foundation; either version 2 of the License, or (at your  *
9                *  option) any later version.                                              *
10                \**************************************************************************/
11               
12$GLOBALS['phpgw_info']['flags'] = array(
13        'disable_Template_class' => True,
14        'login'                  => True,
15        'currentapp'             => 'login',
16        'noheader'               => True
17);
18        require_once('./header.inc.php');
19        $GLOBALS['phpgw_info']['server']['template_dir'] = PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info']['login_template_set'];
20        $tmpl = CreateObject('phpgwapi.Template', $GLOBALS['phpgw_info']['server']['template_dir']);
21        $tmpl->set_file(array('login_form' => 'help.tpl'));
22        $tmpl->set_var('website_title', $GLOBALS['phpgw_info']['server']['site_title']);
23    $tmpl->set_var('template_set',$GLOBALS['phpgw_info']['login_template_set']);
24        $GLOBALS['phpgw']->translation->init();
25        $GLOBALS['phpgw']->translation->add_app('loginhelp');
26        $GLOBALS['phpgw']->translation->add_app('loginhelp',$_GET['lang']);
27        if(lang('loginhelp_message') != 'loginhelp_message*')
28        {
29                $tmpl->set_var('login_help',lang('loginhelp_message'));
30        }
31        $tmpl->pfp('loginout','login_form');
32?>
33
Note: See TracBrowser for help on using the repository browser.