*
* -------------------------------------------- *
* 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. *
\**************************************************************************/
$mapa = array('Propriedade de'=>'NOME',
'Data de nascimento'=>'NASCIMENTO',
'Cpf'=>'CPF',
'e-mail'=>'EMAIL',
'Identidade(RG)'=>'RG',
'Orgão expedidor'=>'ORGAOUF',
'PIS/PASEP (NIS)'=>'NIS',
'Título de Eleitor'=>'TITULO',
'Zona'=>'ZONA',
'Seção'=>'SECAO',
'Cidade/UF'=>'TITULO_CIDADE_UF',
'Cadastro INSS'=>'CADINSS',
'Início Validade'=>'INICIO_VALIDADE',
'Término Validade'=>'FIM_VALIDADE',
'Outros dados'=>'SUBJECT');
$GLOBALS['phpgw_info']['flags'] = array(
'noheader' => True,
'nonavbar' => True,
'currentapp' => 'preferences'
);
include('../header.inc.php');
if(!isset($_SERVER['HTTPS']))
{
$GLOBALS['phpgw']->redirect_link('../preferences');
}
if(!$GLOBALS['phpgw_info']['server']['certificado']==1)
{
$GLOBALS['phpgw']->redirect_link('../preferences');
}
require_once('../seguranca/certificado.php');
$cert = new certificado;
if(!$cert->apresentado)
{
$GLOBALS['phpgw']->redirect_link('../preferences');
}
/*
if(!$cert->dados['CPF'])
{
$GLOBALS['phpgw']->redirect_link('../preferences');
}
*/
$GLOBALS['phpgw_info']['flags']['app_header'] = lang('Dados do Certificado Digital');
$GLOBALS['phpgw']->common->phpgw_header();
echo parse_navbar();
if($cert-apresentado)
{
echo '
Item: | Conteúdo: |
'.$item.' | '.$val.' |