| Server IP : 20.75.53.88 / Your IP : 216.73.217.72 [ Web Server : Apache System : Linux VMRALP-3 4.4.0-256-generic #290~14.04.1-Ubuntu SMP Thu Jun 20 09:24:50 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29+esm15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Domains : 3 Domains MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/ouvidoria/obidos/restrito/index/ |
Upload File : |
<?php
require_once("../inc/security.php");
$login = $_POST["login"];
$password = $_POST["password"];
$tipo = $_REQUEST['t'];
$uid = getSession('uid');
$msg = "";
$i = execQuery("select * from sis_usuario where idusuario=$uid");
$img = mysql_fetch_array($i);
//usado pra troca de sic, chamado no arquivo topo atrav�s do select de sics
$sic = $_GET['sic'];
if (!empty($sic))
if (!atualizaUnidadeUsuario($sic))
echo "<script>alert('est� n�o pertence ao Ouvidoria que est� tentando acessar!');</script>";
//----------------------
if (usaRecaptcha($login))
$usarecap = true;
else
$usarecap = false;
if ($_POST['btsub']) {
if ($usarecap) {
$error = null;
$recaptcha_ok = (strtoupper($_POST["palavra"])==strtoupper($_SESSION["palavra"]));
} else
$recaptcha_ok = true;
if ($recaptcha_ok) {
if (autentica($login, $password, $tipo)) {
Redirect("../index");
} else {
$msg = "<font color='red'>Erro: falha no login.</font>";
$usarecap = true;
}
} else
$msg = "<font color='red'>Erro: falha no login.</font>";
}
//ESTATISTICAS
$ano = date('Y');
$sql1 = "select * from lda_solicitacao where anoprotocolo = $ano";
$total = execQuery($sql1);
$tot = mysql_num_rows($total);
$sql2 = "select * from lda_solicitacao where anoprotocolo = $ano and situacao='R' ";
$total = execQuery($sql2);
$ate = mysql_num_rows($total);
$sql3 = "select * from lda_solicitacao where anoprotocolo = $ano and situacao='A' ";
$total = execQuery($sql3);
$abr = mysql_num_rows($total);
$sql4 = "select * from lda_solicitacao where anoprotocolo = $ano and situacao='N' ";
$total = execQuery($sql4);
$neg = mysql_num_rows($total);
include("../inc/topo.php");
?>
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<title>�rea restrita</title>
<meta name="resource-type" content="document"/>
<meta http-equiv="pragma" content="no-cache"/>
<meta name="revisit-after" content="1"/>
<meta name="classification" content="Internet"/>
<meta name="description" content="Sistema para solicitacao de informacoes da lei de acesso a informacao"/>
<meta name="keywords" content="lai,acesso a informacao,sistema,gestao,fortaleza,ceara,software,php,mysql"/>
<meta name="robots" content="ALL"/>
<meta name="distribution" content="Global"/>
<meta name="rating" content="General"/>
<meta name="author" content="Ralp Alves, G&T Controller"/>
<meta name="language" content="pt-br"/>
<meta name="doc-class" content="Completed"/>
<meta name="doc-rights" content="Private"/>
<meta http-equiv="X-UA-Compatible" content="IE=8">
<link href="../css/estilo.css" rel="stylesheet" type="text/css"/>
<link href="../css/Site.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="icon" href="../img/favicon.png"/>
<script src="../js/bootstrap.js" type="text/javascript"></script>
<script src="../js/bootstrap.min.js" type="text/javascript"></script>
<link href="../css/bootstrap.css" rel="stylesheet" type="text/css"/>
<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
<script src="../js/functions.js"></script>
</head>
<div id="principal">
<div class='col-md-8' id='margin-bottom'>
<div class='panel panel-primary filterable'>
<div class="list-group-item active" align="center">INFORMAÇÕES AO OPERADOR</div>
<div>
<div class="col-md-6 col-xs-12">
<div>
<div class="panel-heading">
<section>
<h4>Contatos</h4>
<span><strong><?=utf8_encode($empresa['entidade'])?></strong></span>
<li>
<span><i class="glyphicon glyphicon-phone-alt"> </i><?=$empresa['telefone']?></span>
</li>
<li>
<span><i class="glyphicon glyphicon-map-marker"> </i><?=$empresa['endereco']?></span>
</li>
<li>
<span><i class="glyphicon glyphicon-envelope"> </i><a class="link2" href="<?=$empresa['contato']?>" target="_blank">
Contato</a></span>
</li>
<br>
<span><strong>G&T Controller | Suporte</strong></span>
<li>
<span><i class="glyphicon glyphicon-phone-alt"> </i>(85) 3085-5002</span>
</li>
<li>
<span><i class="glyphicon glyphicon-map-marker"> </i>Av. Eng. Agrônomo José Guimarães Duque, 1055 - Cambeba </span>
</li>
<li>
<span><i class="glyphicon glyphicon-envelope"> </i>
<a class="link2" href="http://www.gtcontroller.com.br/novosite/index.php?page=suporte" target="_blank">Contato</a></span>
</li>
</section>
</div>
</div>
</div>
<div class="col-md-6 col-xs-12">
<div>
<div class="panel-heading">
<section>
<h4>Estatísticas</h4>
<div class="notice notice-info">
<strong>Total de mensagens:</strong>
<strong class="esquerda"><?=$tot?></strong>
</div>
<div class='notice notice-success'>
<strong>Mensagens respondidas:</strong>
<strong class="esquerda"><?=$ate?></strong>
</div>
<div class='notice notice-danger'>
<strong>Não respondidas:</strong>
<strong class="esquerda"><?=$neg?></strong>
</div>
<div class='notice notice-warning'>
<strong>Mensagens em aberto:</strong>
<strong class="esquerda"><?=$abr?></strong>
</div>
</section>
</div>
</div>
</div>
</div>
</div>
</div>
<?php if (empty($_SESSION[SISTEMA_CODIGO])) { ?>
<div>
<div class='col-md-4'>
<div class='panel panel-primary filterable col-md-offset-0'>
<div class=" list-group-item active " align='center'>ACESSE O SISTEMA (�REA RESTRITA)</div>
<div class='container panel-body'>
<form action="index.php" method="post">
<div>
<label for="login">Usuário: </label>
<div>
<input class="form-control" autofocus type="text" name="login" maxlength="20">
</div>
</div>
<div>
<label for="Senha">Senha: </LABEL>
<div>
<input class="form-control" type="password" name="password" maxlength="100">
</div>
</div>
<?php if ($usarecap) { ?>
<div>
<div>
<br>
<img src="../inc/captcha.php?l=150&a=50&tf=20&ql=5" id="imgcaptcha">
<img src="../img/refresh.gif" title="Clique aqui para recarregar a imagem" alt="Clique aqui para recarregar a imagem" onclick="getElementById('imgcaptcha').src ='../inc/captcha.php?l=150&a=50&tf=20&ql=5';">
<br><span class="labelLogin">Informe o código acima:</span><br><input type="text" name="palavra"/>
</div>
</div>
<?php } ?>
<div>
<div>
<br><input type="submit" class="btn btn-primary" name="btsub" value="Entrar">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<?php } else { ?>
<div class='col-md-4'>
<div class='panel panel-primary filterable col-md-offset-0'>
<div class=" list-group-item active " align='center'>LOGADO - ÁREA RESTRITA</div>
<div class="panel-body col-xs-4">
<?php if ($img['foto']=='') { ?>
<a href="foto.php?uid=<?php echo getSession("uid"); ?>" class="link"><img alt="adicionar foto" title="Adicionar foto" src="../../img/logado.png" width="120px"/></a>
<?php } else { ?>
<a href="foto.php?uid=<?php echo getSession("uid"); ?>" class="link"><img alt="alterar foto" title="Alterar foto" src="<?=$img['foto']?>" class="img img-rounded img-responsive""/></a>
<?php } ?>
</div>
<div class="panel-body col-xs-8">
<div class='container panel-body'>
<div class="notice notice-warning">Olá <strong><?php echo getSession("nomeusuario"); ?></strong>!</div>
<br>
<div class="notice notice-info">
Bem vindo(a)!<br><br>Você está logado ao sistema!<br><br>
Secretaria selecionada:<br>
<b><?php echo 'Sigla: ' . getSession('siglasecretaria') . "<br>" . getSession('nomesecretaria'); ?></b>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
<?php include("../inc/rodape.php"); ?>