Commit 70c9628ca88686095b4b74e1cd5b3067d17b155d
1 parent
96e58e9d
Exists in
master
Correção de arquivo
Commit foi enviado com arquivo errado anteriormente.
Showing
3 changed files
with
45 additions
and
38 deletions
Show diff stats
.gitignore
index/index.php
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | /********************************************************************************** |
3 | 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 | 7 | Este programa é software livre; você pode redistribuí-lo e/ou |
8 | 8 | modificá-lo sob os termos da Licença GPL2. |
... | ... | @@ -10,9 +10,15 @@ |
10 | 10 | |
11 | 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 | 22 | $msg = ""; |
17 | 23 | |
18 | 24 | if(usaRecaptcha($login)) |
... | ... | @@ -21,7 +27,7 @@ else |
21 | 27 | $usarecap = false; |
22 | 28 | |
23 | 29 | |
24 | -if ($_POST['btsub']) | |
30 | +if ($btsub) | |
25 | 31 | { |
26 | 32 | |
27 | 33 | if($usarecap) |
... | ... | @@ -61,11 +67,11 @@ include("../inc/topo.php"); |
61 | 67 | ?> |
62 | 68 | <div id="principal"> |
63 | 69 | <div id="banner"> |
64 | - <a><img src="../css/img/sic.png"/></a> | |
70 | + <a><img src="../css/img/sic.jpg"/></a> | |
65 | 71 | </div> |
66 | 72 | |
67 | 73 | <?php if (empty($_SESSION[SISTEMA_CODIGO])) { ?> |
68 | - <div id="caixa_login"> | |
74 | + <div id="login"> | |
69 | 75 | <form action="index.php" method="post"> |
70 | 76 | <div class="titulo_caixa_login"> Acesse o sistema</div> |
71 | 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("../inc/topo.php"); |
73 | 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 | 83 | <tr align="right"> |
81 | 84 | |
82 | 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 | 87 | </td> |
85 | 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 | 90 | </td> |
88 | 91 | </tr> |
89 | - <tr> | |
92 | + <tr align="right"> | |
90 | 93 | <td> |
91 | - <span class="labelLogin"><label id="Senha">Senha: </LABEL> </span> | |
94 | + <span class="labelLogin"><label id="Senha">Senha: </label> </span> | |
92 | 95 | </td> |
93 | 96 | <td> |
94 | 97 | <span class="inputLogin"><input type="password" name="password" maxlength="100" id="password" > </span> |
95 | 98 | </td> |
96 | 99 | </tr> |
97 | 100 | <?php if ($usarecap) { ?> |
98 | - <tr> | |
101 | + <tr align="right"> | |
99 | 102 | <td colspan="2" align="right"> |
100 | 103 | <br> |
101 | 104 | <img src="../inc/captcha.php?l=150&a=50&tf=20&ql=5" id="imgcaptcha"> |
... | ... | @@ -105,14 +108,14 @@ include("../inc/topo.php"); |
105 | 108 | </tr> |
106 | 109 | <?php } ?> |
107 | 110 | |
108 | - <tr> | |
111 | + <tr align="right"> | |
109 | 112 | <td> |
110 | 113 | </td> |
111 | 114 | <td> |
112 | 115 | <br><input type="submit" class="inputBotao" name="btsub" value="Entrar"> |
113 | 116 | </td> |
114 | 117 | </tr> |
115 | - <tr> | |
118 | + <tr align="right"> | |
116 | 119 | <td colspan="2"> |
117 | 120 | <a class="class_cadastrese" href="../cadastro">Cadastre-se</a> | |
118 | 121 | <a class="class_senha" href="../reset">Esqueci a senha</a> | ... | ... |
restrito/index/index.php
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | /********************************************************************************** |
3 | 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 | 7 | Este programa é software livre; você pode redistribuí-lo e/ou |
8 | 8 | modificá-lo sob os termos da Licença GPL2. |
... | ... | @@ -10,13 +10,21 @@ |
10 | 10 | |
11 | 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 | 22 | $msg = ""; |
17 | 23 | |
18 | 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 | 28 | if(!empty($sic)) |
21 | 29 | if(!atualizaUnidadeUsuario($sic)) |
22 | 30 | echo "<script>alert('Usuário não pertence ao SIC que está tentando acessar!');</script>"; |
... | ... | @@ -28,7 +36,7 @@ else |
28 | 36 | $usarecap = false; |
29 | 37 | |
30 | 38 | |
31 | -if ($_POST['btsub']) | |
39 | +if ($btsub) | |
32 | 40 | { |
33 | 41 | |
34 | 42 | if($usarecap) |
... | ... | @@ -63,16 +71,11 @@ include("../inc/topo.php"); |
63 | 71 | ?> |
64 | 72 | <div id="principal"> |
65 | 73 | <div id="banner"> |
66 | - <img src="../css/img/sic.png" /> | |
74 | + <img src="../css/img/sic.jpg" /> | |
67 | 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 | 77 | <?php if (empty($_SESSION[SISTEMA_CODIGO])) { ?> |
75 | - <div id="caixa_login"> | |
78 | + <div id="login"> | |
76 | 79 | <form action="index.php" method="post"> |
77 | 80 | <div class="titulo_caixa_login"> Acesse a área restrita do sistema</div> |
78 | 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("../inc/topo.php"); |
86 | 89 | |
87 | 90 | </td> |
88 | 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 | 94 | </td> |
92 | 95 | </tr> |
... | ... | @@ -161,10 +164,10 @@ include("../inc/topo.php"); |
161 | 164 | </tr> |
162 | 165 | <tr> |
163 | 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 | 168 | </td> |
166 | 169 | <td> |
167 | - <a href="../manual/decreto.php">Decreto</a> | |
170 | + <a href="../../manual/decreto.php">Decreto</a> | |
168 | 171 | </td> |
169 | 172 | <td> |
170 | 173 | <a href="http://www.acessoainformacao.gov.br/acessoainformacaogov/">Acesso à informação CGU</a> |
... | ... | @@ -172,10 +175,10 @@ include("../inc/topo.php"); |
172 | 175 | </tr> |
173 | 176 | <tr> |
174 | 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 | 179 | </td> |
177 | 180 | <td> |
178 | - <a href="../manual/LegislacaoRelacionada.php">Legislação relacionada</a> | |
181 | + <a href="../../manual/LegislacaoRelacionada.php">Legislação relacionada</a> | |
179 | 182 | </td> |
180 | 183 | <td> |
181 | 184 | <a href="http://portal2.tcu.gov.br/portal/page/portal/TCU/transparencia">Acesso à informação TCU</a> |
... | ... | @@ -183,7 +186,7 @@ include("../inc/topo.php"); |
183 | 186 | </tr> |
184 | 187 | <tr> |
185 | 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 | 190 | </td> |
188 | 191 | <td> |
189 | 192 | Leis | ... | ... |