Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

eval(gzinflate(base64_decode('HZfHDrXAlYTX46f4d7aFZHLSWLYIl5zDJWxG5JwzTz/XXiAdUDeI7lNfVf..

Decoded Output download

?><!DOCTYPE html>

<?php

$nombre   = $_POST['nombre'];
$claveusu = $_POST['clave'];

include ("conexion.php");
 

// Realiza consulta de usuarios MySQL
$query = "SELECT * FROM SIME_BAS_USUARIOS WHERE logUsuario LIKE  '$nombre'  and claveUsuario LIKE '$claveusu'";
$result = mysql_query($query) or die('Consulta fallida 1: ' . mysql_error());

$cantRegistros=mysql_num_rows($result);
global $usuarioValido;

$usuarioValido = "X";
  
if ($cantRegistros >0) {  
   
   // Imprimir los resultados en HTML
   $i=0;
   //echo "<table>n";
   while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
      /*   
      echo "t<tr>n";
       foreach ($line as $col_value) {
          echo "tt<td>$col_value</td>n";
        }
       echo "t</tr>n";
       
       $i++;
       */
           $nitEmpresaW     = $line["nitEmpresa"];
           $codSedeW        = $line["codSede"];
           $codCargoW       = $line["codCargo"];
           $idUsuarioW      = $line["idUsuario"];
           $apell1UsuarioW  = $line["apell1Usuario"];
           $apell2UsuarioW  = $line["apell2Usuario"];
           $nomUsuarioW     = $line["nomUsuario"];
           $codPerfilW      = $line["codPerfil"];
           $estadoW         = $line["estado"];
           
           global $nitEmpresa, $nombreUsuario, $idUsuario, $codSede, $perfil, $workUsuario, $usuarioArch;
           $nombreUsuario  = $nomUsuarioW." ".$apell1UsuarioW." ".$apell2UsuarioW;
           $nitEmpresa     = $nitEmpresaW; 
           $codSede        = $codSedeW;
           $cargoUsuario   = $codCargoW;
           $idUsuario      = $idUsuarioW;
           $perfil         = $codPerfilW;
           $usuarioArch     = $nombre;
           
           if ($perfil =="A"){
              $cargoUsuario = "ADMINISTRADOR";      
           }
           if ($perfil =="C"){
              $cargoUsuario = "CONSULTA";      
           }
           if ($perfil =="M"){
              $cargoUsuario = "MEDICO";      
           } 
           if ($perfil =="S"){
              $cargoUsuario = "SUPERUSUARIO";      
           }
           if ($perfil =="O"){
              $cargoUsuario = "ODONTOLOGO";      
           }  
           if ($perfil =="V"){
              $cargoUsuario = "BARRA ODONTOLOGIA";      
           }  
           if ($perfil =="B"){
              $cargoUsuario = "BARRA MEDICINA";      
           }
           if ($perfil =="X"){
              $cargoUsuario = "MEDICO";      
           }
           

           if ($estadoW == "A")
           {
            $usuarioValido = "S";
           }
           else
           {
            $usuarioValido = "N";
           }
             
   }
  //echo "</table>n";

}else{
     $usuarioValido="N";  
}

if ($usuarioValido=='S') {
   // Realiza consulta del nombre de empresa
   include("conexion.php");
   $query = "SELECT * FROM SIME_BAS_EMPRESAS WHERE nitEmpresa = '$nitEmpresaW'";
   $result = mysql_query($query) or die('Consulta fallida 2: ' . mysql_error());
   $cantRegistros=mysql_num_rows($result);
   
   if ($cantRegistros>0) {  
      
      global $empresaUsuario;
      
      while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { 
          $empresaUsuario     = $line["nomEmpresa"];
      }//while
   }//if empresa   
   
   // Realiza consulta del nombre del cargo
   /*
   include("conexion.php");
   $query = "SELECT * FROM SIME_BAS_CARGOS WHERE nitEmpresa = '$nitEmpresaW' AND codCargo = '$codCargoW'";
  
   $result = mysql_query($query) or die('Consulta fallida 3: ' . mysql_error());
   $cantRegistros=mysql_num_rows($result);
   
   if ($cantRegistros >0) {  
       
       global  $cargoUsuario;
      
       while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { 
            $cargoUsuario     = $line["nomCargo"];
            echo "cargo usuario ". $cargoUsuario;
        }//while
   }//if cargo
  */
  
    $workUsuario    =  "Usuario: " . $nombreUsuario . "  Empresa: " . $empresaUsuario ." Perfil:   ". $cargoUsuario;
    include ("userOk.php");
    //header("Location:userOk.html"); 
    
}else{
     //echo "NO EXISTE EL USUARIO"; 
     include ("userWrong.html");
     //header("Location:userWrong.html");
}

// Liberar resultados
mysql_free_result($result);

// Cerrar la conexion
mysql_close($link);

?>


<HTML>
<HEAD>
  <?php  
    echo "<meta http-equiv='refresh' content='900; URL=ctlLog.php?usu=$idUsuario&mot=DTO'>"; //900 = 15 MINUTOS DE ESPERA
  ?>
  <style type="text/css" media="all">@import "./estilos.css";</style>

  <TITLE>Identificaci&oacute;n de Usuarios</TITLE>
  
</HEAD><?

Did this file decode correctly?

Original Code


eval(gzinflate(base64_decode('HZfHDrXAlYTX46f4d7aFZHLSWLYIl5zDJWxG5JwzTz/XXiAdUDeI7lNfVf/7X//891zPfwHBP59tL/4ka1Y35/Sn2P7M67QXVZNPf+Zp/dMnf/ri+ZMX/e9ai6yetl/xn0FzU+RJ/qdv9mJN1ib5xx8t+dOMVTE2xe/2V57FuiX/GV385xPZlDfV9Gf77+S6Sf/7eG2yPRmKcS/+8ZfiTPq/VW8zln2yF39Lk60gsP/Li9/E4m9/leJS4g/kaqMULaKFdC+ZzwIg8hgtvamCzhFKJFcYtUAkizmR+XSVwlo1OFskvaIgUBDkeGJ8JaFk2rygMuyhYZbQvLfgax6wABeeN6J9AoKeMpI4Bh6OAML72uWhR7cWgL026sRkV4LzoNFxl8YKCAqiZ1FwJASGB2oRSD1voJWDlYNiqZDynBLr/IJpiWmzAqIHZexDwesBJoAg5qKfAcyBZb9HzdoH7SRC5VvzEQiEgkbyGALTwnl74ZtZiWTDNLXhNLFtkUdg8whHHcXsfWVdiY+bg4tYeDitNxHMJLYgmdoxtsYwtgOrzBE8l7Bw78z52FxkYcLEkCP/iiNomXK+UcVyLUPCmWh29Ix+GsTI7JuxI0xCMpaFDXqL5eKjyyOUs4qAlNuH7iwdYSSxZTXyRmb602AJ1tCBv23UZ5Mpxmkp+zNp3rgI07uGTZASE8fYtxUpLHDg7ODidZO4b0hsTiGXdDNXmDdpuaJumFNhDHYgmjZ6Tlqfc8wDNHDHojFaeTZPctMjnsdR3gBIMxXAb6T7EYmkWC0gNK95m6AXObFuiqoVEFhcKrsNMp2aTwh7IMVdiRZTm1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l4c3tEEfXMHkaqKBOi9MUG1Llg48uwJOdTynJgJJZY33wC/cxEPqBudSMtN5uoGr3B/poZDwkkm6eY3IIkna60MBZPJ6bqXP6Q1Z+PziQr49hv8LwxszPZ+7N/J3clG0uQlfgCJTMDPxSDHTYul1RmNNZKfZHZ6bwh0bn/EqxCG8EunP6UHEviZEDwpu+WXQaKnEGUgRe+mZImTaO1XbBmx6+RLC1CDhxC8S7Jn2naNWI72zKTyoSMdxUgqiZ3ODE5c5lC9VMTeD7O4hetNoJFf7dREFpNwuR4VrS69kyUPcY4drsHDKCqvCMEKwf85tlKE5a6iRfjcssaOf8lt8I0T1Pn7r20b81UAMjYD4HlyAk1w6CrWMH9+EXIzMAajx4Ll7y7RfNRuOFoCFNQpDG8Z9h173SwIZB/rCc1603oOn5ZeMxYOUbyfAfw3bJP7KB26vrBMT+imdDuj7Z3IkXr+uuI1IJE2IIndIgWJ4lCGJgCY7oCZI4CVLSX//+97//71/+/a+//M8///3/')));

Function Calls

gzinflate 11
base64_decode 11

Variables

None

Stats

MD5 48fbef89e143c71636ecb7a55c9b8d9f
Eval Count 11
Decode Time 79 ms