source: companies/serpro/mobile/home.php @ 903

Revision 903, 1.6 KB checked in by niltonneto, 15 years ago (diff)

Importacao inicial do Expresso do Serpro

Line 
1<?php
2
3        /**************************************************************************\
4        * eGroupWare                                                               *
5        * http://www.egroupware.org                                                *
6        * The file written by Mário César Kolling <mario.kolling@serpro.gov.br>    *
7        * --------------------------------------------                             *
8        *  This program is free software; you can redistribute it and/or modify it *
9        *  under the terms of the GNU General Public License as published by the   *
10        *  Free Software Foundation; either version 2 of the License, or (at your  *
11        *  option) any later version.                                              *
12        \**************************************************************************/
13
14        // Verifica se existe uma sessão
15        $phpgw_info = array();
16        $GLOBALS['sessionid'] = @$_GET['sessionid'] ? $_GET['sessionid'] : @$_COOKIE['sessionid'];
17        if (!isset($GLOBALS['sessionid']) || !$GLOBALS['sessionid']) {
18                Header('Location: ./login.php?cd=10');
19                exit;
20        }
21
22        // Define as flas da aplicação mobile
23        $GLOBALS['phpgw_info']['flags'] = array(
24                'noheader'                => True,
25                'nonavbar'                => True,
26                'currentapp'              => 'mobile',
27                //'disable_Template_class'  => True,
28                'enable_network_class'    => True,
29                'enable_contacts_class'   => True,
30                'enable_nextmatchs_class' => True
31        );
32
33        include('../header.inc.php');
34        include('./mobile_header.inc.php');
35        $accountId = $GLOBALS['phpgw_info']['user']['account_id'];
36
37        // executa a função start_prefered_app()
38        start_prefered_app();
39
40        // print_navbar()
41
42
43?>
44
Note: See TracBrowser for help on using the repository browser.