source: trunk/help.php @ 2364

Revision 2364, 1.7 KB checked in by amuller, 12 years ago (diff)

Ticket #1008 - Adicionando licença aos arquivos php

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