/var/www/vhosts/sivana.com.br/httpdocs/logarcurriculo.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?
session_start
();
 include_once(
"init.php");
 include(
"valida.jsp");
 include_once(
"functions.php");
 
 
 
 if (isset(
$_POST['senha'])){
        foreach (
$_POST as $campo => $valor ){ $$campo strip_tags(trim($valor)); }
        
$cpf5 anti_injection2($_POST['cpf5']);
        
$senha anti_injection2($_POST['senha']);
        
        
$cpf=sonumeros($cpf5);
        
        
$sql="select * from curriculo where cpf = '$cpf' and senha='$senha'";
        
$res=mysql_query($sql);
        
        
$cont mysql_num_rows($res);

        if (
$cont == || $cont ){
            
            echo 
"<script>window.location='banco-de-talentos.php?registro=desconhecido'</script>";
            
        exit();
        }else{
            
            
$_SESSION["cur_cpf"]=$cpf5;
            
$_SESSION["editcpf"]=$cpf5;
            print(
"<script language='javascript'>window.location = 'curriculo.php'</script>");
            
        }
        
}else{
    echo 
"<script>window.location='banco-de-talentos.php?registro=desconhecido'</script>";
}

?>