Commit 70c9628ca88686095b4b74e1cd5b3067d17b155d

Authored by André Mácola
1 parent 96e58e9d
Exists in master

Correção de arquivo

Commit foi enviado com arquivo errado anteriormente.
1 nbproject/ 1 nbproject/
2 js/RGraph/demos 2 js/RGraph/demos
3 config.php 3 config.php
  4 +.DS_Store
index/index.php
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 /********************************************************************************** 2 /**********************************************************************************
3 Sistema e-SIC Livre: sistema de acesso a informação baseado na lei de acesso. 3 Sistema e-SIC Livre: sistema de acesso a informação baseado na lei de acesso.
4 4
5 - Copyright (C) 2014 Prefeitura Municipal do Natal 5 + Copyright (C) 2014 Prefeitura Municipal
6 6
7 Este programa é software livre; você pode redistribuí-lo e/ou 7 Este programa é software livre; você pode redistribuí-lo e/ou
8 modificá-lo sob os termos da Licença GPL2. 8 modificá-lo sob os termos da Licença GPL2.
@@ -10,9 +10,15 @@ @@ -10,9 +10,15 @@
10 10
11 require_once("../inc/security.php"); 11 require_once("../inc/security.php");
12 12
13 -$login = $_POST["login"];  
14 -$password = $_POST["password"];  
15 -$tipo = $_REQUEST['t']; 13 +// $login = $_POST["login"];
  14 +// $password = $_POST["password"];
  15 +// $tipo = $_REQUEST['t'];
  16 +// $msg = "";
  17 +
  18 +$login = filter_input(INPUT_POST, 'login');
  19 +$password = filter_input(INPUT_POST, 'password');
  20 +$tipo = isset($_REQUEST['t']) ? $_REQUEST['t'] : null;
  21 +$btsub = filter_input(INPUT_POST, 'btsub');
16 $msg = ""; 22 $msg = "";
17 23
18 if(usaRecaptcha($login)) 24 if(usaRecaptcha($login))
@@ -21,7 +27,7 @@ else @@ -21,7 +27,7 @@ else
21 $usarecap = false; 27 $usarecap = false;
22 28
23 29
24 -if ($_POST['btsub']) 30 +if ($btsub)
25 { 31 {
26 32
27 if($usarecap) 33 if($usarecap)
@@ -61,11 +67,11 @@ include("../inc/topo.php"); @@ -61,11 +67,11 @@ include("../inc/topo.php");
61 ?> 67 ?>
62 <div id="principal"> 68 <div id="principal">
63 <div id="banner"> 69 <div id="banner">
64 - <a><img src="../css/img/sic.png"/></a> 70 + <a><img src="../css/img/sic.jpg"/></a>
65 </div> 71 </div>
66 72
67 <?php if (empty($_SESSION[SISTEMA_CODIGO])) { ?> 73 <?php if (empty($_SESSION[SISTEMA_CODIGO])) { ?>
68 - <div id="caixa_login"> 74 + <div id="login">
69 <form action="index.php" method="post"> 75 <form action="index.php" method="post">
70 <div class="titulo_caixa_login"> Acesse o sistema</div> 76 <div class="titulo_caixa_login"> Acesse o sistema</div>
71 <span class="Mensagem">Preencha o Nome do Usuário e senha para acessar o Sistema de Informações.</span> 77 <span class="Mensagem">Preencha o Nome do Usuário e senha para acessar o Sistema de Informações.</span>
@@ -73,29 +79,26 @@ include(&quot;../inc/topo.php&quot;); @@ -73,29 +79,26 @@ include(&quot;../inc/topo.php&quot;);
73 <div id="campos"> 79 <div id="campos">
74 80
75 81
76 - <table width="80%">  
77 - <tr>  
78 -  
79 - <table cellpadding="1" cellspacing="5" "width: 80%;"> 82 + <table cellpadding="1" cellspacing="5" width="80%">
80 <tr align="right"> 83 <tr align="right">
81 84
82 <td> 85 <td>
83 - <span class="labelLogin"><label id="login">Usuário: </label> </span> 86 + <span class="labelLogin"><label for="usuario">Usuário: </label> </span>
84 </td> 87 </td>
85 <td> 88 <td>
86 - <span class="inputLogin"><input type="text" name="login" maxlength="20" id="login" > </span> 89 + <span class="inputLogin"><input type="text" name="login" maxlength="20" id="usuario"> </span>
87 </td> 90 </td>
88 </tr> 91 </tr>
89 - <tr> 92 + <tr align="right">
90 <td> 93 <td>
91 - <span class="labelLogin"><label id="Senha">Senha: </LABEL> </span> 94 + <span class="labelLogin"><label id="Senha">Senha: </label> </span>
92 </td> 95 </td>
93 <td> 96 <td>
94 <span class="inputLogin"><input type="password" name="password" maxlength="100" id="password" > </span> 97 <span class="inputLogin"><input type="password" name="password" maxlength="100" id="password" > </span>
95 </td> 98 </td>
96 </tr> 99 </tr>
97 <?php if ($usarecap) { ?> 100 <?php if ($usarecap) { ?>
98 - <tr> 101 + <tr align="right">
99 <td colspan="2" align="right"> 102 <td colspan="2" align="right">
100 <br> 103 <br>
101 <img src="../inc/captcha.php?l=150&a=50&tf=20&ql=5" id="imgcaptcha"> 104 <img src="../inc/captcha.php?l=150&a=50&tf=20&ql=5" id="imgcaptcha">
@@ -105,14 +108,14 @@ include(&quot;../inc/topo.php&quot;); @@ -105,14 +108,14 @@ include(&quot;../inc/topo.php&quot;);
105 </tr> 108 </tr>
106 <?php } ?> 109 <?php } ?>
107 110
108 - <tr> 111 + <tr align="right">
109 <td> 112 <td>
110 </td> 113 </td>
111 <td> 114 <td>
112 <br><input type="submit" class="inputBotao" name="btsub" value="Entrar"> 115 <br><input type="submit" class="inputBotao" name="btsub" value="Entrar">
113 </td> 116 </td>
114 </tr> 117 </tr>
115 - <tr> 118 + <tr align="right">
116 <td colspan="2"> 119 <td colspan="2">
117 <a class="class_cadastrese" href="../cadastro">Cadastre-se</a> | 120 <a class="class_cadastrese" href="../cadastro">Cadastre-se</a> |
118 <a class="class_senha" href="../reset">Esqueci a senha</a> 121 <a class="class_senha" href="../reset">Esqueci a senha</a>
restrito/index/index.php
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 /********************************************************************************** 2 /**********************************************************************************
3 Sistema e-SIC Livre: sistema de acesso a informação baseado na lei de acesso. 3 Sistema e-SIC Livre: sistema de acesso a informação baseado na lei de acesso.
4 4
5 - Copyright (C) 2014 Prefeitura Municipal do Natal 5 + Copyright (C) 2014 Prefeitura Municipal
6 6
7 Este programa é software livre; você pode redistribuí-lo e/ou 7 Este programa é software livre; você pode redistribuí-lo e/ou
8 modificá-lo sob os termos da Licença GPL2. 8 modificá-lo sob os termos da Licença GPL2.
@@ -10,13 +10,21 @@ @@ -10,13 +10,21 @@
10 10
11 require_once("../inc/security.php"); 11 require_once("../inc/security.php");
12 12
13 -$login = $_POST["login"];  
14 -$password = $_POST["password"];  
15 -$tipo = $_REQUEST['t']; 13 +// $login = $_POST["login"];
  14 +// $password = $_POST["password"];
  15 +// $tipo = $_REQUEST['t'];
  16 +// $msg = "";
  17 +
  18 +$login = filter_input(INPUT_POST, 'login');
  19 +$password = filter_input(INPUT_POST, 'password');
  20 +$tipo = isset($_REQUEST['t']) ? $_REQUEST['t'] : null;
  21 +$btsub = filter_input(INPUT_POST, 'btsub');
16 $msg = ""; 22 $msg = "";
17 23
18 //usado pra troca de sic, chamado no arquivo topo através do select de sics 24 //usado pra troca de sic, chamado no arquivo topo através do select de sics
19 -$sic = $_GET['sic']; 25 +// $sic = $_GET['sic'];
  26 +
  27 +$sic = filter_input(INPUT_GET, 'sic');
20 if(!empty($sic)) 28 if(!empty($sic))
21 if(!atualizaUnidadeUsuario($sic)) 29 if(!atualizaUnidadeUsuario($sic))
22 echo "<script>alert('Usuário não pertence ao SIC que está tentando acessar!');</script>"; 30 echo "<script>alert('Usuário não pertence ao SIC que está tentando acessar!');</script>";
@@ -28,7 +36,7 @@ else @@ -28,7 +36,7 @@ else
28 $usarecap = false; 36 $usarecap = false;
29 37
30 38
31 -if ($_POST['btsub']) 39 +if ($btsub)
32 { 40 {
33 41
34 if($usarecap) 42 if($usarecap)
@@ -63,16 +71,11 @@ include(&quot;../inc/topo.php&quot;); @@ -63,16 +71,11 @@ include(&quot;../inc/topo.php&quot;);
63 ?> 71 ?>
64 <div id="principal"> 72 <div id="principal">
65 <div id="banner"> 73 <div id="banner">
66 - <img src="../css/img/sic.png" /> 74 + <img src="../css/img/sic.jpg" />
67 </div> 75 </div>
68 -  
69 - <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->  
70 - <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>  
71 - <!-- Include all compiled plugins (below), or include individual files as needed -->  
72 - <script src="js/bootstrap.min.js"></script>  
73 - 76 +
74 <?php if (empty($_SESSION[SISTEMA_CODIGO])) { ?> 77 <?php if (empty($_SESSION[SISTEMA_CODIGO])) { ?>
75 - <div id="caixa_login"> 78 + <div id="login">
76 <form action="index.php" method="post"> 79 <form action="index.php" method="post">
77 <div class="titulo_caixa_login"> Acesse a área restrita do sistema</div> 80 <div class="titulo_caixa_login"> Acesse a área restrita do sistema</div>
78 <span class="Mensagem">Preencha o Nome do Usuário e senha para acessar o Sistema de Informações.</span> 81 <span class="Mensagem">Preencha o Nome do Usuário e senha para acessar o Sistema de Informações.</span>
@@ -86,7 +89,7 @@ include(&quot;../inc/topo.php&quot;); @@ -86,7 +89,7 @@ include(&quot;../inc/topo.php&quot;);
86 89
87 </td> 90 </td>
88 <td> 91 <td>
89 - <span class="inputLogin"><input type="text" name="login" maxlength="20" id="login"> </span> 92 + <span class="inputLogin"><input type="text" name="login" maxlength="20" id="usuario"> </span>
90 93
91 </td> 94 </td>
92 </tr> 95 </tr>
@@ -161,10 +164,10 @@ include(&quot;../inc/topo.php&quot;); @@ -161,10 +164,10 @@ include(&quot;../inc/topo.php&quot;);
161 </tr> 164 </tr>
162 <tr> 165 <tr>
163 <td> 166 <td>
164 - <a href="../manual/informacao.php">Como pedir uma informação</a> 167 + <a href="../../manual/informacao.php">Como pedir uma informação</a>
165 </td> 168 </td>
166 <td> 169 <td>
167 - <a href="../manual/decreto.php">Decreto</a> 170 + <a href="../../manual/decreto.php">Decreto</a>
168 </td> 171 </td>
169 <td> 172 <td>
170 <a href="http://www.acessoainformacao.gov.br/acessoainformacaogov/">Acesso à informação CGU</a> 173 <a href="http://www.acessoainformacao.gov.br/acessoainformacaogov/">Acesso à informação CGU</a>
@@ -172,10 +175,10 @@ include(&quot;../inc/topo.php&quot;); @@ -172,10 +175,10 @@ include(&quot;../inc/topo.php&quot;);
172 </tr> 175 </tr>
173 <tr> 176 <tr>
174 <td> 177 <td>
175 - <a href="../manual/pedido.php">Como acompanhar seu pedido</a> 178 + <a href="../../manual/pedido.php">Como acompanhar seu pedido</a>
176 </td> 179 </td>
177 <td> 180 <td>
178 - <a href="../manual/LegislacaoRelacionada.php">Legislação relacionada</a> 181 + <a href="../../manual/LegislacaoRelacionada.php">Legislação relacionada</a>
179 </td> 182 </td>
180 <td> 183 <td>
181 <a href="http://portal2.tcu.gov.br/portal/page/portal/TCU/transparencia">Acesso à informação TCU</a> 184 <a href="http://portal2.tcu.gov.br/portal/page/portal/TCU/transparencia">Acesso à informação TCU</a>
@@ -183,7 +186,7 @@ include(&quot;../inc/topo.php&quot;); @@ -183,7 +186,7 @@ include(&quot;../inc/topo.php&quot;);
183 </tr> 186 </tr>
184 <tr> 187 <tr>
185 <td> 188 <td>
186 - <a href="../manual/recurso.php">Como entrar com um recurso</a> 189 + <a href="../../manual/recurso.php">Como entrar com um recurso</a>
187 </td> 190 </td>
188 <td> 191 <td>
189 Leis 192 Leis