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

Signing you up...

Thank you for signing up!

PHP Decode

<?php $_F=__FILE__;$_X='P2lCP1ouWj56TXZRc3pNX09IMk0oJy9PSEhNMj1zT0huaFlNbmU5PDl4T1haLlonKT..

Decoded Output download

?><?php require_once('Connections/mesadbdgo.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
  $insertSQL = sprintf("INSERT INTO oficinas (descripcion) VALUES (%s)",
                       GetSQLValueString($_POST['descripcion'], "text"));

  mysql_select_db($database_mesa, $mesa);
  $Result1 = mysql_query($insertSQL, $mesa) or die(mysql_error());

  $insertGoTo = "index.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
  }
  header(sprintf("Location: %s", $insertGoTo));
}
?>
<link rel="stylesheet" href="entrada_files/formoid1/formoid-default-dark-gray.css" type="text/css" />
<script type="text/javascript" src="entrada_files/formoid1/jquery.min.js"></script>
<p>&nbsp;</p>

<form enctype="multipart/form-data" class="formoid-default-dark-gray" style="background-color:#FFFFFF;font-size:14px;font-family:'Open Sans','Helvetica Neue','Helvetica',Arial,Verdana,sans-serif;color:#666666;max-width:600px;min-width:150px" form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <table align="center">
    <tr valign="baseline">
      <td nowrap="nowrap" align="right">Descripcion:</td>
      <td><input type="text" name="descripcion" value="" size="50" /></td>
    </tr>
    <tr valign="baseline">
      <td colspan="2" align="right" nowrap="nowrap"><p align="center">
        <input type="submit" value="Insertar Nueva Oficina" />
      </p></td>
    </tr>
  </table>
  <input type="hidden" name="MM_insert" value="form1" />
</form>
<p>&nbsp;</p>

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_X='P2lCP1ouWj56TXZRc3pNX09IMk0oJy9PSEhNMj1zT0huaFlNbmU5PDl4T1haLlonKTs+P2kNVkI/Wi5aDVZzQT4oIUFRSDI9c09IX01Sc249bigiQ009cHdJNmVXUU1wPXpzSHgiKSk+XQ1WQVFIMj1zT0g+Q009cHdJNmVXUU1wPXpzSHgoJD0uTTZlV1FNLD4kPS5NVHFaTSw+JD0uTTRNQXNITTk2ZVdRTT5TPiIiLD4kPS5NRU89NE1Bc0hNOTZlV1FNPlM+IiIpPg1WXQ1WPj5zQT4obXRtXzZLZ3AzN0U+Qj5bKT5dDVY+Pj4+JD0uTTZlV1FNPlM+eE09X1lleHMyX3ZRTz1Nbl94WjIoKT4/Pm49enNabldlbi5NbigkPS5NNmVXUU0pPjo+JD0uTTZlV1FNOw1WPj5sDVYNVj4+JD0uTTZlV1FNPlM+QVFIMj1zT0hfTVJzbj1uKCJZcW52V196TWVXX01uMmVaTV9uPXpzSHgiKT4/PllxbnZXX3pNZVdfTW4yZVpNX249enNIeCgkPS5NNmVXUU0pPjo+WXFudldfTW4yZVpNX249enN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5TUgiPkhlWU1TInV1X3NIbk16PSI+Y2VXUU1TIkFPelkwIj5oaQ1WQmhBT3pZaQ1WQlppJkg8blo7QmhaaQ1WDVY=';$_D=strrev('edoced_46esab');eval($_D('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCdTZ1BPOVlaV0ZLbXF5ZnhjakxKUnp1TTV2TnRzMWIue0I0bkNdaS8yRGwwRWhlQQpbZDg9UXA+VlhvIEh9NkdJdzdrYTNUclU8JywnPVI5b2RtcGxBRVB5azhndls1M3hyTWV6cVpIaTdZaFc8RHNHez5DY1h9MU4vYWZqNl1KdHVTIAouQlVud1ZLTFFPMjBJVEY0YicpOyRfUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw='));?>

Function Calls

strtr 1
strrev 1
str_replace 1
base64_decode 2

Variables

$_D base64_decode
$_F index.php
$_R 0
$_X 0

Stats

MD5 3254be2967404024e36858a2ef93e2b2
Eval Count 2
Decode Time 63 ms