$int_guia = $HTTP_POST_VARS["calculavalor"]; $str_movimento = $HTTP_POST_VARS["sem_movimento{$int_guia}"]; $int_guia_nr = 0; for ($i = 0; $i < $tam; $i++) { if (db_indexOf(key($vt), "VAL") > 0) { $valores[$j++] = $vt[key($vt)]; if (key($vt) == "VAL" . $int_guia) { $int_guia_nr = $j - 1; } } next($vt); } $j = 0; reset($vt); for ($i = 0; $i < $tam; $i++) { if (db_indexOf(key($vt), "CHECK") > 0) { $numpres[$j++] = $vt[key($vt)]; } next($vt); } if (isset($valores)) { if (sizeof($valores) != sizeof($numpres)) { db_erro("<br> Matriz inválida!", 1); } $tam = sizeof($valores); $sqlerro = false; db_inicio_transacao(); //for($i = 0;$i < $tam;$i++) { // Lançamento sem movimento - parte I if (!empty($str_movimento) and $str_movimento != 'Sem Movimento') { // ######################### TEM QUE INCLUIR NA cancdebitos, cancdebitosproc #########################
function db_verfPostGet($post) { $tam_vetor = sizeof($post); reset($post); for ($i = 0; $i < $tam_vetor; $i++) { if (key($post) != 'corpofuncao' && key($post) != 'eventotrigger') { $dbarraypost = gettype($post[key($post)]) != "array" ? $post[key($post)] : ""; } if (db_indexOf(strtoupper($dbarraypost), "INSERT") > 0 || db_indexOf(strtoupper($dbarraypost), "UPDATE") > 0 || db_indexOf(strtoupper($dbarraypost), "DELETE") > 0 || db_indexOf(strtoupper($dbarraypost), "EXEC(") > 0 || db_indexOf(strtoupper($dbarraypost), "SYSTEM(") > 0 || db_indexOf(strtoupper($dbarraypost), "PASSTHRU(") > 0) { echo "<script>alert('Voce está passando parametros inválidos e sera redirecionado.');location.href='http://localhost/dbportal/modulos.php'</script>\n"; exit; } //$post[key($post)] = htmlspecialchars(gettype($post[key($post)])!="array"?$post[key($post)]:""); next($post); } }