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 goto uPkz5; QDf8U: function consulta_bd($campos, $table, $conditions, $orden) { $c..
Decoded Output download
<?php
goto uPkz5; QDf8U: function consulta_bd($campos, $table, $conditions, $orden) { $conexion = $GLOBALS["conexion"]; if ($campos == "*") { $sql0 = "SHOW columns FROM {$table}"; $run0 = mysqli_query($conexion, $sql0); $cant_columnas = mysqli_affected_rows($conexion); } else { $columnas = explode(",", $campos); $cant_columnas = count($columnas); } $sql = "SELECT {$campos} FROM {$table}"; $whereConsulta = ($conditions != '' and $conditions != "false") ? true : false; if ($whereConsulta) { $sql .= " WHERE {$conditions}"; } $whereOrden = ($orden != '' and $orden != "false") ? true : false; if ($whereOrden) { $sql .= " ORDER BY {$orden}"; } if (!mysqli_query($conexion, $sql)) { die("Error description: " . mysqli_error($conexion) . "<br /><br />{$sql}"); } $resulset = array(); $run = mysqli_query($conexion, $sql); $i = 0; while ($line = mysqli_fetch_array($run)) { $j = 0; $resulsetInterior = array(); while ($j <= $cant_columnas - 1) { $line2 = !empty($line[$j]) ? $line[$j] : "false"; $stripslashes = stripslashes($line2); array_push($resulsetInterior, $stripslashes); $j++; } array_push($resulset, $resulsetInterior); $i++; } return $resulset; } goto O4A3Z; gdecQ: function prevnext($id, $tabla, $galeria_id) { $filas = consulta_bd("id", "img_{$tabla}", "galeria_id = {$galeria_id}", "id ASC"); $i = 0; while ($i <= count($filas) - 1) { $id_actual = $filas[$i][0]; if ($id_actual == $id) { $return[0] = $filas[$i - 1][0]; $return[1] = $filas[$i + 1][0]; break; } $i++; } return $return; } goto PlIW1; hVtuw: function imagenWeb($url, $file) { $nombre_fichero = $_ENV["S3_URL"] . $url . $file; if (empty($file)) { return false; } if (strpos($_SERVER["HTTP_ACCEPT"], "image/webp") !== false) { $supported = true; } else { $supported = false; } if ($file == '') { if ($supported) { $imagen = "sinFoto.webp"; } else { $imagen = "sinFoto.jpg"; } return $url . $imagen; die; } $extension = pathinfo($file, PATHINFO_EXTENSION); $nombre_base = basename($file, "." . $extension); $nombreWebP = $nombre_base . ".webp"; $imagen2 = $_ENV["S3_URL"] . $url . $nombreWebP; if ($supported) { if (url_exists($imagen2)) { $imagen = $_ENV["S3_URL"] . $url . $nombreWebP; } else { $imagen = $nombre_fichero; } } else { $imagen = $nombre_fichero; } return $imagen; } goto r6KRE; JM1XE: function fecha_sql_nh($fecha) { if (strtotime($fecha)) { $fecha_cl = date("d/m/Y", strtotime($fecha)); } else { $fecha_cl = date("d/m/Y"); } return $fecha_cl; } goto MG6b2; prPQf: function get_permiso($tabla_id, $action, $perfil_admin) { switch ($action) { case "a": $action = 1; break; case "b": $action = 2; break; case "c": $action = 3; break; case "other": $action = 4; break; } $res = consulta_bd("permiso_id", "tablas_perfiles", "perfil_id = {$perfil_admin} AND tabla_id = {$tabla_id}", ''); $permiso = isset($res[0][0]) ? $res[0][0] : NULL; if (($action == 3 or $action == 2 or $action == 4) and $permiso == 3) { return true; } elseif ($action == 1 and $permiso != 1 and $permiso != NULL) { return true; } else { return false; } } goto jRmpd; in62A: function get_env() { if (!isset($_SESSION["env"])) { $env = get_option("env"); return $env == '' ? "desarrollo" : $env; } else { return $_SESSION["env"]; } } goto JIYWV; HpQKx: function del_bd_generic($table, $column, $val) { $conexion = $GLOBALS["conexion_writer"]; $sql = "DELETE FROM {$table} WHERE {$column} = '{$val}'"; $run = mysqli_query($conexion, $sql) or die(mysqli_error($conexion) . "<br /><br />{$sql}"); if ($run) { return true; } else { return false; } } goto u4_Y0; voKB0: function singular($string) { $penultima = substr($string, -2, 1); $antepenultima = substr($string, -3, 1); if ($penultima == "e") { if ($antepenultima == "t" or $antepenultima == "j" or $antepenultima == "v") { $singular = substr($string, 0, -1); } else { $singular = substr($string, 0, -2); } } else { $singular = substr($string, 0, -1); } return $singular; } goto BNkaI; cnqDs: function get_sec_op($op) { $value = substr($op, -1, 1); return $value; } goto voKB0; pYgTb: function select($tabla, $columnas, $cod, $nombre, $tab_index, $where, $submit, $selected, $bloqueado) { $conexion = $GLOBALS["conexion"]; if ($cod != '') { $columnas = "{$cod},{$columnas}"; } $sql = "SELECT {$columnas} FROM {$tabla}"; if ($where != '') { $sql .= " {$where}"; } $run = mysqli_query($conexion, $sql) or die(mysqli_error($conexion) . "<br /><br />{$sql}"); $mostrar = "<select class="select" " . $bloqueado . " name="" . $nombre . "" id="" . $nombre . "" "; if ($tab_index != '') { $mostrar .= "tabindex="" . $tab_index . """; } if ($submit == "1") { $mostrar .= "onchange="cambiaSelect(this.value, this.name)">"; } elseif ($submit == "2") { $mostrar .= "onchange="submit();""; } else { $mostrar .= ">"; } $mostrar .= "<option value="0">Seleccione...</option>"; while ($res = mysqli_fetch_array($run)) { $mostrar .= "<option value="" . $res[0] . """; if ($res[0] == $selected) { $mostrar .= " selected="selected""; } if ($res[1]) { $opcion = $res[1]; } else { $opcion = $res[0]; } $mostrar .= ">" . ucwords($opcion) . "</option>"; } $mostrar .= "</select>"; echo "{$mostrar}"; } goto UTQ2t; GshGA: function check_user_loged($hash, $user) { $conexion = $GLOBALS["conexion"]; $is = consulta_bd("*", "clientes", "id = '{$user}' AND session_hash = '{$hash}'", ''); $cant = mysqli_affected_rows($conexion); if (count($is) == 1) { return true; } else { return false; } } goto ltklc; YabZF: function get_table_name($id) { $q = consulta_bd_por_id("display", "tablas", '', $id, ''); $nombre_real = $q["display"]; return $nombre_real; } goto rCD7b; bVNQb: function preview($cadena, $numerocaracteres) { $numeropalabrascadena = count(explode(" ", $cadena)); $cadenadividida = explode(" ", $cadena); $cadenamostrar = ''; $cadenaaux = ''; $cadenacompleta = "si"; for ($i = 0; $i <= $numeropalabrascadena; $i++) { $cadenaaux = $cadenaaux . @$cadenadividida[$i] . " "; if (strlen($cadenaaux) <= $numerocaracteres) { $cadenamostrar = $cadenamostrar . @$cadenadividida[$i] . " "; } else { $cadenacompleta = "no"; } } if ($cadenacompleta == "no") { $cadenamostrar .= " ..."; } return $cadenamostrar; } goto uDzTo; HYdwH: function get_post($except) { $excepciones = explode(",", $except); $excepciones[] = "posicion_img"; foreach ($_POST as $key => $val) { $ok = true; foreach ($excepciones as $no) { if ($key == trim($no)) { $ok = false; } } if ($ok) { if (!is_array($val)) { $valurl = urlencode($val); $variables .= "&{$key}={$valurl}"; } } } return $variables; } goto yOzLb; r6KRE: function url_exists($url = NULL) { if (empty($url)) { return false; } stream_context_set_default(array("http" => array("method" => "HEAD"))); $headers = @get_headers($url); sscanf($headers[0], "HTTP/%*d.%*d %d", $httpcode); $accepted_response = array(200, 301, 302); if (in_array($httpcode, $accepted_response)) { return true; } else { return false; } } goto nT16S; JFmn0: function obtenerURL() { $host = $_SERVER["HTTP_HOST"]; $url = $_SERVER["REQUEST_URI"]; return "https://" . $host . $url; } goto G9s4b; Y7oON: function resize_foto($file, $altura, $ancho, $bn) { $size = getimagesize($file); $width = intval($size[0]); $height = intval($size[1]); $altura = intval($altura); $ancho = intval($ancho); if ($width > $ancho) { $p = $ancho / $width; $x = $p * $width; $y = $p * $height; if ($y > $altura) { $p = $altura / $y; $x = $p * $x; $y = $p * $y; } } elseif ($height > $altura) { $p = $altura / $height; $x = $p * $width; $y = $p * $height; if ($x > $width) { $p = $altura / $x; $x = $p * $x; $y = $p * $y; } } else { $x = $width; $y = $height; } $ext = strtolower(substr(strrchr($file ?? '', "."), 1)); $date = date("dhis"); $nombre = $date . "_resized." . $ext; switch ($ext) { case "jpg": $imagen_origen = imagecreatefromjpeg($file); if ($bn) { imagefilter($imagen_origen, IMG_FILTER_GRAYSCALE); imagefilter($imagen_origen2, IMG_FILTER_GRAYSCALE); } if (isset($x) and intval($x) > 0) { $imagen_destino = imagecreatetruecolor(intval($x), intval($y)); $res = imagecopyresampled($imagen_destino, $imagen_origen, 0, 0, 0, 0, intval($x), intval($y), intval($width), intval($height)); $src = imagejpeg($imagen_destino, $nombre, 100); } break; case "png": $imagen_destino = imagecreatetruecolor($x, $y); imagealphablending($imagen_destino, false); imagesavealpha($imagen_destino, true); $imagen_origen = imagecreatefrompng($file); if ($bn) { imagefilter($imagen_origen, IMG_FILTER_GRAYSCALE); } imagealphablending($imagen_origen, true); $res = imagecopyresampled($imagen_destino, $imagen_origen, 0, 0, 0, 0, $x, $y, $width, $height); $src = imagepng($imagen_destino, $nombre, 9); break; case "gif": $imagen_origen = imagecreatefromgif($file); if ($bn) { imagefilter($imagen_origen, IMG_FILTER_GRAYSCALE); } $imagen_destino = imagecreatetruecolor($x, $y); $transcolor = imagecolortransparent($imagen_origen); if ($transcolor != -1) { $trnprt_color = imagecolorsforindex($imagen_origen, $transcolor); $trnprt_indx = imagecolorallocatealpha($imagen_destino, $trnprt_color["red"], $trnprt_color["green"], $trnprt_color["blue"], $trnprt_color["alpha"]); imagefill($imagen_destino, 0, 0, $trnprt_indx); imagecolortransparent($imagen_destino, $trnprt_indx); } $res = imagecopyresampled($imagen_destino, $imagen_origen, 0, 0, 0, 0, $x, $y, $width, $height); $src = imagegif($imagen_destino, $nombre, 100); break; } return $nombre; } goto dgTi3; jRmpd: function is_boolean($column, $table) { $conexion = $GLOBALS["conexion"]; $sql = "SHOW COLUMNS FROM {$table} WHERE field = '{$column}'"; $run = mysqli_query($conexion, $sql); $res = mysqli_fetch_array($run); $type = $res[1]; return $type == "tinyint(1)" ? true : false; } goto nO0T3; onjVT: function has_array($array, $string) { foreach ($array as $a) { if (is_numeric(strrpos($string, trim($a)))) { $ok = true; break; } else { $ok = false; } } return $ok; } goto fTrQB; CIUul: function update_entry($exclusiones, $tabla, $conditions) { $values = "fecha_modificacion = NOW()"; foreach ($_POST as $key => $val) { if (!strpos(" " . $exclusiones, $key)) { $values .= ", {$key} = '{$val}'"; } } $insert = update_bd($tabla, $values, $conditions); if ($insert) { return true; } else { return false; } } goto KT6fJ; v88rT: function manage_files($col_archivos, $opcion, $tabla, $id) { $dir = "../../imagenes/{$tabla}"; $dir_docs = "../../docs/{$tabla}"; if (count($col_archivos) > 1) { foreach ($col_archivos as $row) { $row = trim($row); $file = $_FILES[$row]["name"]; if ($file != '' and $file != "false") { $file_ext = strtolower(substr(strrchr($_FILES[$row]["name"], "."), 1)); if ($opcion[trim($row)] and $opcion[$row] != '' and $opcion[$row] != "false") { $tamanos = explode(",", $opcion[trim($row)]); $width = intval($tamanos[0]); $height = intval($tamanos[1]); } else { $width = ($opcion["width"] != '' and $opcion["width"] != "false") ? (int) $opcion["width"] : 0; $height = ($opcion["height"] != '' and $opcion["height"] != "false") ? (int) $opcion["height"] : 0; } if ($width != 0 and $height != 0) { if ($file_ext == "jpg" or $file_ext == "gif" or $file_ext == "png") { $width_thumb = (int) $opcion["width_thumb"]; $height_thumb = (int) $opcion["height_thumb"]; $thumb = $width_thum != '' ? 1 : 0; $img = add_img(trim($row), $dir, $tabla, $id, $width, $height, $thumb, $width_thumb, $height_thumb, false); $error .= $img["error"]; $values .= $img["valores"]; } else { $error .= "Formato de archivo incorrecto.&tipo=error"; } } elseif ($file_ext != '' and $file_ext != "false") { $extensions = "doc, docx, ppt, pptx, xls, xlsx, pdf, dwg, swf"; $file = add_file($row, $dir_docs, $tabla, $id, $extensions); $error .= $file["error"]; $values .= $file["valores"]; } } } } else { $file = $_FILES[$col_archivos]["name"]; $file_ext = strtolower(substr(strrchr($_FILES[$col_archivos]["name"], "."), 1)); if ($opcion[trim($row)] and $opcion[$row] != '' and $opcion[$row] != "false") { $tamanos = explode(",", $opcion[trim($row)]); $width = intval($tamanos[0]); $height = intval($tamanos[1]); } else { $width = $opcion["width"] != '' ? (int) $opcion["width"] : 0; $height = $opcion["height"] != '' ? (int) $opcion["height"] : 0; } if ($width != 0 and $height != 0) { if ($file_ext == "jpg" or $file_ext == "gif" or $file_ext == "png") { $width_thumb = (int) $opcion["width_thumb"]; $height_thumb = (int) $opcion["height_thumb"]; $thumb = $width_thumb != '' ? 1 : 0; $img = add_img($col_archivos, $dir, $tabla, $id, $width, $height, $thumb, $width_thumb, $height_thumb, false); $error .= $img["error"]; $values .= $img["valores"]; } else { $error .= "Formato de archivo incorrecto.&tipo=error"; } } elseif ($file_ext != '' and $file_ext != "false") { $extensions = "doc, docx, ppt, pptx, xls, xlsx, pdf, dwg, swf"; $file = add_file(trim($col_archivos), $dir_docs, $tabla, $id, $extensions); $error .= $file["error"]; $values .= $file["valores"]; $entro = $values; } } return array("error" => $error, "values" => $values); } goto SKXX3; ag7l9: function get_valor_economico($valor) { $url = "https://moldeable.com/valores_economicos/{$valor}.php"; $lineas = file($url); return trim(strip_tags($lineas[0])); } goto KBoc5; PGRXF: function get_last($table) { $conexion = $GLOBALS["conexion"]; $sql = "SELECT id FROM {$table} ORDER BY id DESC LIMIT 1"; $run = mysqli_query($conexion, $sql); $res = mysqli_fetch_array($run); $last = $res[0]; return $last; } goto LuGrJ; zLsmA: function dias_transcurridos($fecha_i, $fecha_f) { $dias = (strtotime($fecha_i) - strtotime($fecha_f)) / 86400; $dias = abs($dias); if (strtotime($fecha_i) > strtotime($fecha_f)) { return "-" . $dias; } else { return $dias; } } goto P8YDy; ltklc: function webp($img) { $extension = pathinfo($img, PATHINFO_EXTENSION); $nombre_base = basename($img, "." . $extension); $nombreWebP = $nombre_base . ".webp"; return $nombreWebP; } goto Q92wT; JIYWV: function check_install() { if (file_exists("install.php")) { die(header("location:install.php")); } return false; } goto gdecQ; nT16S: function consulta_bd2($campos, $table, $conditions, $orden, $arrCondiciones) { $conexion = $GLOBALS["conexion"]; $columnas = explode(",", $campos); $cant_columnas = count($columnas); $sql = "SELECT {$campos} FROM {$table}"; if ($conditions != '') { $sql .= " WHERE {$conditions}"; } if ($orden != '') { $sql .= " ORDER BY {$orden}"; } if ($run = $conexion->prepare($sql)) { $refArr = $arrCondiciones; $ref = new ReflectionClass("mysqli_stmt"); $method = $ref->getMethod("bind_param"); $method->invokeArgs($run, $refArr); $run->execute(); $meta = $run->result_metadata(); while ($field = $meta->fetch_field()) { $params[] =& $row[$field->name]; } call_user_func_array(array($run, "bind_result"), $params); if (!$run) { die("Error description: " . $run->error); } $i = 0; while ($run->fetch()) { $j = 0; foreach ($row as $key => $val) { $c[$j] = $val; $j++; } $result[] = $c; $i++; } $run->close(); } else { printf("Errormessage: %s
", $conexion->error); printf("consulta: %s\xa", $sql); } return $result; } goto Q1S3a; JYUxP: function eng_sql($string) { $newstring = stripslashes($string); $new = addslashes($newstring); return $new; } goto hNqtB; A_S8s: function tiempoSesion() { $inactivo = 36000; if (isset($_SESSION["tiempo"])) { $vida_session = time() - $_SESSION["tiempo"]; $_SESSION["tiempoVidaSesion"] = $vida_session; if ($vida_session > $inactivo) { unset($_SESSION["usuario_id"]); unset($_SESSION["tiempo"]); unset($_SESSION["tiempoVidaSesion"]); return false; } else { return true; } } else { $_SESSION["tiempo"] = time(); return true; } } goto GshGA; vxwG9: function del_bd($table, $id) { $conexion = $GLOBALS["conexion_writer"]; $sql = sprintf("DELETE FROM {$table} WHERE id = '%d'", mysqli_real_escape_string($conexion, $id)); $run = mysqli_query($conexion, $sql) or die(mysqli_error($conexion) . "<br /><br />{$sql}"); if ($run) { return true; } else { return false; } } goto BukG9; Yzft3: function is_dependent($name) { $buscar = "_id"; if (strrpos($name, $buscar)) { return true; } else { return false; } } goto Vy20M; Kosu3: function diferencia_fechas($date1, $date2) { $date1_seconds = strtotime($date1); $date2_seconds = strtotime($date2); $dif_seg = $date2_seconds - $date1_seconds; if ($dif_seg < 60) { $return = "hace {$dif_seg} segundos"; } else { $dif_min = floor($dif_seg / 60); if ($dif_min < 60) { if ($dif_min == 1) { $return = "hace {$dif_min} minuto"; } else { $return = "hace {$dif_min} minutos"; } } else { $dif_hora = floor($dif_min / 60); if ($dif_hora < 24) { if ($dif_hora == 1) { $return = "hace {$dif_hora} hora"; } else { $return = "hace {$dif_hora} horas"; } } else { $dif_dias = floor($dif_hora / 24); if ($dif_dias < 24) { if ($dif_dias == 1) { $hora_publicacion = date("H:m:s", $date1_seconds); $return = "ayer a las {$hora_publicacion}"; } else { $return = "hace {$dif_dias} d\xc3\255as"; } } else { $date_1_b = date("m-d-Y", $date1_seconds); $return = "el {$date_1_b}"; } } } } return $return; } goto ZGpEO; vKK8h: function extension($nombre_archivo) { $nombre = explode(".", $nombre_archivo); $extension = end($nombre); return $extension; } goto nGiPB; Ynwkk: function formato_fecha($fecha, $idioma) { $fechas = explode("-", $fecha); $ano = $fechas[0]; $dia = $fechas[2]; if ($fechas[1] == "01") { if ($idioma == "esp") { $mes = "Enero"; } else { if ($idioma == "eng") { $mes = "January"; } } } else { if ($fechas[1] == "02") { if ($idioma == "esp") { $mes = "Febrero"; } else { if ($idioma == "eng") { $mes = "February"; } } } else { if ($fechas[1] == "03") { if ($idioma == "esp") { $mes = "Marzo"; } else { if ($idioma == "eng") { $mes = "March"; } } } else { if ($fechas[1] == "04") { if ($idioma == "esp") { $mes = "Abril"; } else { if ($idioma == "eng") { $mes = "April"; } } } else { if ($fechas[1] == "05") { if ($idioma == "esp") { $mes = "Mayo"; } else { if ($idioma == "eng") { $mes = "May"; } } } else { if ($fechas[1] == "06") { if ($idioma == "esp") { $mes = "Junio"; } else { if ($idioma == "eng") { $mes = "Jun"; } } } else { if ($fechas[1] == "07") { if ($idioma == "esp") { $mes = "Julio"; } else { if ($idioma == "eng") { $mes = "July"; } } } else { if ($fechas[1] == "08") { if ($idioma == "esp") { $mes = "Agosto"; } else { if ($idioma == "eng") { $mes = "August"; } } } else { if ($fechas[1] == "09") { if ($idioma == "esp") { $mes = "Septiembre"; } else { if ($idioma == "eng") { $mes = "September"; } } } else { if ($fechas[1] == "10") { if ($idioma == "esp") { $mes = "Octubre"; } else { if ($idioma == "eng") { $mes = "October"; } } } else { if ($fechas[1] == "11") { if ($idioma == "esp") { $mes = "Noviembre"; } else { if ($idioma == "eng") { $mes = "November"; } } } else { if ($fechas[1] == "12") { if ($idioma == "esp") { $mes = "Diciembre"; } else { if ($idioma == "eng") { $mes = "December"; } } } } } } } } } } } } } } if ($dia == '') { return ''; } else { if ($idioma == "esp") { return $dia . " de " . $mes . " del " . $ano; } else { return $mes . " " . $dia . " " . $ano; } } } goto zLsmA; yOzLb: function get_gets($except) { $excepciones = explode(",", $except); foreach ($_GET as $key => $val) { $ok = true; foreach ($excepciones as $no) { if ($key == trim($no)) { $ok = false; } } if ($ok) { $valurl = urlencode($val); $variables .= "&{$key}={$valurl}"; } } return $variables; } goto UsbuF; Q92wT: function logClientes($tipo, $cadena, $cardcode) { if (file_exists(__DIR__ . "/log/CLIENTES_" . $cardcode . "_" . date("Y-m-d") . ".log")) { } else { $fileName = __DIR__ . "/log/CLIENTES_" . $cardcode . "_" . date("Y-m-d") . ".log"; $contenidoInicial = "Log Clientes " . date("Y-m-d") . "
"; file_put_contents($fileName, $contenidoInicial); } $arch = fopen(__DIR__ . "/log/CLIENTES_" . $cardcode . "_" . date("Y-m-d") . ".log", "a+"); fwrite($arch, $tipo . ": " . $cadena . "\xa"); fclose($arch); } goto GcwbB; hzrDZ: function update_bd($table, $values, $conditions) { $conexion = $GLOBALS["conexion_writer"]; $sql = "UPDATE {$table} SET {$values} "; if ($conditions != '') { $sql .= "WHERE {$conditions}"; } $run = mysqli_query($conexion, $sql) or die(mysqli_error($conexion) . "<br /><br />{$sql}"); if ($run) { return true; } else { return false; } } goto FVw9g; SKXX3: function is_animated_gif($filename) { $raw = file_get_contents($filename); $offset = 0; $frames = 0; while ($frames < 2) { $where1 = strpos($raw, "\0!\xf9\4", $offset); if ($where1 === false) { break; } else { $offset = $where1 + 1; $where2 = strpos($raw, "\0,", $offset); if ($where2 === false) { break; } else { if ($where1 + 8 == $where2) { $frames++; } $offset = $where2 + 1; } } } return $frames > 1; } goto T3lhr; ZGpEO: function select_paises() { $return = "<select name="select_pais"><option value="">Seleccione...</option><option value="Africa">Africa</option><option value="Argentina">Argentina</option><option value="Australia">Australia</option><option value="Austria">Austria</option><option value="Belgium">Belgium</option><option value="Brazil">Brazil</option><option value="Bulgaria">Bulgaria</option><option value="Canada">Canada</option><option value="Caribbean">Caribbean</option><option value="Central America">Central America</option><option value="Chile" selected="selected">Chile</option><option value="China">China</option><option value="Colombia">Colombia</option><option value="Costa Rica">Costa Rica</option><option value="Croatia">Croatia</option><option value="Czech Republic">Czech Republic</option><option value="Denmark">Denmark</option><option value="Dominican Republic">Dominican Republic</option><option value="Estonia">Estonia</option><option value="Finland">Finland</option><option value="France">France</option><option value="Germany">Germany</option><option value="Greece">Greece</option><option value="Guatemala">Guatemala</option><option value="Hong Kong">Hong Kong</option><option value="Hungary">Hungary</option><option value="India">India</option><option value="Indonesia">Indonesia</option><option value="Ireland">Ireland</option><option value="Israel">Israel</option><option value="Italy">Italy</option><option value="Japan">Japan</option><option value="Korea">Korea</option><option value="Latvia">Latvia</option><option value="Lithuania">Lithuania</option><option value="Malaysia">Malaysia</option><option value="Mexico">Mexico</option><option value="Middle East">Middle East</option><option value="Morocco">Morocco</option><option value="Netherlands">Netherlands</option><option value="New Zealand">New Zealand</option><option value="Norway">Norway</option><option value="Panama">Panama</option><option value="Peru">Peru</option><option value="Philippines">Philippines</option><option value="Poland">Poland</option><option value="Portugal">Portugal</option><option value="Puerto Rico">Puerto Rico</option><option value="Romania">Romania</option><option value="Russian Federation">Russian Federation</option><option value="Singapore">Singapore</option><option value="Slovakia">Slovakia</option><option value="Slovenia">Slovenia</option><option value="South Africa">South Africa</option><option value="Spain">Spain</option><option value="Sweden">Sweden</option><option value="Switzerland">Switzerland</option><option value="Taiwan">Taiwan</option><option value="Thailand">Thailand</option><option value="Turkey">Turkey</option><option value="Ukraine">Ukraine</option><option value="United Kingdom">United Kingdom</option><option value="United States">United States</option><option value="Venezuela">Venezuela</option><option value="Vietnam">Vietnam</option></select>"; return $return; } goto HYdwH; LJso4: function enum_vals($column, $table) { $conexion = $GLOBALS["conexion"]; $sql = "SHOW COLUMNS FROM {$table} WHERE field = '{$column}'"; $run = mysqli_query($conexion, $sql); $res = mysqli_fetch_array($run); $type = $res[1]; $buscar = array("enum", "(", ")", "'"); $vals = str_replace($buscar, '', $type); return explode(",", $vals); } goto T6mW3; Q1S3a: function update_bd2($table, $values, $conditions, $arrCondiciones) { $conexion = $GLOBALS["conexion_writer"]; $sql = "UPDATE {$table} SET {$values} WHERE {$conditions}"; $stmt = $conexion->prepare($sql); $refArr = $arrCondiciones; $ref = new ReflectionClass("mysqli_stmt"); $method = $ref->getMethod("bind_param"); $method->invokeArgs($stmt, $refArr); $stmt->execute(); if ($run) { return true; } else { return false; } } goto ftE65; T6mW3: function img_tag($file, $w, $h) { $size = getimagesize($file); $width = $size[0]; $height = $size[1]; if ($width > $w) { $p = $w / $width; $x = $p * $width; $y = $p * $height; if ($y > $h) { $p = $h / $y; $x = $p * $x; $y = $p * $y; } } elseif ($height > $h) { $p = $h / $height; $x = $p * $width; $y = $p * $height; if ($x > $width) { $p = $h / $x; $x = $p * $x; $y = $p * $y; } } else { $x = $width; $y = $height; } return "<img src="" . $file . "" width="" . $x . "px" height="" . $y . "px" border="0">"; } goto e1kzm; qSlna: function obtener_tabla_id($tabla) { $filas = consulta_bd("id", "tablas", "nombre = '{$tabla}'", ''); $id = $filas[0][0]; return $id; } goto FOwg4; P8YDy: function previewDatos($dato) { $datoCodificado = ''; $caracteres = str_split($dato); foreach ($caracteres as $key => $valor) { if ($key > 3) { if ($valor == " ") { $datoF = " "; } elseif ($valor == "@") { $datoF = $valor; } else { $datoF = "*"; } } else { $datoF = $valor; } $datoCodificado .= $datoF; } return $datoCodificado; } goto yMOEV; XdvMZ: function obtener_tabla($val_op) { $filas = consulta_bd("nombre", "tablas", "id = '{$val_op}'", ''); $nombre = (is_countable($filas) and count($filas) > 0) ? $filas[0][0] : false; return $nombre; } goto qSlna; BNkaI: function get_real_name($nombre) { $real_name = str_replace("_", " ", $nombre); $palabras = explode(" ", $real_name); if (count($palabras) > 1) { $i == 0; foreach ($palabras as $palabra) { $nombre_final .= $i == 0 ? ucwords(ortografia($palabra)) : " " . ortografia($palabra); $i++; } } else { $nombre_final = ucwords(ortografia($nombre)); } return $nombre_final; } goto QYdQ9; rCD7b: function is_md5($var) { return preg_match("/^[A-Fa-f0-9]{32}$/", $var); } goto TGzmL; LuGrJ: function fecha_sql($fecha) { if (strtotime($fecha)) { $fecha_cl = date("d/m/Y - H:i", strtotime($fecha)); } else { $fecha_cl = date("d/m/Y - H:i"); } return $fecha_cl; } goto JM1XE; e1kzm: function is_date($string) { if (strlen($string) == 10 || strlen($string) == 19) { $dia = substr($string, 8, 2); $ano = substr($string, 0, 4); $mes = substr($string, 5, 2); if (is_numeric($dia) and is_numeric($mes) and is_numeric($ano)) { return checkdate($mes, $dia, $ano); } else { return false; } } else { return false; } } goto v88rT; u4_Y0: function delete_bd_where($table, $where) { $conexion = $GLOBALS["conexion_writer"]; $sql = "DELETE FROM {$table} WHERE {$where}"; $run = mysqli_query($conexion, $sql) or die(mysqli_error($conexion) . "<br /><br />{$sql}"); if ($run) { return true; } else { return false; } } goto hQHc5; hNqtB: function insert_entry($exclusiones, $tabla) { $keys = "fecha_creacion"; $vals = "NOW()"; foreach ($_POST as $key => $val) { if (!strpos(" " . $exclusiones, $key)) { $keys .= ", {$key}"; $vals .= ", '{$val}'"; } } $insert = insert_bd($tabla, $keys, $vals); if ($insert) { return true; } else { return false; } } goto CIUul; Vy20M: function column_is_related($column) { $is_id = substr($column, -3, 3); if ($is_id == "_id") { $parent_name = substr($column, 0, -3); return $parent_name; } else { return false; } } goto Toq55; OjbiE: function validar_rut($r, $dv) { $r = str_replace(".", '', trim($r)); $s = 1; for ($m = 0; $r != 0; $r /= 10) { $s = ($s + $r % 10 * (9 - $m++ % 6)) % 11; } return chr($s ? $s + 47 : 75) == strtoupper($dv); } goto Yzft3; BukG9: function truncate($table) { $conexion = $GLOBALS["conexion_writer"]; $sql = sprintf("DELETE FROM {$table}", $conexion); $run = mysqli_query($conexion, $sql) or die(mysqli_error($conexion) . "<br /><br />{$sql}"); if ($run) { return true; } else { return false; } } goto HpQKx; T3lhr: function add_file($input_name, $dir, $tabla, $id, $extensions) { $conexion = $GLOBALS["conexion"]; if (!file_exists($dir . "/")) { $mk = mkdir($dir); if (!$mk) { $error = "Error al crear el directorio.&tipo=error"; } } if ($error == '') { if ($_FILES[$input_name]["name"]) { if ($_FILES[$input_name]["size"] < 209715200) { $file_name = str_replace(" ", "_", substr($_FILES[$input_name]["name"], 0, -4)); $file_name = str_replace(".", '', $file_name); $file_ext = strtolower(substr(strrchr($_FILES[$input_name]["name"], "."), 1)); $extension = explode(",", $extensions); $cant_ex = count($extension); $ok = false; foreach ($extension as $ex) { if ($file_ext == trim($ex)) { $ok = true; break; } } if ($ok) { $date = date("dmhis"); $archivo = $date . "_" . $file_name . "." . $file_ext; $dir1 = "{$dir}/{$archivo}"; $move = move_uploaded_file($_FILES[$input_name]["tmp_name"], $dir1); if ($move) { if ($id) { $img_q = "SELECT {$input_name} FROM {$tabla} WHERE id = '{$id}'"; $run = mysqli_query($conexion, $img_q); $res = mysqli_fetch_array($run); $img = "{$dir}/" . $res[0]; if ($res[0] != '') { unlink($img); } } $values .= ", {$input_name} = '{$archivo}'"; } else { $error = "Error al cargar el archivo, por favor int\303\251ntelo nuevamente.&tipo=error"; } } else { $error = "Tipo de archivo incorrecto, debe ser {$extensions} y es {$file_ext}&tipo=notificacion"; } } else { $error = "Tama\xc3\xb1o del archivo debe ser menor a 200MB &tipo=notificacion"; } } else { $error = "Error al procesar el archivo, archivo no encontrado.&tipo=error"; } } $return = array("error" => $error, "valores" => $values); return $return; } goto nG7M3; yMOEV: function sumaDiasHabiles() { $fechaInicial = date("Y-m-d"); $MaxDias = 2; for ($i = 0; $i < $MaxDias; $i++) { $Segundos = $Segundos + 86400; $caduca = date("D", time() + $Segundos); if ($caduca == "Sat") { $i--; } else { if ($caduca == "Sun") { $i--; } else { $FechaFinal = date("d-m-Y", time() + $Segundos); } } } return $FechaFinal; } goto JFmn0; nGiPB: function extraer_numero($cadena) { $numero = ''; for ($index = 0; $index < strlen($cadena); $index++) { if (is_numeric($cadena[$index])) { $numero .= $cadena[$index]; } } return $numero; } goto ag7l9; uPkz5: date_default_timezone_set("America/Santiago"); goto in62A; v03jA: function get_nombre_sitio($nombre) { $largo = strlen($nombre); $buscar = "_"; if (strrpos($nombre, $buscar)) { $nombre_real = ucwords(strtolower(substr(strrchr($nombre, "_"), 1))); } else { $nombre_real = ucwords($nombre); } return $nombre_real; } goto ri5bJ; gN_5x: function prepare_img($html) { $url_sitio = get_option("url_sitio"); return str_replace("src="../", "src="" . $url_sitio . "/", $html); } goto prPQf; yAOrQ: function num_hojas($page, $total, $limite_hoja, $op, $buscar) { if ($total > $limite_hoja) { $restantes = $total - $limite_hoja; $hojas = ceil($restantes / $limite_hoja); if ($page != 0) { $prev = $page; echo "<a href="index.php?op=" . $op . "&page=" . $prev . "&buscar=" . $buscar . "" class="page">Anterior</a> "; } $j = 0; while ($j <= $hojas) { $k = $j + 1; echo "<a href="index.php?op=" . $op . "&page=" . $k . "&buscar=" . $buscar . "" "; if ($page == $j) { echo "class="page_selected">"; } else { echo "class="page">"; } echo $k; echo "</a> "; $j++; } if ($page != $hojas) { $next = $page + 2; echo "<a href="index.php?op=" . $op . "&page=" . $next . "&buscar=" . $buscar . "" class="page" onclick="submit()">Siguiente</a> "; } } } goto PGRXF; nkYr4: function column_exists($table, $column) { $conexion = $GLOBALS["conexion"]; $sql = "SHOW columns FROM {$table}"; $run = mysqli_query($conexion, $sql) or die(mysqli_error() . "<br /><br />{$sql}"); $i = 0; $z = 0; while ($line = mysqli_fetch_array($run)) { $ok = false; if (trim($column) == $line[0]) { $ok = true; break; } $i++; } return $ok; } goto gN_5x; GIbdc: function is_inside($buscados, $string) { $exclusiones = explode(",", $buscados); $is_id = substr($string, -3, 3); if ($is_id != "_id") { foreach ($exclusiones as $no) { if ($string == trim($no)) { return true; break; } else { $ok = 1; } } } else { $ok = 1; } if ($ok) { return false; } } goto JYUxP; GIWji: function does_url_exists($url) { $ch = curl_init($url); curl_setopt($ch, CURLOPT_NOBODY, true); curl_exec($ch); $code = curl_getinfo($ch, CURLINFO_HTTP_CODE); if ($code == 200) { $status = true; } else { $status = false; } curl_close($ch); return $status; } goto CZMcD; O4A3Z: function consulta_bd_por_id($campos, $table, $conditions, $id) { $conexion = $GLOBALS["conexion"]; if (is_numeric((int) $id)) { $sql = "SELECT {$campos} FROM {$table}"; if ($conditions != '') { $sql .= " WHERE {$conditions} AND id = '{$id}'"; } else { $sql .= " WHERE id = '{$id}'"; } } else { die("Error, identificador no v\xc3\241lido"); } $run = mysqli_query($conexion, $sql) or die(mysqli_error($conexion) . "<br /><br />{$sql}"); $line = mysqli_fetch_array($run); return $line; } goto hzrDZ; hQHc5: function show_columns($table, $exception) { $conexion = $GLOBALS["conexion"]; if ($exception != '') { $excepciones = explode(",", $exception); } $sql = "SHOW columns FROM {$table}"; $run = mysqli_query($conexion, $sql) or die(mysqli_error($conexion) . "<br /><br />{$sql}"); $i = 0; $z = 0; while ($line = mysqli_fetch_array($run)) { $ok = true; foreach ($excepciones as $val) { if (trim($val) == $line[0]) { $ok = false; } } if ($ok) { $resulset[$z] = "{$line["0"]}"; $z++; } $i++; } return $resulset; } goto yAOrQ; nO0T3: function is_enum($column, $table) { $conexion = $GLOBALS["conexion"]; $sql = "SHOW COLUMNS FROM {$table} WHERE field = '{$column}'"; $run = mysqli_query($conexion, $sql); $res = mysqli_fetch_array($run); $type = $res[1]; return substr_count($type, "enum") != 0 ? true : false; } goto LJso4; CZMcD: function imagen($url, $file) { $nombre_fichero = $url . $file; if (strpos($_SERVER["HTTP_ACCEPT"], "image/webp") !== false) { $supported = true; } else { $supported = false; } if ($file == '') { if ($supported) { $imagen = "sinFoto.webp"; } else { $imagen = "sinFoto.jpg"; } return $url . $imagen; die; } $extension = pathinfo($file, PATHINFO_EXTENSION); $nombre_base = basename($file, "." . $extension); $nombreWebP = $nombre_base . ".webp"; if ($supported) { if (file_exists($url . $nombreWebP)) { $imagen = $url . $nombreWebP; } else { $imagen = $nombre_fichero; } } else { $imagen = $nombre_fichero; } return $imagen; } goto hVtuw; G9s4b: function opciones($campo) { $conexion = $GLOBALS["conexion"]; $opciones = consulta_bd("valor", "opciones", "nombre = '{$campo}'", ''); if (is_countable($opciones) and count($opciones) > 0) { $valor = $opciones[0][0]; return $valor; } } goto GIWji; K_vKS: function del_file($file) { if (file_exists($file)) { $unlink = unlink($file); if ($unlink) { return true; } else { return false; } } else { return false; } } goto GIbdc; FVw9g: function insert_bd($table, $campos, $values) { $conexion = $GLOBALS["conexion_writer"]; $sql = "INSERT INTO {$table} ({$campos}) VALUES ({$values})"; $run = mysqli_query($conexion, $sql) or die(mysqli_error($conexion) . "<br /><br />{$sql}"); if ($run) { return true; } else { return false; } } goto vxwG9; FOwg4: function comprobar_rut($sUsr) { $sUsr = str_replace(".", '', $sUsr); if (!preg_match("/(\d{7,8})-([\dK])/", strtoupper($sUsr), $aMatch)) { return false; } $sRutBase = substr(strrev($aMatch[1]), 0, 8); $sCodigoVerificador = $aMatch[2]; $iCont = 2; $iSuma = 0; for ($i = 0; $i <= strlen($sRutBase); $i++) { if ($iCont > 7) { $iCont = 2; } $iSuma += $sRutBase[$i] * $iCont; $iCont++; } $iDigito = 11 - $iSuma % 11; $sCaracter = substr("-123456789K0", $iDigito, 1); return $sCaracter == $sCodigoVerificador; } goto OjbiE; uDzTo: function comprobar_mail($email) { $mail_correcto = 0; if (strlen($email) >= 6 && substr_count($email, "@") == 1 && substr($email, 0, 1) != "@" && substr($email, strlen($email) - 1, 1) != "@") { if (!strstr($email, "'") && !strstr($email, """) && !strstr($email, "\") && !strstr($email, "$") && !strstr($email, " ")) { if (substr_count($email, ".") >= 1) { $term_dom = substr(strrchr($email, "."), 1); if (strlen($term_dom) > 1 && strlen($term_dom) < 5 && !strstr($term_dom, "@")) { $antes_dom = substr($email, 0, strlen($email) - strlen($term_dom) - 1); $caracter_ult = substr($antes_dom, strlen($antes_dom) - 1, 1); if ($caracter_ult != "@" && $caracter_ult != ".") { $mail_correcto = 1; } } } } } if ($mail_correcto) { return 1; } else { return 0; } } goto QDf8U; KBoc5: function url_amigables($url) { $find = array("\xc3\xa1", "\xc3\251", "\xc3\xad", "\303\263", "\xc3\xba", "\303\xb1", "\303\201", "\xc3\211", "\303\x8d", "\303\223", "\xc3\232", "\xc3\221"); $repl = array("a", "e", "i", "o", "u", "n", "A", "E", "I", "O", "U", "N"); $url = str_replace($find, $repl, $url); $url = strtolower($url); $find = array(" ", "&", "\r\n", "\n", "+"); $url = str_replace($find, "-", $url); $find = array("/[^a-z0-9\-<>]/", "/[\-]+/", "/<[^>]*>/"); $repl = array('', "-", ''); $url = preg_replace($find, $repl, $url); return $url; } goto Ynwkk; dgTi3: function get_asociados($tabla, $asociados, $id) { $id_tabla = singular($tabla) . "_id"; $cantidad = consulta_bd("COUNT(*)", "{$asociados}", "{$id_tabla} = {$id}", ''); return $cantidad[0][0]; } goto vKK8h; PlIW1: function check_admin_loged($hash, $user) { $conexion = $GLOBALS["conexion"]; $is = consulta_bd("*", "administradores", "id = '{$user}' AND session_hash = '{$hash}'", ''); $cant = mysqli_affected_rows($conexion); if ($cant == 1) { return true; } else { return false; } } goto v03jA; UsbuF: function get_val_op($op) { $value = substr($op, 0, -1); return $value; } goto cnqDs; KT6fJ: function get_option($val) { $res = consulta_bd("valor", "opciones", "nombre = '{$val}'", ''); $respuesta = (is_countable($res) and count($res) > 0) ? $res[0][0] : false; return $respuesta; } goto nkYr4; fTrQB: function plural($string) { $ultima = substr($string, -1, 1); $vocales = array("a", "e", "i", "o", "u"); foreach ($vocales as $v) { if ($v == $ultima) { $ter = "s"; break; } else { $ter = "es"; } } $plural = "{$string}{$ter}"; return $plural; } goto XdvMZ; Toq55: function check_if_item_has_belongs_to($column) { $conexion = $GLOBALS["conexion"]; $nombre_tabla_hijo = plural(substr($column, 0, -3)); $id_tabla_hijo = consulta_bd("id", "tablas", "nombre = '{$nombre_tabla_hijo}'", ''); $id_tabla_hijo = $id_tabla_hijo[0][0]; $tabla = consulta_bd("valor", "opciones_tablas", "nombre = 'belongs_to' AND tabla_id = '{$id_tabla_hijo}'", ''); if (mysqli_affected_rows($conexion) > 0) { return $tabla[0][0]; } else { return false; } } goto K_vKS; nG7M3: function add_img($input_name, $dir, $tabla, $id, $width, $height, $thumb, $width_thumb, $height_thumb, $bn) { $conexion = $GLOBALS["conexion"]; if (opciones("s3_activo")) { $bucketName = $_ENV["S3_BUCKET"]; $IAM_KEY = $_ENV["S3_KEY"]; $IAM_SECRET = $_ENV["S3_SECRET"]; $s3 = new Aws\S3\S3Client(array("credentials" => array("key" => $IAM_KEY, "secret" => $IAM_SECRET), "version" => "latest", "region" => "us-east-2")); } if (!file_exists($dir . "/")) { $mk = mkdir($dir); if (!$mk) { $error = "Error al crear el directorio.&tipo=error"; } } if ($thumb) { $dir_thumb = "{$dir}/thumbs/"; if (!file_exists($dir_thumb)) { $mk = mkdir($dir_thumb); if (!$mk) { $error = "Error al crear el directorio.&tipo=error"; } } } if ($error == '') { if ($_FILES[$input_name]["name"]) { if ($_FILES[$input_name]["size"] < 200000000) { $file_name = substr($_FILES[$input_name]["name"], 0, -4); $file_name = str_replace(" ", "_", $file_name); $file_ext = strtolower(substr(strrchr($_FILES[$input_name]["name"], "."), 1)); if ($file_ext == "jpg" or $file_ext == "png" or $file_ext == "gif") { $date = date("dmhis"); $tmp_name = $date . "_" . $file_name . "." . $file_ext; $dir1 = "{$dir}/{$tmp_name}"; $move = move_uploaded_file($_FILES[$input_name]["tmp_name"], $dir1); if (!opciones("s3_activo")) { if ($move) { $animated_gif = is_animated_gif($dir1); if ($animated_gif) { $archivo = $date . "_" . $file_name . "." . $file_ext; $dir2 = "{$dir}/{$archivo}"; $copy = rename($dir1, $dir2); } else { $new_file = resize_foto($dir1, $height, $width, false); $archivo = $date . "_" . $file_name . "." . $file_ext; $dir2 = "{$dir}/{$archivo}"; $copy = copy($new_file, $dir2); if (opciones("usar_webp")) { $archivoWebp = $date . "_" . $file_name . ".webp"; $dirWebp = "{$dir}/{$archivoWebp}"; $path_lib_webp = opciones("path_lib_webp"); $salida = shell_exec("{$path_lib_webp} -q 80 {$dir2} -o {$dirWebp}"); } if ($thumb) { $new_file_thumb = resize_foto($dir1, $height_thumb, $width_thumb, false); $archivo_thumb = $date . "_" . $file_name . "." . $file_ext; $dir3 = "{$dir_thumb}/thumbs_{$archivo_thumb}"; $copy = copy($new_file_thumb, $dir3); if (opciones("usar_webp")) { $archivoWebp_thumb = $date . "_" . $file_name . ".webp"; $dirWebp2 = "{$dir_thumb}/{$archivoWebp_thumb}"; $path_lib_webp = opciones("path_lib_webp"); $salida = shell_exec("{$path_lib_webp} -q 80 {$dir3} -o {$dirWebp2}"); } if ($bn) { $new_file_thumb_bn = resize_foto($dir1, $height_thumb, $width_thumb, true); $archivo_thumb_bn = $date . "_" . $file_name . "_bn." . $file_ext; $dir4 = "{$dir_thumb}/{$archivo_thumb_bn}"; $copy = copy($new_file_thumb_bn, $dir4); } } } if ($copy) { if (!$animated_gif) { unlink($new_file); unlink($dir1); } if ($id) { $img_q = "SELECT {$input_name} FROM {$tabla} WHERE id = '{$id}'"; $run = mysqli_query($conexion, $img_q); $res = mysqli_fetch_array($run); $img1 = "{$dir}/" . $res[0]; $img2 = "{$dir}/thumbs/" . $res[0]; if ($res[0] != '') { if (file_exists($img1)) { unlink($img1); } if (file_exists($img2)) { unlink($img2); } } } $values .= ", {$input_name} = '{$archivo}'"; } else { $size = getimagesize($dir); $error = "Error al copiar la imagen&tipo=error"; } } else { $error = "Error al cargar la im\303\241gen, por favor int\xc3\xa9ntelo nuevamente y revise el tama\303\xb1o de la imagen.&tipo=ventana"; } } else { if ($file_ext == "jpg" or $file_ext == "png") { $new_file = resize_foto($dir1, $height, $width, false); $archivo = $date . "_" . $file_name . "." . $file_ext; $dir2 = "{$dir}/{$archivo}"; $dir2 = str_replace("../", '', $dir2); $result = $s3->putObject(array("Bucket" => $_ENV["S3_BUCKET"], "Key" => $dir2, "SourceFile" => $new_file, "ACL" => "public-read")); if (opciones("usar_webp")) { $archivoWebp = $date . "_" . $file_name . ".webp"; $dirWebp = "{$dir}/{$archivoWebp}"; $path_lib_webp = opciones("path_lib_webp"); $salida = shell_exec("{$path_lib_webp} -q 80 {$dir2} -o {$dirWebp}"); } if ($thumb) { $new_file_thumb = resize_foto($dir1, $height_thumb, $width_thumb, false); $archivo_thumb = $date . "_" . $file_name . "." . $file_ext; $dir3 = "{$dir_thumb}/thumbs_{$archivo_thumb}"; $copy = copy($new_file_thumb, $dir3); if (opciones("usar_webp")) { $archivoWebp_thumb = $date . "_" . $file_name . ".webp"; $dirWebp2 = "{$dir_thumb}/{$archivoWebp_thumb}"; $path_lib_webp = opciones("path_lib_webp"); $salida = shell_exec("{$path_lib_webp} -q 80 {$dir3} -o {$dirWebp2}"); } if ($bn) { $new_file_thumb_bn = resize_foto($dir1, $height_thumb, $width_thumb, true); $archivo_thumb_bn = $date . "_" . $file_name . "_bn." . $file_ext; $dir4 = "{$dir_thumb}/{$archivo_thumb_bn}"; $copy = copy($new_file_thumb_bn, $dir4); } } $values .= ", {$input_name} = '{$archivo}'"; } elseif ($file_ext == "gif") { $archivo = $date . "_" . $file_name . "." . $file_ext; $dir2 = "{$dir}/{$archivo}"; $result = $s3->putObject(array("Bucket" => opciones("s3_bucket"), "Key" => $dir2, "SourceFile" => $_FILES[$input_name]["tmp_name"], "ACL" => "public-read")); $values .= ", {$input_name} = '{$archivo}'"; } else { $error = "Tipo de archivo incorrecto, debe ser JPG, GIF o PNG.&tipo=error"; } } } else { $error = "Tipo de archivo incorrecto, debe ser JPG, GIF o PNG.&tipo=error"; } } else { $error = "Tama\303\261o de la imagen debe ser menor a 5 Mb &tipo=notificacion"; } } } $return = array("error" => $error, "valores" => $values); return $return; } goto Y7oON; ri5bJ: function get_table_id($table) { $q = consulta_bd("id", "tablas", "nombre = '{$table}'", ''); $id = $q[0][0]; return $id; } goto YabZF; MG6b2: function fecha_hes($fecha, $formato, $lang) { $mes_o = date("m", strtotime($fecha)); $dia = date("d", strtotime($fecha)); $ano = date("Y", strtotime($fecha)); $hora = date("H:i:s", strtotime($fecha)); if ($lang == "esp") { switch ($mes_o) { case "01": $mes = "Enero"; break; case "02": $mes = "Febrero"; break; case "03": $mes = "Marzo"; break; case "04": $mes = "Abril"; break; case "05": $mes = "Mayo"; break; case "06": $mes = "Junio"; break; case "07": $mes = "Julio"; break; case "08": $mes = "Agosto"; break; case "09": $mes = "Septiembre"; break; case "10": $mes = "Octubre"; break; case "11": $mes = "Noviembre"; break; case "12": $mes = "Diciembre"; break; } $sep = "de"; $sep2 = "a las"; } elseif ($lang == "ing") { switch ($mes) { case "01": $mes = "January"; break; case "02": $mes = "February"; break; case "03": $mes = "March"; break; case "04": $mes = "April"; break; case "05": $mes = "May"; break; case "06": $mes = "June"; break; case "07": $mes = "July"; break; case "08": $mes = "August"; break; case "09": $mes = "September"; break; case "10": $mes = "October"; break; case "11": $mes = "November"; break; case "12": $mes = "December"; break; } $sep = ''; $sep2 = "at"; } switch ($formato) { case 1: return "{$dia} {$sep} {$mes} {$sep} {$ano}"; break; case 2: return "{$mes} {$sep} {$ano}"; break; case 3: return "{$dia}/{$mes_o}/{$ano} {$sep2}"; break; case 4: return "{$dia}/{$mes_o}/{$ano} {$sep2} {$hora}"; break; } } goto Kosu3; QYdQ9: function ortografia($palabra) { $conexion = $GLOBALS["conexion"]; $regla_aguda = array("n", "s", "i", "u"); $regla_aguda_not = array("ay", "ey", "oy", "uy", "au", "eu", "ou", "os"); $regla_aguda_verbo = array("a", "e", "o"); $regla_grave = array("b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "p", "q", "r", "t", "v", "w", "x", "y", "z"); $vocales = array("a", "e", "i", "o", "u"); $vocales_acentos = array("\303\xa1", "\xc3\251", "\303\xad", "\303\263", "\xc3\xba"); $ultima_letra = strtolower(substr($palabra, -1)); $penultima_letra = strtolower(substr($palabra, -2, 1)); $largo_palabra = strlen($palabra); $palabras_bd = consulta_bd("busqueda", "ortografia", '', ''); $cant = mysqli_affected_rows($conexion); if ($cant > 0) { foreach ($palabras_bd as $pal) { $exclusiones_bd[] = $pal[0]; } } else { $exclusiones_bd[] = ''; } if (has_array($exclusiones_bd, $palabra)) { $palabra_bd = consulta_bd("mostrar", "ortografia", "busqueda = '{$palabra}'", ''); return $palabra_bd[0][0] != '' ? $palabra_bd[0][0] : $palabra; } else { if ($largo_palabra > 2) { if (has_array($regla_aguda, $ultima_letra)) { $resto_palabra = substr($palabra, 0, -2); $dos_ultimas_letras = strtolower(substr($palabra, -2)); $tres_ultimas_letras = strtolower(substr($palabra, -3)); if ($ultima_letra == "s" and !has_array($vocales, $penultima_letra)) { } else { if (!has_array($regla_aguda_not, $ultima_letra) and $tres_ultimas_letras != "gen") { $cambio_aguda = str_replace($vocales, $vocales_acentos, $dos_ultimas_letras); $palabra = $resto_palabra . $cambio_aguda; } } return $palabra; } if (has_array($regla_grave, $ultima_letra)) { $resto_palabra = substr($palabra, 2); $primeras_dos_letras = substr($palabra, 0, 2); $cambio = str_replace($vocales, $volcales_acentos, $primeras_dos_letras); $palabra = $primeras_dos_letras . $resto_palabra; return $palabra; } else { if ($largo_palabra % 2 == 0 and $largo_palabra > 2) { $ultimas_cuatro = strtolower(substr($palabra, -4)); $sin_ultimas_cuatro = strtolower(substr($palabra, 0, -4)); $siguientes_dos = strtolower(substr($sin_ultimas_cuatro, -2)); $resto = strtolower(substr($palabra, 0, -6)); $primera_letra = strtolower(substr($palabra, 0, 1)); $cambio_esd = (!has_array(array("l"), $siguientes_dos) and !has_array($vocales, $primera_letra) or has_array($vocales, $primera_letra)) ? $siguientes_dos : str_replace($vocales, $vocales_acentos, $siguientes_dos); $palabra = $resto . $cambio_esd . $ultimas_cuatro; return $palabra; } else { return $palabra; } } } else { return $palabra; } } } goto onjVT; ftE65: function insert_bd2($table, $campos, $values, $arrCondiciones) { $conexion = $GLOBALS["conexion_writer"]; $sql = "INSERT INTO {$table} ({$campos}) VALUES ({$values})"; $stmt = $conexion->prepare($sql); $refArr = $arrCondiciones; $ref = new ReflectionClass("mysqli_stmt"); $method = $ref->getMethod("bind_param"); $method->invokeArgs($stmt, $refArr); $stmt->execute(); if ($run) { return true; } else { return false; } } goto A_S8s; TGzmL: function formato_moneda($numero, $moneda, $echo) { if ($numero != NULL) { $longitud = strlen($numero); $punto = substr($numero, -1, 1); $punto2 = substr($numero, 0, 1); $separador = "."; if ($punto == ".") { $numero = substr($numero, 0, $longitud - 1); $longitud = strlen($numero); } if ($punto2 == ".") { $numero = "0" . $numero; $longitud = strlen($numero); } $num_entero = strpos($numero, $separador); $centavos = substr($numero, $num_entero); $l_cent = strlen($centavos); if ($l_cent == 2) { $centavos = $centavos . "0"; } elseif ($l_cent == 3) { $centavos = $centavos; } elseif ($l_cent > 3) { $centavos = substr($centavos, 0, 3); } $entero = substr($numero, -$longitud, $longitud - $l_cent); if (!$num_entero) { $num_entero = $longitud; $centavos = ".00"; $entero = substr($numero, -$longitud, $longitud); } $start = floor($num_entero / 3); $res = $num_entero - $start * 3; if ($res == 0) { $coma = $start - 1; $init = 0; } else { $coma = $start; $init = 3 - $res; } $d = $init; $i = 0; $c = $coma; while ($i <= $num_entero) { if ($d == 3 && $c > 0) { $d = 0; $sep = "."; $c = $c - 1; } else { $sep = ''; } $final .= $sep . $entero[$i]; $i = $i + 1; $d = $d + 1; } } else { $final = 0; } if ($moneda == "pesos") { $moneda = "$"; if ($echo) { echo $moneda . " " . $final; } else { return $moneda . " " . $final; } } elseif ($moneda == "dolares") { $moneda = "USD"; if ($echo) { echo $moneda . " " . $final . $centavos; } else { return $moneda . " " . $final . $centavos; } } elseif ($moneda == "euros") { $moneda = "EUR"; if ($echo) { echo $final . $centavos . " " . $moneda; } else { return $final . $centavos . " " . $moneda; } } else { if ($echo) { echo $final; } else { return $final; } } } goto pYgTb; UTQ2t: function checkbox($valor, $activo, $id) { if ($valor == "1") { $checked = "checked="checked""; } else { $checked = ''; } if ($activo == "1") { $disabled = ''; } elseif ($activo == "0") { $disabled = "disabled="disabled""; } if ($id != '') { $name = "checkbox{$id}"; } else { $name = "checkbox"; } $mostrar = "<label>
\x9\x9\x9\x9 <input name="" . "{$name}" . "" type="checkbox" id="checkbox" " . $checked . " " . $disabled . " value="1"/>
\x9 \x9</label>"; echo "{$mostrar}"; } goto bVNQb; GcwbB: ?>
Did this file decode correctly?
Original Code
<?php
goto uPkz5; QDf8U: function consulta_bd($campos, $table, $conditions, $orden) { $conexion = $GLOBALS["\x63\x6f\156\145\x78\x69\x6f\156"]; if ($campos == "\52") { $sql0 = "\x53\110\x4f\127\x20\x63\x6f\154\165\x6d\156\163\40\x46\x52\117\115\40{$table}"; $run0 = mysqli_query($conexion, $sql0); $cant_columnas = mysqli_affected_rows($conexion); } else { $columnas = explode("\54", $campos); $cant_columnas = count($columnas); } $sql = "\x53\x45\x4c\105\x43\x54\x20{$campos}\40\x46\x52\x4f\x4d\x20{$table}"; $whereConsulta = ($conditions != '' and $conditions != "\146\141\154\x73\x65") ? true : false; if ($whereConsulta) { $sql .= "\x20\127\x48\x45\x52\x45\x20{$conditions}"; } $whereOrden = ($orden != '' and $orden != "\x66\x61\154\163\145") ? true : false; if ($whereOrden) { $sql .= "\40\117\x52\x44\x45\x52\40\x42\x59\x20{$orden}"; } if (!mysqli_query($conexion, $sql)) { die("\x45\x72\x72\157\x72\40\144\145\x73\x63\162\x69\160\x74\151\157\156\x3a\40" . mysqli_error($conexion) . "\x3c\142\162\40\57\x3e\x3c\x62\162\40\57\x3e{$sql}"); } $resulset = array(); $run = mysqli_query($conexion, $sql); $i = 0; while ($line = mysqli_fetch_array($run)) { $j = 0; $resulsetInterior = array(); while ($j <= $cant_columnas - 1) { $line2 = !empty($line[$j]) ? $line[$j] : "\146\x61\154\x73\145"; $stripslashes = stripslashes($line2); array_push($resulsetInterior, $stripslashes); $j++; } array_push($resulset, $resulsetInterior); $i++; } return $resulset; } goto O4A3Z; gdecQ: function prevnext($id, $tabla, $galeria_id) { $filas = consulta_bd("\x69\x64", "\151\x6d\x67\x5f{$tabla}", "\x67\141\x6c\145\x72\151\141\x5f\x69\x64\x20\75\40{$galeria_id}", "\151\x64\x20\101\123\103"); $i = 0; while ($i <= count($filas) - 1) { $id_actual = $filas[$i][0]; if ($id_actual == $id) { $return[0] = $filas[$i - 1][0]; $return[1] = $filas[$i + 1][0]; break; } $i++; } return $return; } goto PlIW1; hVtuw: function imagenWeb($url, $file) { $nombre_fichero = $_ENV["\x53\63\137\x55\122\x4c"] . $url . $file; if (empty($file)) { return false; } if (strpos($_SERVER["\110\124\124\120\137\101\x43\103\105\x50\124"], "\151\x6d\x61\147\x65\x2f\167\x65\142\160") !== false) { $supported = true; } else { $supported = false; } if ($file == '') { if ($supported) { $imagen = "\x73\151\x6e\106\x6f\164\x6f\x2e\x77\x65\142\160"; } else { $imagen = "\x73\x69\156\106\x6f\x74\157\x2e\x6a\x70\147"; } return $url . $imagen; die; } $extension = pathinfo($file, PATHINFO_EXTENSION); $nombre_base = basename($file, "\56" . $extension); $nombreWebP = $nombre_base . "\x2e\x77\145\142\x70"; $imagen2 = $_ENV["\x53\x33\x5f\125\122\114"] . $url . $nombreWebP; if ($supported) { if (url_exists($imagen2)) { $imagen = $_ENV["\123\63\x5f\125\122\114"] . $url . $nombreWebP; } else { $imagen = $nombre_fichero; } } else { $imagen = $nombre_fichero; } return $imagen; } goto r6KRE; JM1XE: function fecha_sql_nh($fecha) { if (strtotime($fecha)) { $fecha_cl = date("\x64\57\155\x2f\x59", strtotime($fecha)); } else { $fecha_cl = date("\144\57\155\57\131"); } return $fecha_cl; } goto MG6b2; prPQf: function get_permiso($tabla_id, $action, $perfil_admin) { switch ($action) { case "\141": $action = 1; break; case "\142": $action = 2; break; case "\x63": $action = 3; break; case "\157\164\150\x65\162": $action = 4; break; } $res = consulta_bd("\x70\x65\162\155\151\x73\157\137\x69\144", "\164\141\x62\154\x61\x73\x5f\x70\x65\x72\146\151\154\145\x73", "\160\x65\x72\x66\151\154\x5f\151\x64\x20\75\40{$perfil_admin}\x20\x41\116\x44\40\x74\x61\142\154\x61\137\x69\x64\x20\x3d\x20{$tabla_id}", ''); $permiso = isset($res[0][0]) ? $res[0][0] : NULL; if (($action == 3 or $action == 2 or $action == 4) and $permiso == 3) { return true; } elseif ($action == 1 and $permiso != 1 and $permiso != NULL) { return true; } else { return false; } } goto jRmpd; in62A: function get_env() { if (!isset($_SESSION["\x65\x6e\166"])) { $env = get_option("\145\x6e\x76"); return $env == '' ? "\144\x65\163\141\x72\162\157\x6c\x6c\x6f" : $env; } else { return $_SESSION["\x65\156\x76"]; } } goto JIYWV; HpQKx: function del_bd_generic($table, $column, $val) { $conexion = $GLOBALS["\x63\157\x6e\145\170\151\157\156\x5f\x77\x72\151\x74\145\x72"]; $sql = "\x44\x45\x4c\105\x54\x45\40\x46\x52\117\115\40{$table}\40\127\110\105\122\x45\40{$column}\x20\x3d\x20\47{$val}\x27"; $run = mysqli_query($conexion, $sql) or die(mysqli_error($conexion) . "\x3c\142\x72\x20\x2f\76\74\x62\162\x20\x2f\x3e{$sql}"); if ($run) { return true; } else { return false; } } goto u4_Y0; voKB0: function singular($string) { $penultima = substr($string, -2, 1); $antepenultima = substr($string, -3, 1); if ($penultima == "\145") { if ($antepenultima == "\164" or $antepenultima == "\x6a" or $antepenultima == "\x76") { $singular = substr($string, 0, -1); } else { $singular = substr($string, 0, -2); } } else { $singular = substr($string, 0, -1); } return $singular; } goto BNkaI; cnqDs: function get_sec_op($op) { $value = substr($op, -1, 1); return $value; } goto voKB0; pYgTb: function select($tabla, $columnas, $cod, $nombre, $tab_index, $where, $submit, $selected, $bloqueado) { $conexion = $GLOBALS["\143\x6f\156\x65\170\x69\157\156"]; if ($cod != '') { $columnas = "{$cod}\54{$columnas}"; } $sql = "\123\105\114\105\103\x54\40{$columnas}\40\x46\122\117\115\40{$tabla}"; if ($where != '') { $sql .= "\40{$where}"; } $run = mysqli_query($conexion, $sql) or die(mysqli_error($conexion) . "\x3c\142\162\x20\x2f\x3e\x3c\x62\x72\x20\x2f\x3e{$sql}"); $mostrar = "\74\163\145\154\x65\143\164\40\143\x6c\x61\163\x73\75\x22\x73\x65\x6c\x65\x63\164\42\x20" . $bloqueado . "\40\156\x61\155\145\75\x22" . $nombre . "\42\x20\151\x64\75\x22" . $nombre . "\42\x20"; if ($tab_index != '') { $mostrar .= "\164\x61\142\151\156\144\145\170\x3d\42" . $tab_index . "\42"; } if ($submit == "\61") { $mostrar .= "\157\156\143\150\141\156\x67\145\x3d\x22\x63\x61\x6d\142\151\141\x53\145\154\145\143\164\x28\x74\x68\x69\x73\x2e\166\x61\154\165\x65\54\40\164\150\151\163\x2e\x6e\141\155\145\51\x22\x3e"; } elseif ($submit == "\62") { $mostrar .= "\157\x6e\x63\150\x61\156\x67\x65\75\x22\x73\x75\x62\x6d\x69\x74\50\51\x3b\42"; } else { $mostrar .= "\x3e"; } $mostrar .= "\x3c\x6f\160\x74\x69\x6f\x6e\x20\x76\141\154\165\x65\75\x22\x30\x22\76\123\x65\154\145\143\143\x69\157\156\145\x2e\56\56\x3c\57\x6f\x70\164\x69\157\x6e\x3e"; while ($res = mysqli_fetch_array($run)) { $mostrar .= "\x3c\x6f\x70\x74\x69\157\156\x20\166\141\x6c\165\145\x3d\x22" . $res[0] . "\x22"; if ($res[0] == $selected) { $mostrar .= "\40\x73\145\x6c\x65\143\164\145\x64\x3d\x22\x73\145\154\x65\143\164\x65\x64\x22"; } if ($res[1]) { $opcion = $res[1]; } else { $opcion = $res[0]; } $mostrar .= "\x3e" . ucwords($opcion) . "\74\x2f\157\x70\x74\x69\157\x6e\76"; } $mostrar .= "\x3c\x2f\x73\x65\x6c\x65\x63\164\76"; echo "{$mostrar}"; } goto UTQ2t; GshGA: function check_user_loged($hash, $user) { $conexion = $GLOBALS["\x63\157\x6e\x65\170\151\157\156"]; $is = consulta_bd("\x2a", "\143\x6c\x69\145\x6e\164\x65\x73", "\151\x64\x20\75\x20\x27{$user}\47\40\x41\x4e\104\40\163\x65\163\x73\151\157\x6e\137\x68\x61\x73\150\40\75\40\x27{$hash}\x27", ''); $cant = mysqli_affected_rows($conexion); if (count($is) == 1) { return true; } else { return false; } } goto ltklc; YabZF: function get_table_name($id) { $q = consulta_bd_por_id("\x64\x69\163\160\154\x61\x79", "\x74\x61\142\154\x61\163", '', $id, ''); $nombre_real = $q["\144\151\163\160\154\x61\171"]; return $nombre_real; } goto rCD7b; bVNQb: function preview($cadena, $numerocaracteres) { $numeropalabrascadena = count(explode("\x20", $cadena)); $cadenadividida = explode("\40", $cadena); $cadenamostrar = ''; $cadenaaux = ''; $cadenacompleta = "\163\x69"; for ($i = 0; $i <= $numeropalabrascadena; $i++) { $cadenaaux = $cadenaaux . @$cadenadividida[$i] . "\40"; if (strlen($cadenaaux) <= $numerocaracteres) { $cadenamostrar = $cadenamostrar . @$cadenadividida[$i] . "\x20"; } else { $cadenacompleta = "\156\x6f"; } } if ($cadenacompleta == "\156\157") { $cadenamostrar .= "\x20\56\x2e\56"; } return $cadenamostrar; } goto uDzTo; HYdwH: function get_post($except) { $excepciones = explode("\x2c", $except); $excepciones[] = "\160\x6f\163\x69\x63\151\x6f\x6e\137\x69\x6d\147"; foreach ($_POST as $key => $val) { $ok = true; foreach ($excepciones as $no) { if ($key == trim($no)) { $ok = false; } } if ($ok) { if (!is_array($val)) { $valurl = urlencode($val); $variables .= "\46{$key}\75{$valurl}"; } } } return $variables; } goto yOzLb; r6KRE: function url_exists($url = NULL) { if (empty($url)) { return false; } stream_context_set_default(array("\x68\164\164\x70" => array("\x6d\x65\164\150\x6f\x64" => "\110\x45\x41\x44"))); $headers = @get_headers($url); sscanf($headers[0], "\110\124\124\120\x2f\45\x2a\x64\56\45\52\x64\40\x25\144", $httpcode); $accepted_response = array(200, 301, 302); if (in_array($httpcode, $accepted_response)) { return true; } else { return false; } } goto nT16S; JFmn0: function obtenerURL() { $host = $_SERVER["\110\124\x54\120\137\x48\x4f\x53\124"]; $url = $_SERVER["\x52\x45\121\125\x45\123\124\x5f\x55\x52\x49"]; return "\x68\x74\164\160\x73\x3a\57\x2f" . $host . $url; } goto G9s4b; Y7oON: function resize_foto($file, $altura, $ancho, $bn) { $size = getimagesize($file); $width = intval($size[0]); $height = intval($size[1]); $altura = intval($altura); $ancho = intval($ancho); if ($width > $ancho) { $p = $ancho / $width; $x = $p * $width; $y = $p * $height; if ($y > $altura) { $p = $altura / $y; $x = $p * $x; $y = $p * $y; } } elseif ($height > $altura) { $p = $altura / $height; $x = $p * $width; $y = $p * $height; if ($x > $width) { $p = $altura / $x; $x = $p * $x; $y = $p * $y; } } else { $x = $width; $y = $height; } $ext = strtolower(substr(strrchr($file ?? '', "\56"), 1)); $date = date("\x64\150\151\163"); $nombre = $date . "\x5f\162\145\x73\x69\172\x65\144\56" . $ext; switch ($ext) { case "\x6a\x70\147": $imagen_origen = imagecreatefromjpeg($file); if ($bn) { imagefilter($imagen_origen, IMG_FILTER_GRAYSCALE); imagefilter($imagen_origen2, IMG_FILTER_GRAYSCALE); } if (isset($x) and intval($x) > 0) { $imagen_destino = imagecreatetruecolor(intval($x), intval($y)); $res = imagecopyresampled($imagen_destino, $imagen_origen, 0, 0, 0, 0, intval($x), intval($y), intval($width), intval($height)); $src = imagejpeg($imagen_destino, $nombre, 100); } break; case "\160\156\x67": $imagen_destino = imagecreatetruecolor($x, $y); imagealphablending($imagen_destino, false); imagesavealpha($imagen_destino, true); $imagen_origen = imagecreatefrompng($file); if ($bn) { imagefilter($imagen_origen, IMG_FILTER_GRAYSCALE); } imagealphablending($imagen_origen, true); $res = imagecopyresampled($imagen_destino, $imagen_origen, 0, 0, 0, 0, $x, $y, $width, $height); $src = imagepng($imagen_destino, $nombre, 9); break; case "\x67\x69\146": $imagen_origen = imagecreatefromgif($file); if ($bn) { imagefilter($imagen_origen, IMG_FILTER_GRAYSCALE); } $imagen_destino = imagecreatetruecolor($x, $y); $transcolor = imagecolortransparent($imagen_origen); if ($transcolor != -1) { $trnprt_color = imagecolorsforindex($imagen_origen, $transcolor); $trnprt_indx = imagecolorallocatealpha($imagen_destino, $trnprt_color["\x72\x65\x64"], $trnprt_color["\147\162\145\x65\156"], $trnprt_color["\x62\x6c\x75\145"], $trnprt_color["\x61\154\x70\x68\x61"]); imagefill($imagen_destino, 0, 0, $trnprt_indx); imagecolortransparent($imagen_destino, $trnprt_indx); } $res = imagecopyresampled($imagen_destino, $imagen_origen, 0, 0, 0, 0, $x, $y, $width, $height); $src = imagegif($imagen_destino, $nombre, 100); break; } return $nombre; } goto dgTi3; jRmpd: function is_boolean($column, $table) { $conexion = $GLOBALS["\143\x6f\x6e\x65\170\151\x6f\x6e"]; $sql = "\x53\110\117\x57\x20\103\x4f\x4c\x55\x4d\116\x53\x20\x46\x52\117\115\x20{$table}\40\127\x48\105\122\105\40\x66\151\x65\154\144\40\75\40\x27{$column}\47"; $run = mysqli_query($conexion, $sql); $res = mysqli_fetch_array($run); $type = $res[1]; return $type == "\164\151\x6e\x79\x69\156\x74\x28\x31\51" ? true : false; } goto nO0T3; onjVT: function has_array($array, $string) { foreach ($array as $a) { if (is_numeric(strrpos($string, trim($a)))) { $ok = true; break; } else { $ok = false; } } return $ok; } goto fTrQB; CIUul: function update_entry($exclusiones, $tabla, $conditions) { $values = "\x66\x65\x63\150\x61\137\155\x6f\144\151\x66\151\143\141\x63\151\157\156\x20\x3d\x20\x4e\x4f\127\50\x29"; foreach ($_POST as $key => $val) { if (!strpos("\x20" . $exclusiones, $key)) { $values .= "\54\x20{$key}\x20\x3d\40\47{$val}\x27"; } } $insert = update_bd($tabla, $values, $conditions); if ($insert) { return true; } else { return false; } } goto KT6fJ; v88rT: function manage_files($col_archivos, $opcion, $tabla, $id) { $dir = "\x2e\x2e\57\56\x2e\x2f\x69\x6d\141\x67\x65\x6e\x65\163\x2f{$tabla}"; $dir_docs = "\x2e\56\57\56\56\57\144\x6f\x63\x73\x2f{$tabla}"; if (count($col_archivos) > 1) { foreach ($col_archivos as $row) { $row = trim($row); $file = $_FILES[$row]["\156\141\x6d\x65"]; if ($file != '' and $file != "\x66\x61\154\163\145") { $file_ext = strtolower(substr(strrchr($_FILES[$row]["\156\141\x6d\x65"], "\x2e"), 1)); if ($opcion[trim($row)] and $opcion[$row] != '' and $opcion[$row] != "\x66\141\154\163\x65") { $tamanos = explode("\x2c", $opcion[trim($row)]); $width = intval($tamanos[0]); $height = intval($tamanos[1]); } else { $width = ($opcion["\167\x69\x64\164\x68"] != '' and $opcion["\x77\151\144\164\150"] != "\146\141\154\163\x65") ? (int) $opcion["\x77\151\144\164\150"] : 0; $height = ($opcion["\150\145\x69\x67\x68\x74"] != '' and $opcion["\x68\145\151\x67\150\164"] != "\x66\x61\x6c\163\145") ? (int) $opcion["\x68\x65\151\147\x68\164"] : 0; } if ($width != 0 and $height != 0) { if ($file_ext == "\152\x70\147" or $file_ext == "\x67\151\x66" or $file_ext == "\x70\x6e\147") { $width_thumb = (int) $opcion["\167\x69\144\164\150\x5f\x74\150\165\155\x62"]; $height_thumb = (int) $opcion["\150\x65\151\147\x68\164\137\x74\150\x75\x6d\x62"]; $thumb = $width_thum != '' ? 1 : 0; $img = add_img(trim($row), $dir, $tabla, $id, $width, $height, $thumb, $width_thumb, $height_thumb, false); $error .= $img["\145\162\x72\157\x72"]; $values .= $img["\x76\x61\154\157\x72\145\163"]; } else { $error .= "\x46\157\162\x6d\x61\164\157\x20\144\145\x20\x61\162\x63\150\x69\166\157\x20\x69\x6e\143\157\162\x72\x65\x63\x74\x6f\56\x26\164\x69\x70\157\75\145\162\x72\157\162"; } } elseif ($file_ext != '' and $file_ext != "\x66\x61\154\x73\x65") { $extensions = "\x64\157\143\54\x20\x64\x6f\143\170\54\40\160\x70\164\x2c\40\160\x70\164\170\54\x20\170\154\163\x2c\x20\170\154\163\170\54\x20\x70\x64\x66\x2c\x20\144\x77\x67\54\x20\163\x77\146"; $file = add_file($row, $dir_docs, $tabla, $id, $extensions); $error .= $file["\x65\162\162\157\162"]; $values .= $file["\x76\x61\154\x6f\162\145\x73"]; } } } } else { $file = $_FILES[$col_archivos]["\x6e\x61\155\145"]; $file_ext = strtolower(substr(strrchr($_FILES[$col_archivos]["\x6e\141\155\x65"], "\56"), 1)); if ($opcion[trim($row)] and $opcion[$row] != '' and $opcion[$row] != "\146\141\154\163\x65") { $tamanos = explode("\x2c", $opcion[trim($row)]); $width = intval($tamanos[0]); $height = intval($tamanos[1]); } else { $width = $opcion["\167\151\x64\164\x68"] != '' ? (int) $opcion["\x77\151\x64\164\150"] : 0; $height = $opcion["\x68\145\151\147\150\164"] != '' ? (int) $opcion["\150\145\151\147\150\x74"] : 0; } if ($width != 0 and $height != 0) { if ($file_ext == "\152\160\x67" or $file_ext == "\x67\151\146" or $file_ext == "\160\x6e\147") { $width_thumb = (int) $opcion["\x77\151\x64\164\x68\137\164\x68\165\x6d\142"]; $height_thumb = (int) $opcion["\x68\x65\x69\147\x68\x74\137\164\150\x75\155\x62"]; $thumb = $width_thumb != '' ? 1 : 0; $img = add_img($col_archivos, $dir, $tabla, $id, $width, $height, $thumb, $width_thumb, $height_thumb, false); $error .= $img["\145\162\162\x6f\x72"]; $values .= $img["\166\141\x6c\157\162\145\163"]; } else { $error .= "\x46\157\162\x6d\141\x74\157\40\144\145\x20\x61\162\x63\150\x69\166\x6f\40\x69\x6e\x63\157\x72\x72\x65\x63\x74\157\56\x26\164\x69\x70\157\75\x65\x72\162\x6f\x72"; } } elseif ($file_ext != '' and $file_ext != "\x66\x61\154\163\x65") { $extensions = "\x64\x6f\x63\54\x20\144\x6f\143\170\x2c\x20\160\x70\164\x2c\40\160\x70\164\x78\54\x20\170\x6c\163\54\x20\x78\x6c\163\170\x2c\x20\x70\144\x66\x2c\40\144\x77\x67\54\x20\x73\x77\146"; $file = add_file(trim($col_archivos), $dir_docs, $tabla, $id, $extensions); $error .= $file["\145\162\162\157\162"]; $values .= $file["\166\x61\x6c\x6f\x72\145\163"]; $entro = $values; } } return array("\x65\x72\162\x6f\162" => $error, "\166\x61\154\165\145\163" => $values); } goto SKXX3; ag7l9: function get_valor_economico($valor) { $url = "\x68\164\164\x70\x73\72\x2f\57\155\157\x6c\144\145\141\142\154\145\x2e\143\x6f\155\x2f\x76\x61\x6c\x6f\162\x65\x73\137\x65\x63\157\156\157\155\x69\x63\x6f\163\x2f{$valor}\x2e\x70\150\160"; $lineas = file($url); return trim(strip_tags($lineas[0])); } goto KBoc5; PGRXF: function get_last($table) { $conexion = $GLOBALS["\x63\x6f\x6e\x65\x78\151\157\x6e"]; $sql = "\123\105\x4c\105\103\x54\x20\x69\x64\x20\106\x52\117\x4d\40{$table}\40\117\x52\x44\x45\x52\40\x42\x59\x20\x69\144\x20\104\105\x53\x43\40\x4c\111\x4d\x49\x54\40\x31"; $run = mysqli_query($conexion, $sql); $res = mysqli_fetch_array($run); $last = $res[0]; return $last; } goto LuGrJ; zLsmA: function dias_transcurridos($fecha_i, $fecha_f) { $dias = (strtotime($fecha_i) - strtotime($fecha_f)) / 86400; $dias = abs($dias); if (strtotime($fecha_i) > strtotime($fecha_f)) { return "\55" . $dias; } else { return $dias; } } goto P8YDy; ltklc: function webp($img) { $extension = pathinfo($img, PATHINFO_EXTENSION); $nombre_base = basename($img, "\56" . $extension); $nombreWebP = $nombre_base . "\56\167\145\142\x70"; return $nombreWebP; } goto Q92wT; JIYWV: function check_install() { if (file_exists("\151\x6e\163\x74\141\154\x6c\56\x70\x68\x70")) { die(header("\154\x6f\143\x61\x74\151\x6f\x6e\x3a\x69\x6e\x73\x74\x61\154\x6c\56\160\x68\160")); } return false; } goto gdecQ; nT16S: function consulta_bd2($campos, $table, $conditions, $orden, $arrCondiciones) { $conexion = $GLOBALS["\143\157\x6e\145\170\151\x6f\x6e"]; $columnas = explode("\x2c", $campos); $cant_columnas = count($columnas); $sql = "\x53\x45\114\105\x43\124\x20{$campos}\x20\x46\122\x4f\x4d\40{$table}"; if ($conditions != '') { $sql .= "\40\127\x48\105\x52\x45\40{$conditions}"; } if ($orden != '') { $sql .= "\40\117\x52\104\105\x52\40\x42\131\x20{$orden}"; } if ($run = $conexion->prepare($sql)) { $refArr = $arrCondiciones; $ref = new ReflectionClass("\155\x79\x73\161\x6c\x69\137\x73\164\x6d\x74"); $method = $ref->getMethod("\x62\151\x6e\144\x5f\160\141\162\x61\x6d"); $method->invokeArgs($run, $refArr); $run->execute(); $meta = $run->result_metadata(); while ($field = $meta->fetch_field()) { $params[] =& $row[$field->name]; } call_user_func_array(array($run, "\142\x69\156\x64\137\162\x65\163\165\154\x74"), $params); if (!$run) { die("\x45\162\x72\x6f\162\40\144\x65\163\x63\162\151\160\164\151\157\x6e\x3a\40" . $run->error); } $i = 0; while ($run->fetch()) { $j = 0; foreach ($row as $key => $val) { $c[$j] = $val; $j++; } $result[] = $c; $i++; } $run->close(); } else { printf("\x45\x72\x72\x6f\162\x6d\x65\x73\163\141\147\x65\x3a\40\45\163\12", $conexion->error); printf("\143\x6f\156\163\x75\x6c\164\141\x3a\40\45\x73\xa", $sql); } return $result; } goto Q1S3a; JYUxP: function eng_sql($string) { $newstring = stripslashes($string); $new = addslashes($newstring); return $new; } goto hNqtB; A_S8s: function tiempoSesion() { $inactivo = 36000; if (isset($_SESSION["\164\x69\x65\155\160\x6f"])) { $vida_session = time() - $_SESSION["\164\151\x65\155\160\x6f"]; $_SESSION["\164\151\145\x6d\160\x6f\x56\x69\x64\141\x53\145\x73\151\157\x6e"] = $vida_session; if ($vida_session > $inactivo) { unset($_SESSION["\165\x73\x75\141\162\x69\x6f\137\151\x64"]); unset($_SESSION["\164\151\x65\x6d\x70\x6f"]); unset($_SESSION["\164\x69\145\x6d\160\x6f\x56\x69\x64\141\123\145\163\151\x6f\156"]); return false; } else { return true; } } else { $_SESSION["\x74\x69\145\x6d\x70\x6f"] = time(); return true; } } goto GshGA; vxwG9: function del_bd($table, $id) { $conexion = $GLOBALS["\143\x6f\x6e\x65\170\151\x6f\x6e\137\167\162\151\164\145\162"]; $sql = sprintf("\104\x45\114\105\124\x45\40\106\x52\117\x4d\x20{$table}\40\127\110\105\122\105\x20\x69\144\40\x3d\x20\x27\x25\144\x27", mysqli_real_escape_string($conexion, $id)); $run = mysqli_query($conexion, $sql) or die(mysqli_error($conexion) . "\x3c\x62\162\40\x2f\x3e\x3c\x62\x72\40\x2f\76{$sql}"); if ($run) { return true; } else { return false; } } goto BukG9; Yzft3: function is_dependent($name) { $buscar = "\x5f\x69\x64"; if (strrpos($name, $buscar)) { return true; } else { return false; } } goto Vy20M; Kosu3: function diferencia_fechas($date1, $date2) { $date1_seconds = strtotime($date1); $date2_seconds = strtotime($date2); $dif_seg = $date2_seconds - $date1_seconds; if ($dif_seg < 60) { $return = "\150\x61\x63\x65\x20{$dif_seg}\x20\x73\x65\x67\x75\x6e\x64\x6f\x73"; } else { $dif_min = floor($dif_seg / 60); if ($dif_min < 60) { if ($dif_min == 1) { $return = "\150\141\x63\145\x20{$dif_min}\x20\x6d\x69\x6e\165\x74\x6f"; } else { $return = "\x68\141\x63\145\x20{$dif_min}\40\155\151\x6e\165\164\x6f\163"; } } else { $dif_hora = floor($dif_min / 60); if ($dif_hora < 24) { if ($dif_hora == 1) { $return = "\150\141\143\145\40{$dif_hora}\40\x68\157\x72\141"; } else { $return = "\150\141\143\x65\x20{$dif_hora}\x20\150\157\162\x61\163"; } } else { $dif_dias = floor($dif_hora / 24); if ($dif_dias < 24) { if ($dif_dias == 1) { $hora_publicacion = date("\110\x3a\x6d\72\x73", $date1_seconds); $return = "\141\171\145\x72\x20\x61\40\154\x61\163\x20{$hora_publicacion}"; } else { $return = "\x68\x61\143\145\x20{$dif_dias}\40\144\xc3\255\x61\163"; } } else { $date_1_b = date("\155\x2d\144\55\131", $date1_seconds); $return = "\x65\x6c\x20{$date_1_b}"; } } } } return $return; } goto ZGpEO; vKK8h: function extension($nombre_archivo) { $nombre = explode("\56", $nombre_archivo); $extension = end($nombre); return $extension; } goto nGiPB; Ynwkk: function formato_fecha($fecha, $idioma) { $fechas = explode("\x2d", $fecha); $ano = $fechas[0]; $dia = $fechas[2]; if ($fechas[1] == "\60\x31") { if ($idioma == "\x65\163\160") { $mes = "\105\156\145\x72\x6f"; } else { if ($idioma == "\145\156\147") { $mes = "\112\141\x6e\165\x61\162\171"; } } } else { if ($fechas[1] == "\60\62") { if ($idioma == "\x65\x73\x70") { $mes = "\106\145\142\162\x65\162\x6f"; } else { if ($idioma == "\145\x6e\x67") { $mes = "\106\x65\142\162\x75\141\162\171"; } } } else { if ($fechas[1] == "\60\63") { if ($idioma == "\145\x73\160") { $mes = "\115\x61\x72\172\157"; } else { if ($idioma == "\x65\x6e\x67") { $mes = "\115\x61\162\x63\150"; } } } else { if ($fechas[1] == "\x30\64") { if ($idioma == "\145\163\160") { $mes = "\101\x62\x72\151\x6c"; } else { if ($idioma == "\x65\156\x67") { $mes = "\x41\160\x72\x69\154"; } } } else { if ($fechas[1] == "\x30\65") { if ($idioma == "\145\x73\160") { $mes = "\x4d\x61\x79\157"; } else { if ($idioma == "\x65\x6e\x67") { $mes = "\115\141\171"; } } } else { if ($fechas[1] == "\60\x36") { if ($idioma == "\145\163\160") { $mes = "\x4a\165\156\x69\157"; } else { if ($idioma == "\145\156\147") { $mes = "\112\165\156"; } } } else { if ($fechas[1] == "\x30\x37") { if ($idioma == "\x65\x73\x70") { $mes = "\x4a\x75\x6c\x69\x6f"; } else { if ($idioma == "\x65\x6e\147") { $mes = "\x4a\x75\154\x79"; } } } else { if ($fechas[1] == "\60\x38") { if ($idioma == "\145\163\160") { $mes = "\x41\147\157\163\x74\157"; } else { if ($idioma == "\x65\x6e\x67") { $mes = "\101\x75\147\165\x73\x74"; } } } else { if ($fechas[1] == "\60\71") { if ($idioma == "\x65\x73\x70") { $mes = "\x53\145\x70\x74\151\145\x6d\x62\x72\145"; } else { if ($idioma == "\145\x6e\147") { $mes = "\x53\x65\160\164\x65\x6d\x62\x65\x72"; } } } else { if ($fechas[1] == "\61\60") { if ($idioma == "\145\163\x70") { $mes = "\117\x63\x74\x75\x62\x72\145"; } else { if ($idioma == "\x65\156\147") { $mes = "\117\143\164\x6f\x62\145\162"; } } } else { if ($fechas[1] == "\x31\x31") { if ($idioma == "\145\163\160") { $mes = "\x4e\x6f\x76\151\145\155\x62\162\x65"; } else { if ($idioma == "\x65\156\x67") { $mes = "\116\157\166\145\155\x62\x65\162"; } } } else { if ($fechas[1] == "\x31\62") { if ($idioma == "\x65\x73\x70") { $mes = "\104\x69\x63\x69\145\x6d\x62\162\x65"; } else { if ($idioma == "\145\156\x67") { $mes = "\x44\x65\x63\145\155\142\x65\x72"; } } } } } } } } } } } } } } if ($dia == '') { return ''; } else { if ($idioma == "\145\163\160") { return $dia . "\40\x64\x65\40" . $mes . "\40\144\x65\154\40" . $ano; } else { return $mes . "\x20" . $dia . "\x20" . $ano; } } } goto zLsmA; yOzLb: function get_gets($except) { $excepciones = explode("\54", $except); foreach ($_GET as $key => $val) { $ok = true; foreach ($excepciones as $no) { if ($key == trim($no)) { $ok = false; } } if ($ok) { $valurl = urlencode($val); $variables .= "\x26{$key}\75{$valurl}"; } } return $variables; } goto UsbuF; Q92wT: function logClientes($tipo, $cadena, $cardcode) { if (file_exists(__DIR__ . "\57\x6c\157\x67\57\103\x4c\x49\x45\x4e\124\x45\x53\x5f" . $cardcode . "\137" . date("\131\x2d\x6d\x2d\144") . "\x2e\x6c\x6f\147")) { } else { $fileName = __DIR__ . "\57\x6c\157\147\57\103\114\x49\x45\116\124\105\123\137" . $cardcode . "\x5f" . date("\x59\x2d\x6d\x2d\144") . "\x2e\154\157\x67"; $contenidoInicial = "\x4c\157\147\40\103\x6c\151\145\156\x74\145\163\40" . date("\x59\55\x6d\x2d\144") . "\12"; file_put_contents($fileName, $contenidoInicial); } $arch = fopen(__DIR__ . "\x2f\154\157\147\57\x43\114\x49\x45\116\124\x45\123\137" . $cardcode . "\x5f" . date("\131\x2d\155\x2d\x64") . "\x2e\154\157\x67", "\141\53"); fwrite($arch, $tipo . "\72\x20" . $cadena . "\xa"); fclose($arch); } goto GcwbB; hzrDZ: function update_bd($table, $values, $conditions) { $conexion = $GLOBALS["\x63\157\156\145\170\x69\x6f\x6e\137\167\162\151\164\145\162"]; $sql = "\x55\x50\104\101\124\105\40{$table}\40\x53\105\x54\40{$values}\x20"; if ($conditions != '') { $sql .= "\127\110\105\122\105\40{$conditions}"; } $run = mysqli_query($conexion, $sql) or die(mysqli_error($conexion) . "\x3c\142\162\40\57\76\74\x62\162\x20\57\x3e{$sql}"); if ($run) { return true; } else { return false; } } goto FVw9g; SKXX3: function is_animated_gif($filename) { $raw = file_get_contents($filename); $offset = 0; $frames = 0; while ($frames < 2) { $where1 = strpos($raw, "\0\41\xf9\4", $offset); if ($where1 === false) { break; } else { $offset = $where1 + 1; $where2 = strpos($raw, "\0\x2c", $offset); if ($where2 === false) { break; } else { if ($where1 + 8 == $where2) { $frames++; } $offset = $where2 + 1; } } } return $frames > 1; } goto T3lhr; ZGpEO: function select_paises() { $return = "\x3c\x73\145\x6c\145\x63\x74\x20\x6e\x61\x6d\145\x3d\x22\163\145\x6c\145\143\x74\x5f\x70\141\151\163\x22\76\74\157\x70\x74\151\x6f\156\x20\x76\141\x6c\x75\x65\x3d\x22\x22\x3e\x53\145\154\145\143\143\151\157\x6e\x65\x2e\x2e\56\x3c\57\157\x70\x74\x69\x6f\x6e\x3e\x3c\x6f\160\x74\x69\x6f\x6e\x20\x76\x61\154\x75\145\75\42\x41\x66\x72\151\x63\141\42\76\x41\x66\x72\151\143\141\74\x2f\x6f\160\x74\x69\x6f\156\76\74\157\x70\x74\151\x6f\x6e\40\x76\141\x6c\165\145\x3d\42\101\x72\x67\145\x6e\x74\x69\x6e\141\x22\x3e\x41\x72\x67\145\x6e\164\151\x6e\x61\x3c\57\157\x70\164\151\157\156\76\74\157\160\x74\151\157\x6e\40\166\x61\x6c\165\x65\x3d\x22\x41\165\163\164\162\141\154\151\x61\42\76\x41\165\163\164\162\141\154\151\x61\x3c\x2f\x6f\x70\164\x69\x6f\x6e\x3e\74\157\x70\164\151\x6f\156\40\x76\141\x6c\165\x65\75\x22\x41\165\x73\x74\x72\151\141\42\x3e\101\165\163\164\162\151\141\x3c\x2f\x6f\160\x74\x69\x6f\x6e\x3e\x3c\x6f\x70\164\x69\157\156\x20\x76\x61\x6c\165\145\x3d\x22\x42\145\x6c\147\151\x75\x6d\42\x3e\x42\145\154\147\x69\x75\x6d\x3c\57\157\x70\164\151\x6f\156\x3e\74\157\160\164\151\x6f\156\x20\x76\x61\x6c\x75\x65\x3d\x22\x42\x72\141\x7a\x69\x6c\x22\x3e\102\x72\141\x7a\x69\x6c\74\x2f\157\160\x74\x69\157\156\76\x3c\x6f\160\x74\x69\157\x6e\40\x76\x61\154\165\x65\75\42\x42\x75\x6c\147\141\162\151\x61\42\x3e\x42\165\x6c\x67\x61\x72\x69\141\74\57\x6f\x70\164\151\x6f\x6e\x3e\x3c\157\x70\x74\x69\157\x6e\x20\x76\141\x6c\165\145\x3d\42\x43\x61\156\x61\144\141\42\x3e\x43\141\x6e\141\x64\x61\74\x2f\157\160\x74\151\x6f\156\76\74\157\x70\x74\151\x6f\x6e\40\x76\141\x6c\165\x65\x3d\x22\103\x61\162\151\x62\x62\x65\141\156\42\x3e\103\141\162\x69\x62\142\145\x61\156\74\57\x6f\160\x74\151\x6f\156\x3e\x3c\157\x70\164\x69\x6f\x6e\x20\166\141\x6c\165\145\75\42\x43\145\156\x74\162\x61\154\x20\101\155\145\x72\151\143\x61\x22\76\103\x65\x6e\x74\x72\141\x6c\40\101\155\x65\162\151\143\141\x3c\x2f\x6f\160\164\151\x6f\156\76\74\x6f\x70\x74\x69\x6f\x6e\x20\166\x61\154\165\145\75\42\103\x68\151\x6c\145\x22\x20\163\145\154\145\x63\164\x65\144\75\x22\x73\145\x6c\145\x63\164\x65\144\42\76\x43\x68\151\154\145\x3c\x2f\x6f\x70\164\x69\157\x6e\x3e\x3c\157\160\x74\x69\x6f\156\40\166\141\x6c\x75\145\x3d\42\x43\x68\151\156\141\x22\x3e\103\x68\151\156\x61\x3c\57\157\x70\164\151\157\x6e\x3e\74\x6f\160\164\x69\x6f\156\40\x76\x61\154\x75\x65\x3d\42\103\x6f\x6c\x6f\x6d\x62\151\x61\42\76\103\157\x6c\157\x6d\142\x69\x61\x3c\57\157\160\164\x69\x6f\x6e\76\74\x6f\x70\x74\151\157\x6e\40\x76\141\154\165\145\75\x22\x43\x6f\x73\x74\x61\40\122\x69\x63\x61\x22\x3e\103\157\163\x74\x61\x20\122\x69\143\x61\74\x2f\157\x70\x74\151\157\156\76\74\157\160\164\151\x6f\x6e\x20\166\141\154\165\145\75\42\x43\x72\157\141\164\151\x61\42\76\x43\x72\157\x61\164\x69\141\x3c\57\x6f\x70\164\x69\x6f\x6e\76\x3c\x6f\160\x74\x69\x6f\156\x20\x76\x61\x6c\x75\145\75\42\103\172\145\143\x68\40\x52\145\x70\165\x62\x6c\x69\x63\x22\x3e\103\172\x65\x63\x68\40\x52\145\x70\x75\142\x6c\x69\x63\74\x2f\x6f\x70\x74\151\157\156\76\x3c\x6f\160\x74\151\157\x6e\x20\x76\141\x6c\x75\145\x3d\42\x44\145\156\x6d\141\162\x6b\x22\x3e\104\145\156\155\141\162\x6b\74\x2f\x6f\x70\x74\x69\157\x6e\76\x3c\157\160\x74\151\x6f\156\40\166\x61\154\x75\x65\75\x22\x44\157\x6d\x69\156\151\143\141\156\40\122\145\x70\x75\x62\x6c\x69\143\42\76\x44\157\155\151\x6e\151\143\141\x6e\40\x52\145\x70\x75\x62\154\x69\143\x3c\x2f\157\x70\x74\151\x6f\x6e\76\74\157\160\x74\151\x6f\x6e\x20\166\141\154\x75\x65\x3d\42\105\163\164\157\x6e\151\x61\x22\76\105\163\164\157\156\151\141\74\x2f\x6f\160\164\151\157\x6e\x3e\x3c\x6f\x70\164\x69\157\x6e\40\x76\141\x6c\165\145\x3d\42\x46\x69\x6e\154\141\x6e\x64\x22\76\x46\x69\x6e\x6c\141\x6e\x64\74\x2f\x6f\x70\x74\x69\x6f\x6e\76\74\157\x70\164\x69\x6f\x6e\40\166\141\154\165\x65\75\42\x46\162\x61\156\x63\145\x22\x3e\x46\x72\x61\156\143\145\74\x2f\157\x70\164\x69\157\156\76\74\157\x70\164\151\157\x6e\x20\166\141\x6c\165\145\x3d\42\107\x65\x72\155\141\x6e\171\x22\x3e\107\145\162\155\x61\156\171\74\57\x6f\160\164\x69\x6f\x6e\x3e\x3c\157\x70\164\151\x6f\x6e\x20\x76\141\154\165\145\x3d\42\x47\x72\x65\145\143\145\42\76\107\x72\x65\x65\x63\x65\x3c\57\157\x70\x74\x69\x6f\x6e\x3e\x3c\157\x70\164\151\157\156\40\166\141\x6c\x75\145\75\x22\x47\x75\141\164\145\x6d\x61\x6c\x61\42\x3e\x47\x75\x61\x74\145\x6d\141\x6c\x61\x3c\x2f\x6f\160\x74\151\x6f\156\x3e\x3c\157\160\164\x69\157\x6e\x20\x76\141\154\x75\145\75\x22\x48\x6f\x6e\x67\x20\x4b\x6f\156\147\x22\x3e\110\x6f\156\x67\x20\x4b\157\156\x67\x3c\57\x6f\160\x74\151\x6f\156\76\74\x6f\x70\164\151\x6f\x6e\x20\166\x61\154\165\145\75\42\x48\165\156\x67\x61\162\x79\42\76\110\x75\156\x67\141\x72\171\74\x2f\157\160\164\151\x6f\x6e\76\74\x6f\160\164\151\x6f\156\40\x76\141\154\165\x65\75\42\111\156\144\x69\x61\x22\76\x49\156\144\x69\141\74\x2f\157\160\x74\x69\x6f\x6e\76\x3c\157\x70\x74\151\x6f\156\x20\x76\141\154\165\145\75\42\x49\156\x64\157\156\x65\163\151\x61\42\x3e\111\x6e\144\x6f\156\145\x73\151\141\74\57\x6f\x70\x74\x69\x6f\156\76\74\x6f\x70\164\x69\x6f\x6e\x20\x76\x61\x6c\x75\x65\x3d\42\x49\162\145\x6c\141\156\144\x22\x3e\111\x72\x65\x6c\141\156\x64\x3c\57\x6f\160\164\x69\x6f\x6e\76\74\x6f\x70\x74\x69\157\156\x20\166\x61\154\165\x65\75\x22\111\163\162\x61\145\154\x22\76\x49\x73\162\x61\x65\x6c\74\x2f\x6f\160\x74\151\157\x6e\x3e\74\x6f\x70\x74\151\157\156\x20\166\141\154\x75\x65\x3d\42\111\x74\141\154\x79\42\76\x49\x74\141\x6c\171\74\57\157\160\x74\x69\157\x6e\76\x3c\157\160\x74\151\157\156\x20\x76\x61\x6c\165\145\x3d\42\x4a\141\160\141\x6e\x22\76\112\141\x70\141\156\74\x2f\157\x70\164\151\157\156\76\74\157\160\164\x69\x6f\x6e\40\166\141\x6c\x75\x65\x3d\42\113\x6f\162\x65\x61\x22\x3e\113\x6f\x72\145\x61\74\x2f\157\x70\x74\x69\x6f\156\76\x3c\157\x70\x74\151\157\156\40\x76\x61\154\165\145\x3d\x22\114\141\x74\x76\151\141\x22\76\114\141\x74\x76\x69\x61\x3c\x2f\x6f\x70\164\151\157\x6e\76\x3c\157\160\164\x69\157\156\x20\166\141\154\165\x65\x3d\x22\114\151\164\150\x75\141\156\151\141\42\76\x4c\x69\164\150\x75\141\x6e\151\141\x3c\57\x6f\160\164\x69\x6f\x6e\76\x3c\x6f\x70\x74\x69\157\x6e\40\166\141\x6c\165\145\x3d\x22\x4d\x61\x6c\x61\x79\x73\151\141\x22\76\115\141\154\x61\171\x73\x69\141\x3c\x2f\157\x70\x74\x69\157\156\x3e\x3c\157\x70\164\151\x6f\x6e\x20\x76\141\x6c\165\145\75\x22\x4d\145\x78\x69\143\x6f\42\76\115\x65\x78\151\143\x6f\74\57\x6f\160\164\x69\x6f\156\x3e\74\x6f\x70\164\x69\157\156\x20\x76\141\x6c\x75\145\75\x22\115\151\x64\x64\154\145\40\105\x61\163\x74\42\x3e\x4d\151\144\x64\x6c\145\40\105\141\x73\x74\74\57\x6f\x70\x74\x69\157\x6e\x3e\x3c\x6f\160\x74\x69\x6f\x6e\x20\x76\141\x6c\165\x65\75\42\x4d\x6f\162\x6f\x63\x63\157\x22\x3e\115\157\162\x6f\143\143\157\x3c\57\x6f\160\x74\151\x6f\156\x3e\x3c\x6f\160\164\151\x6f\156\40\x76\x61\154\165\x65\x3d\x22\116\145\x74\x68\145\162\x6c\141\x6e\x64\163\42\76\x4e\x65\x74\x68\x65\x72\x6c\x61\x6e\x64\163\x3c\57\157\x70\164\x69\157\156\76\74\x6f\x70\x74\x69\x6f\x6e\x20\x76\141\x6c\x75\x65\x3d\x22\x4e\145\x77\x20\132\145\141\x6c\x61\x6e\144\x22\76\x4e\x65\x77\40\x5a\x65\141\x6c\141\156\x64\74\57\x6f\160\164\151\x6f\156\76\x3c\x6f\160\164\151\157\x6e\40\x76\141\x6c\165\145\x3d\42\x4e\157\x72\167\141\x79\x22\76\116\157\162\x77\x61\x79\74\x2f\157\x70\x74\x69\x6f\156\76\x3c\157\160\164\151\157\156\40\166\x61\x6c\x75\x65\x3d\42\120\x61\156\141\155\x61\x22\x3e\120\141\x6e\141\155\141\74\57\157\x70\x74\x69\x6f\156\76\74\157\x70\164\151\x6f\156\40\166\141\x6c\165\x65\75\x22\120\145\x72\x75\x22\x3e\120\x65\x72\165\x3c\57\157\x70\x74\x69\x6f\x6e\76\x3c\x6f\x70\164\151\x6f\x6e\40\x76\x61\154\165\145\75\x22\120\x68\151\154\x69\160\x70\x69\156\x65\163\42\x3e\120\x68\151\154\x69\x70\160\x69\x6e\x65\163\74\x2f\157\x70\x74\x69\157\x6e\x3e\x3c\x6f\160\164\151\x6f\156\40\x76\141\x6c\165\145\75\x22\x50\x6f\154\x61\156\144\42\76\120\x6f\x6c\141\x6e\x64\x3c\x2f\157\x70\x74\151\x6f\x6e\76\74\157\160\x74\151\x6f\x6e\40\x76\141\x6c\x75\x65\x3d\42\120\x6f\x72\164\165\147\141\x6c\42\x3e\x50\x6f\162\x74\x75\x67\x61\x6c\x3c\x2f\157\x70\164\x69\157\156\76\x3c\157\160\x74\151\157\156\40\x76\x61\x6c\x75\145\75\42\120\x75\145\162\x74\157\x20\122\x69\143\x6f\42\76\120\x75\x65\x72\164\157\x20\x52\151\143\157\74\57\x6f\160\x74\151\157\156\x3e\74\x6f\x70\x74\x69\x6f\156\40\x76\x61\154\165\145\x3d\x22\x52\157\x6d\141\156\151\x61\x22\x3e\x52\157\155\x61\156\151\x61\x3c\x2f\157\x70\164\x69\x6f\156\76\x3c\157\x70\164\151\157\156\x20\x76\141\154\x75\145\x3d\42\122\165\163\163\x69\x61\156\x20\106\145\x64\145\x72\141\164\x69\157\x6e\x22\76\x52\x75\x73\163\151\141\x6e\x20\106\x65\144\145\162\141\164\x69\x6f\156\74\57\x6f\x70\164\151\157\156\76\x3c\x6f\160\164\151\157\x6e\40\x76\141\x6c\x75\145\x3d\42\x53\151\x6e\x67\141\160\157\162\x65\x22\x3e\123\151\x6e\147\x61\x70\x6f\x72\145\x3c\x2f\x6f\160\164\151\x6f\x6e\x3e\74\x6f\x70\x74\x69\157\x6e\x20\x76\x61\x6c\x75\x65\x3d\x22\123\x6c\x6f\x76\x61\153\x69\x61\x22\x3e\123\154\157\166\141\x6b\151\x61\74\57\x6f\x70\x74\x69\x6f\156\x3e\74\x6f\160\164\x69\x6f\x6e\40\166\x61\154\x75\x65\75\x22\x53\x6c\157\x76\x65\156\151\x61\42\76\x53\154\157\166\x65\156\x69\141\x3c\57\157\x70\x74\151\x6f\156\76\74\x6f\160\164\151\x6f\156\40\166\141\154\165\145\75\x22\x53\157\165\164\150\x20\101\146\x72\x69\x63\141\x22\76\x53\157\165\164\x68\x20\101\x66\x72\x69\x63\x61\x3c\x2f\157\x70\x74\x69\157\156\x3e\74\x6f\160\164\151\x6f\156\40\166\141\154\165\145\75\x22\x53\160\x61\151\156\42\x3e\x53\160\141\151\156\x3c\57\157\x70\164\x69\157\x6e\x3e\x3c\157\x70\x74\x69\x6f\x6e\40\166\x61\x6c\165\x65\75\x22\123\x77\x65\x64\x65\x6e\x22\x3e\x53\167\145\x64\x65\x6e\74\x2f\x6f\x70\x74\x69\157\x6e\76\x3c\x6f\x70\164\x69\157\156\x20\x76\141\x6c\165\x65\75\42\x53\x77\x69\164\172\x65\162\x6c\x61\156\144\42\76\x53\x77\x69\x74\x7a\x65\162\154\x61\x6e\144\x3c\57\x6f\x70\x74\x69\157\x6e\x3e\x3c\x6f\160\164\151\157\156\40\166\141\x6c\x75\145\75\x22\124\141\151\x77\141\x6e\42\x3e\x54\141\x69\x77\141\x6e\x3c\x2f\x6f\160\164\x69\x6f\156\x3e\x3c\x6f\160\x74\x69\x6f\x6e\40\x76\141\154\165\x65\75\x22\124\150\141\x69\154\141\x6e\144\x22\x3e\x54\x68\x61\x69\x6c\141\156\x64\74\57\x6f\x70\x74\151\157\x6e\x3e\74\157\160\164\151\x6f\x6e\x20\166\x61\154\165\145\x3d\x22\x54\165\162\153\145\171\x22\x3e\x54\x75\x72\153\145\171\74\57\157\160\164\151\x6f\156\x3e\x3c\x6f\x70\x74\151\x6f\156\40\x76\141\x6c\165\145\x3d\x22\x55\153\162\x61\151\x6e\x65\42\76\x55\153\162\x61\x69\156\145\74\57\x6f\x70\x74\x69\x6f\x6e\x3e\74\x6f\160\164\151\157\x6e\x20\166\141\154\x75\145\x3d\42\x55\x6e\151\x74\x65\x64\x20\x4b\x69\156\x67\144\x6f\x6d\42\76\125\x6e\x69\164\x65\x64\40\113\x69\x6e\147\x64\x6f\155\x3c\x2f\x6f\160\164\x69\x6f\156\x3e\x3c\x6f\160\164\x69\157\x6e\x20\x76\x61\x6c\x75\x65\x3d\42\125\x6e\151\164\x65\x64\x20\x53\x74\141\164\x65\163\x22\x3e\125\x6e\x69\x74\x65\x64\40\x53\164\141\164\x65\x73\74\x2f\x6f\x70\x74\151\157\156\x3e\x3c\x6f\x70\x74\x69\157\156\40\166\141\x6c\165\145\75\x22\x56\145\x6e\x65\x7a\165\x65\154\x61\x22\76\x56\145\156\145\x7a\165\x65\154\141\74\57\157\x70\164\x69\x6f\x6e\76\x3c\157\160\164\151\157\156\40\x76\141\x6c\165\x65\x3d\x22\x56\151\x65\164\156\141\x6d\42\76\x56\x69\x65\164\x6e\141\155\x3c\x2f\157\x70\164\x69\157\x6e\x3e\x3c\57\163\145\x6c\145\143\x74\x3e"; return $return; } goto HYdwH; LJso4: function enum_vals($column, $table) { $conexion = $GLOBALS["\143\x6f\x6e\x65\x78\151\x6f\x6e"]; $sql = "\x53\x48\x4f\x57\40\x43\117\114\x55\x4d\x4e\123\40\106\122\117\115\x20{$table}\x20\127\110\105\122\x45\x20\146\151\145\x6c\144\40\75\40\x27{$column}\x27"; $run = mysqli_query($conexion, $sql); $res = mysqli_fetch_array($run); $type = $res[1]; $buscar = array("\x65\x6e\165\x6d", "\50", "\x29", "\x27"); $vals = str_replace($buscar, '', $type); return explode("\x2c", $vals); } goto T6mW3; Q1S3a: function update_bd2($table, $values, $conditions, $arrCondiciones) { $conexion = $GLOBALS["\x63\157\x6e\145\x78\x69\x6f\156\x5f\167\x72\x69\164\145\x72"]; $sql = "\x55\120\104\x41\x54\105\x20{$table}\x20\x53\105\124\40{$values}\x20\x57\110\x45\x52\105\x20{$conditions}"; $stmt = $conexion->prepare($sql); $refArr = $arrCondiciones; $ref = new ReflectionClass("\x6d\171\x73\x71\x6c\x69\x5f\163\x74\x6d\164"); $method = $ref->getMethod("\x62\x69\x6e\x64\x5f\x70\141\162\x61\155"); $method->invokeArgs($stmt, $refArr); $stmt->execute(); if ($run) { return true; } else { return false; } } goto ftE65; T6mW3: function img_tag($file, $w, $h) { $size = getimagesize($file); $width = $size[0]; $height = $size[1]; if ($width > $w) { $p = $w / $width; $x = $p * $width; $y = $p * $height; if ($y > $h) { $p = $h / $y; $x = $p * $x; $y = $p * $y; } } elseif ($height > $h) { $p = $h / $height; $x = $p * $width; $y = $p * $height; if ($x > $width) { $p = $h / $x; $x = $p * $x; $y = $p * $y; } } else { $x = $width; $y = $height; } return "\74\x69\155\x67\x20\163\x72\x63\x3d\42" . $file . "\42\40\167\x69\144\164\x68\x3d\42" . $x . "\160\x78\x22\40\150\145\x69\x67\150\164\x3d\x22" . $y . "\x70\170\42\x20\x62\157\x72\x64\x65\x72\x3d\x22\x30\42\x3e"; } goto e1kzm; qSlna: function obtener_tabla_id($tabla) { $filas = consulta_bd("\x69\x64", "\x74\x61\142\154\x61\163", "\156\x6f\155\x62\x72\x65\x20\75\40\x27{$tabla}\x27", ''); $id = $filas[0][0]; return $id; } goto FOwg4; P8YDy: function previewDatos($dato) { $datoCodificado = ''; $caracteres = str_split($dato); foreach ($caracteres as $key => $valor) { if ($key > 3) { if ($valor == "\40") { $datoF = "\x20"; } elseif ($valor == "\100") { $datoF = $valor; } else { $datoF = "\x2a"; } } else { $datoF = $valor; } $datoCodificado .= $datoF; } return $datoCodificado; } goto yMOEV; XdvMZ: function obtener_tabla($val_op) { $filas = consulta_bd("\156\157\155\142\162\x65", "\x74\x61\142\x6c\141\x73", "\151\144\40\x3d\40\47{$val_op}\47", ''); $nombre = (is_countable($filas) and count($filas) > 0) ? $filas[0][0] : false; return $nombre; } goto qSlna; BNkaI: function get_real_name($nombre) { $real_name = str_replace("\137", "\40", $nombre); $palabras = explode("\40", $real_name); if (count($palabras) > 1) { $i == 0; foreach ($palabras as $palabra) { $nombre_final .= $i == 0 ? ucwords(ortografia($palabra)) : "\x20" . ortografia($palabra); $i++; } } else { $nombre_final = ucwords(ortografia($nombre)); } return $nombre_final; } goto QYdQ9; rCD7b: function is_md5($var) { return preg_match("\x2f\x5e\x5b\x41\55\x46\x61\55\146\60\55\71\135\x7b\63\x32\x7d\44\57", $var); } goto TGzmL; LuGrJ: function fecha_sql($fecha) { if (strtotime($fecha)) { $fecha_cl = date("\x64\57\x6d\57\x59\40\x2d\40\x48\72\151", strtotime($fecha)); } else { $fecha_cl = date("\x64\x2f\155\x2f\x59\40\55\x20\110\x3a\151"); } return $fecha_cl; } goto JM1XE; e1kzm: function is_date($string) { if (strlen($string) == 10 || strlen($string) == 19) { $dia = substr($string, 8, 2); $ano = substr($string, 0, 4); $mes = substr($string, 5, 2); if (is_numeric($dia) and is_numeric($mes) and is_numeric($ano)) { return checkdate($mes, $dia, $ano); } else { return false; } } else { return false; } } goto v88rT; u4_Y0: function delete_bd_where($table, $where) { $conexion = $GLOBALS["\x63\157\x6e\x65\x78\x69\157\x6e\137\167\x72\151\164\145\162"]; $sql = "\104\105\114\105\124\105\40\106\122\117\x4d\x20{$table}\x20\x57\x48\x45\x52\105\x20{$where}"; $run = mysqli_query($conexion, $sql) or die(mysqli_error($conexion) . "\x3c\142\x72\40\57\76\x3c\142\x72\40\x2f\x3e{$sql}"); if ($run) { return true; } else { return false; } } goto hQHc5; hNqtB: function insert_entry($exclusiones, $tabla) { $keys = "\146\x65\143\150\x61\137\143\162\145\x61\x63\151\157\156"; $vals = "\116\x4f\x57\x28\51"; foreach ($_POST as $key => $val) { if (!strpos("\40" . $exclusiones, $key)) { $keys .= "\54\40{$key}"; $vals .= "\54\40\x27{$val}\47"; } } $insert = insert_bd($tabla, $keys, $vals); if ($insert) { return true; } else { return false; } } goto CIUul; Vy20M: function column_is_related($column) { $is_id = substr($column, -3, 3); if ($is_id == "\x5f\x69\144") { $parent_name = substr($column, 0, -3); return $parent_name; } else { return false; } } goto Toq55; OjbiE: function validar_rut($r, $dv) { $r = str_replace("\56", '', trim($r)); $s = 1; for ($m = 0; $r != 0; $r /= 10) { $s = ($s + $r % 10 * (9 - $m++ % 6)) % 11; } return chr($s ? $s + 47 : 75) == strtoupper($dv); } goto Yzft3; BukG9: function truncate($table) { $conexion = $GLOBALS["\143\157\x6e\x65\x78\x69\157\156\x5f\x77\x72\x69\x74\145\162"]; $sql = sprintf("\104\105\x4c\x45\124\x45\40\x46\x52\117\115\x20{$table}", $conexion); $run = mysqli_query($conexion, $sql) or die(mysqli_error($conexion) . "\x3c\142\x72\x20\57\76\x3c\x62\x72\40\57\76{$sql}"); if ($run) { return true; } else { return false; } } goto HpQKx; T3lhr: function add_file($input_name, $dir, $tabla, $id, $extensions) { $conexion = $GLOBALS["\143\x6f\156\x65\x78\x69\157\x6e"]; if (!file_exists($dir . "\57")) { $mk = mkdir($dir); if (!$mk) { $error = "\105\162\x72\157\x72\40\141\154\40\x63\x72\x65\141\162\x20\x65\154\x20\x64\151\162\145\x63\164\157\162\x69\x6f\56\46\164\x69\x70\x6f\75\145\162\x72\x6f\x72"; } } if ($error == '') { if ($_FILES[$input_name]["\x6e\x61\155\x65"]) { if ($_FILES[$input_name]["\163\151\172\x65"] < 209715200) { $file_name = str_replace("\x20", "\x5f", substr($_FILES[$input_name]["\156\141\155\145"], 0, -4)); $file_name = str_replace("\56", '', $file_name); $file_ext = strtolower(substr(strrchr($_FILES[$input_name]["\x6e\x61\x6d\145"], "\56"), 1)); $extension = explode("\x2c", $extensions); $cant_ex = count($extension); $ok = false; foreach ($extension as $ex) { if ($file_ext == trim($ex)) { $ok = true; break; } } if ($ok) { $date = date("\144\155\150\x69\163"); $archivo = $date . "\x5f" . $file_name . "\x2e" . $file_ext; $dir1 = "{$dir}\x2f{$archivo}"; $move = move_uploaded_file($_FILES[$input_name]["\x74\x6d\x70\x5f\156\141\155\145"], $dir1); if ($move) { if ($id) { $img_q = "\123\x45\114\105\x43\124\40{$input_name}\x20\106\122\117\x4d\x20{$tabla}\x20\127\x48\105\x52\x45\40\x69\144\x20\75\40\x27{$id}\x27"; $run = mysqli_query($conexion, $img_q); $res = mysqli_fetch_array($run); $img = "{$dir}\x2f" . $res[0]; if ($res[0] != '') { unlink($img); } } $values .= "\54\40{$input_name}\40\x3d\40\47{$archivo}\47"; } else { $error = "\x45\x72\162\157\162\40\x61\154\40\143\x61\x72\x67\141\162\40\145\x6c\x20\x61\162\143\150\151\166\x6f\54\40\160\157\x72\x20\x66\141\166\157\162\40\151\x6e\164\303\251\156\x74\145\x6c\157\x20\x6e\x75\145\166\141\x6d\x65\156\164\x65\56\x26\x74\x69\x70\157\x3d\x65\x72\162\157\162"; } } else { $error = "\124\x69\160\157\x20\x64\x65\x20\x61\162\x63\x68\151\x76\x6f\40\151\x6e\143\157\x72\162\145\143\164\157\x2c\x20\144\x65\142\x65\x20\x73\x65\162\40{$extensions}\40\x79\40\145\x73\x20{$file_ext}\46\164\151\160\157\x3d\156\157\164\151\x66\151\143\x61\143\x69\x6f\x6e"; } } else { $error = "\x54\141\x6d\x61\xc3\xb1\157\x20\144\x65\x6c\x20\x61\162\x63\150\151\166\x6f\40\x64\145\142\x65\x20\x73\x65\x72\x20\155\x65\x6e\157\162\40\141\x20\62\60\60\115\x42\40\46\164\151\160\157\75\156\157\x74\x69\x66\151\143\x61\x63\151\157\156"; } } else { $error = "\105\162\x72\x6f\x72\40\141\154\x20\x70\162\x6f\143\x65\163\x61\162\40\x65\x6c\x20\x61\x72\x63\150\x69\x76\x6f\x2c\x20\141\x72\143\x68\151\166\157\x20\x6e\x6f\x20\145\156\143\x6f\x6e\164\x72\141\x64\157\x2e\x26\164\151\160\157\75\145\162\162\157\x72"; } } $return = array("\x65\x72\x72\x6f\162" => $error, "\x76\x61\154\x6f\162\x65\163" => $values); return $return; } goto nG7M3; yMOEV: function sumaDiasHabiles() { $fechaInicial = date("\131\x2d\155\x2d\x64"); $MaxDias = 2; for ($i = 0; $i < $MaxDias; $i++) { $Segundos = $Segundos + 86400; $caduca = date("\104", time() + $Segundos); if ($caduca == "\x53\x61\164") { $i--; } else { if ($caduca == "\x53\x75\156") { $i--; } else { $FechaFinal = date("\x64\x2d\x6d\55\x59", time() + $Segundos); } } } return $FechaFinal; } goto JFmn0; nGiPB: function extraer_numero($cadena) { $numero = ''; for ($index = 0; $index < strlen($cadena); $index++) { if (is_numeric($cadena[$index])) { $numero .= $cadena[$index]; } } return $numero; } goto ag7l9; uPkz5: date_default_timezone_set("\101\155\145\x72\x69\143\141\57\x53\141\156\164\151\x61\147\157"); goto in62A; v03jA: function get_nombre_sitio($nombre) { $largo = strlen($nombre); $buscar = "\x5f"; if (strrpos($nombre, $buscar)) { $nombre_real = ucwords(strtolower(substr(strrchr($nombre, "\137"), 1))); } else { $nombre_real = ucwords($nombre); } return $nombre_real; } goto ri5bJ; gN_5x: function prepare_img($html) { $url_sitio = get_option("\165\x72\154\137\163\x69\164\x69\157"); return str_replace("\163\162\143\x3d\x22\x2e\56\x2f", "\x73\x72\143\75\x22" . $url_sitio . "\57", $html); } goto prPQf; yAOrQ: function num_hojas($page, $total, $limite_hoja, $op, $buscar) { if ($total > $limite_hoja) { $restantes = $total - $limite_hoja; $hojas = ceil($restantes / $limite_hoja); if ($page != 0) { $prev = $page; echo "\74\141\40\150\162\145\x66\75\42\x69\156\144\145\170\56\x70\150\x70\x3f\x6f\x70\x3d" . $op . "\x26\x70\141\147\x65\x3d" . $prev . "\x26\x62\165\163\x63\141\162\x3d" . $buscar . "\x22\40\x63\154\141\163\x73\x3d\x22\160\141\x67\x65\x22\76\101\156\x74\x65\x72\151\157\162\74\57\141\76\40"; } $j = 0; while ($j <= $hojas) { $k = $j + 1; echo "\74\141\40\150\x72\x65\x66\x3d\x22\151\x6e\x64\x65\170\56\x70\x68\160\x3f\157\160\x3d" . $op . "\46\160\141\x67\145\x3d" . $k . "\x26\142\x75\163\143\141\x72\75" . $buscar . "\x22\x20"; if ($page == $j) { echo "\143\x6c\x61\163\163\75\42\160\x61\x67\x65\137\x73\145\x6c\x65\143\x74\x65\x64\x22\x3e"; } else { echo "\x63\154\141\x73\163\x3d\42\160\141\147\x65\42\x3e"; } echo $k; echo "\x3c\57\141\x3e\40"; $j++; } if ($page != $hojas) { $next = $page + 2; echo "\74\x61\40\150\x72\145\x66\75\x22\x69\156\x64\x65\170\x2e\x70\x68\160\77\x6f\x70\x3d" . $op . "\46\x70\141\147\x65\75" . $next . "\46\x62\165\163\x63\x61\162\75" . $buscar . "\x22\x20\x63\154\x61\163\163\75\x22\160\141\x67\145\42\40\x6f\x6e\143\x6c\151\x63\x6b\75\42\163\165\142\x6d\151\x74\50\x29\42\76\123\x69\x67\x75\151\x65\x6e\164\145\74\57\x61\76\40"; } } } goto PGRXF; nkYr4: function column_exists($table, $column) { $conexion = $GLOBALS["\x63\157\x6e\145\170\x69\157\156"]; $sql = "\123\x48\117\x57\x20\143\157\154\165\x6d\x6e\163\40\x46\x52\x4f\x4d\x20{$table}"; $run = mysqli_query($conexion, $sql) or die(mysqli_error() . "\x3c\142\x72\40\x2f\x3e\x3c\142\x72\40\x2f\x3e{$sql}"); $i = 0; $z = 0; while ($line = mysqli_fetch_array($run)) { $ok = false; if (trim($column) == $line[0]) { $ok = true; break; } $i++; } return $ok; } goto gN_5x; GIbdc: function is_inside($buscados, $string) { $exclusiones = explode("\x2c", $buscados); $is_id = substr($string, -3, 3); if ($is_id != "\137\151\x64") { foreach ($exclusiones as $no) { if ($string == trim($no)) { return true; break; } else { $ok = 1; } } } else { $ok = 1; } if ($ok) { return false; } } goto JYUxP; GIWji: function does_url_exists($url) { $ch = curl_init($url); curl_setopt($ch, CURLOPT_NOBODY, true); curl_exec($ch); $code = curl_getinfo($ch, CURLINFO_HTTP_CODE); if ($code == 200) { $status = true; } else { $status = false; } curl_close($ch); return $status; } goto CZMcD; O4A3Z: function consulta_bd_por_id($campos, $table, $conditions, $id) { $conexion = $GLOBALS["\x63\157\x6e\145\170\x69\x6f\x6e"]; if (is_numeric((int) $id)) { $sql = "\123\105\114\x45\x43\x54\x20{$campos}\x20\106\122\x4f\115\x20{$table}"; if ($conditions != '') { $sql .= "\x20\127\110\105\x52\105\40{$conditions}\x20\x41\116\104\40\151\144\40\75\40\47{$id}\47"; } else { $sql .= "\x20\127\x48\105\x52\105\x20\x69\144\x20\75\x20\47{$id}\x27"; } } else { die("\x45\162\162\157\x72\x2c\x20\x69\x64\145\156\x74\x69\x66\x69\143\141\x64\x6f\162\x20\x6e\x6f\x20\166\xc3\241\x6c\x69\x64\x6f"); } $run = mysqli_query($conexion, $sql) or die(mysqli_error($conexion) . "\74\142\x72\40\57\76\x3c\x62\x72\x20\x2f\76{$sql}"); $line = mysqli_fetch_array($run); return $line; } goto hzrDZ; hQHc5: function show_columns($table, $exception) { $conexion = $GLOBALS["\x63\x6f\156\x65\x78\151\157\156"]; if ($exception != '') { $excepciones = explode("\54", $exception); } $sql = "\x53\110\117\127\40\x63\x6f\154\165\155\x6e\x73\x20\106\x52\x4f\x4d\40{$table}"; $run = mysqli_query($conexion, $sql) or die(mysqli_error($conexion) . "\x3c\142\x72\40\x2f\76\74\142\162\x20\57\x3e{$sql}"); $i = 0; $z = 0; while ($line = mysqli_fetch_array($run)) { $ok = true; foreach ($excepciones as $val) { if (trim($val) == $line[0]) { $ok = false; } } if ($ok) { $resulset[$z] = "{$line["\60"]}"; $z++; } $i++; } return $resulset; } goto yAOrQ; nO0T3: function is_enum($column, $table) { $conexion = $GLOBALS["\x63\x6f\156\145\170\x69\x6f\x6e"]; $sql = "\x53\x48\117\x57\x20\103\117\114\125\x4d\x4e\123\x20\106\x52\117\115\40{$table}\x20\127\110\105\x52\x45\40\x66\151\145\x6c\x64\x20\75\x20\x27{$column}\x27"; $run = mysqli_query($conexion, $sql); $res = mysqli_fetch_array($run); $type = $res[1]; return substr_count($type, "\145\x6e\x75\155") != 0 ? true : false; } goto LJso4; CZMcD: function imagen($url, $file) { $nombre_fichero = $url . $file; if (strpos($_SERVER["\x48\124\124\120\x5f\x41\x43\x43\105\120\x54"], "\151\155\141\147\x65\x2f\167\145\x62\x70") !== false) { $supported = true; } else { $supported = false; } if ($file == '') { if ($supported) { $imagen = "\163\x69\x6e\x46\157\164\x6f\56\167\x65\142\x70"; } else { $imagen = "\x73\x69\156\106\x6f\x74\x6f\56\x6a\160\x67"; } return $url . $imagen; die; } $extension = pathinfo($file, PATHINFO_EXTENSION); $nombre_base = basename($file, "\56" . $extension); $nombreWebP = $nombre_base . "\56\167\x65\x62\x70"; if ($supported) { if (file_exists($url . $nombreWebP)) { $imagen = $url . $nombreWebP; } else { $imagen = $nombre_fichero; } } else { $imagen = $nombre_fichero; } return $imagen; } goto hVtuw; G9s4b: function opciones($campo) { $conexion = $GLOBALS["\x63\157\x6e\145\x78\x69\x6f\x6e"]; $opciones = consulta_bd("\166\x61\154\x6f\162", "\x6f\160\143\x69\157\x6e\x65\163", "\x6e\157\x6d\142\162\145\x20\75\40\47{$campo}\x27", ''); if (is_countable($opciones) and count($opciones) > 0) { $valor = $opciones[0][0]; return $valor; } } goto GIWji; K_vKS: function del_file($file) { if (file_exists($file)) { $unlink = unlink($file); if ($unlink) { return true; } else { return false; } } else { return false; } } goto GIbdc; FVw9g: function insert_bd($table, $campos, $values) { $conexion = $GLOBALS["\143\157\x6e\145\170\151\x6f\x6e\137\x77\162\151\x74\145\162"]; $sql = "\111\116\123\x45\x52\x54\40\x49\116\124\117\40{$table}\x20\x28{$campos}\x29\40\x56\x41\x4c\125\x45\x53\x20\x28{$values}\51"; $run = mysqli_query($conexion, $sql) or die(mysqli_error($conexion) . "\x3c\142\162\40\57\x3e\74\142\162\x20\x2f\76{$sql}"); if ($run) { return true; } else { return false; } } goto vxwG9; FOwg4: function comprobar_rut($sUsr) { $sUsr = str_replace("\x2e", '', $sUsr); if (!preg_match("\57\50\x5c\144\x7b\67\54\x38\175\x29\55\50\x5b\134\x64\x4b\135\51\x2f", strtoupper($sUsr), $aMatch)) { return false; } $sRutBase = substr(strrev($aMatch[1]), 0, 8); $sCodigoVerificador = $aMatch[2]; $iCont = 2; $iSuma = 0; for ($i = 0; $i <= strlen($sRutBase); $i++) { if ($iCont > 7) { $iCont = 2; } $iSuma += $sRutBase[$i] * $iCont; $iCont++; } $iDigito = 11 - $iSuma % 11; $sCaracter = substr("\x2d\x31\x32\63\64\65\x36\x37\x38\71\113\60", $iDigito, 1); return $sCaracter == $sCodigoVerificador; } goto OjbiE; uDzTo: function comprobar_mail($email) { $mail_correcto = 0; if (strlen($email) >= 6 && substr_count($email, "\x40") == 1 && substr($email, 0, 1) != "\100" && substr($email, strlen($email) - 1, 1) != "\x40") { if (!strstr($email, "\47") && !strstr($email, "\42") && !strstr($email, "\134") && !strstr($email, "\44") && !strstr($email, "\x20")) { if (substr_count($email, "\x2e") >= 1) { $term_dom = substr(strrchr($email, "\x2e"), 1); if (strlen($term_dom) > 1 && strlen($term_dom) < 5 && !strstr($term_dom, "\x40")) { $antes_dom = substr($email, 0, strlen($email) - strlen($term_dom) - 1); $caracter_ult = substr($antes_dom, strlen($antes_dom) - 1, 1); if ($caracter_ult != "\100" && $caracter_ult != "\x2e") { $mail_correcto = 1; } } } } } if ($mail_correcto) { return 1; } else { return 0; } } goto QDf8U; KBoc5: function url_amigables($url) { $find = array("\xc3\xa1", "\xc3\251", "\xc3\xad", "\303\263", "\xc3\xba", "\303\xb1", "\303\201", "\xc3\211", "\303\x8d", "\303\223", "\xc3\232", "\xc3\221"); $repl = array("\141", "\x65", "\x69", "\157", "\165", "\x6e", "\101", "\x45", "\x49", "\117", "\x55", "\116"); $url = str_replace($find, $repl, $url); $url = strtolower($url); $find = array("\x20", "\46", "\x5c\x72\x5c\156", "\134\x6e", "\53"); $url = str_replace($find, "\55", $url); $find = array("\57\133\x5e\x61\55\172\60\x2d\71\134\x2d\x3c\x3e\135\57", "\57\x5b\134\x2d\135\x2b\x2f", "\x2f\x3c\133\x5e\76\135\x2a\76\x2f"); $repl = array('', "\x2d", ''); $url = preg_replace($find, $repl, $url); return $url; } goto Ynwkk; dgTi3: function get_asociados($tabla, $asociados, $id) { $id_tabla = singular($tabla) . "\x5f\x69\144"; $cantidad = consulta_bd("\x43\x4f\x55\116\124\50\x2a\51", "{$asociados}", "{$id_tabla}\40\75\40{$id}", ''); return $cantidad[0][0]; } goto vKK8h; PlIW1: function check_admin_loged($hash, $user) { $conexion = $GLOBALS["\143\x6f\x6e\145\170\x69\157\x6e"]; $is = consulta_bd("\x2a", "\141\x64\x6d\151\x6e\151\x73\164\x72\x61\144\x6f\162\x65\x73", "\151\144\40\x3d\x20\47{$user}\47\40\101\116\104\x20\x73\145\163\x73\x69\x6f\x6e\137\x68\141\163\150\40\75\40\47{$hash}\47", ''); $cant = mysqli_affected_rows($conexion); if ($cant == 1) { return true; } else { return false; } } goto v03jA; UsbuF: function get_val_op($op) { $value = substr($op, 0, -1); return $value; } goto cnqDs; KT6fJ: function get_option($val) { $res = consulta_bd("\166\x61\x6c\x6f\x72", "\x6f\x70\x63\x69\157\156\x65\x73", "\x6e\x6f\x6d\x62\x72\x65\40\75\40\x27{$val}\47", ''); $respuesta = (is_countable($res) and count($res) > 0) ? $res[0][0] : false; return $respuesta; } goto nkYr4; fTrQB: function plural($string) { $ultima = substr($string, -1, 1); $vocales = array("\141", "\145", "\x69", "\157", "\165"); foreach ($vocales as $v) { if ($v == $ultima) { $ter = "\x73"; break; } else { $ter = "\145\x73"; } } $plural = "{$string}{$ter}"; return $plural; } goto XdvMZ; Toq55: function check_if_item_has_belongs_to($column) { $conexion = $GLOBALS["\x63\x6f\x6e\x65\x78\151\x6f\156"]; $nombre_tabla_hijo = plural(substr($column, 0, -3)); $id_tabla_hijo = consulta_bd("\x69\144", "\x74\141\x62\154\x61\x73", "\x6e\x6f\x6d\x62\162\x65\40\x3d\x20\47{$nombre_tabla_hijo}\x27", ''); $id_tabla_hijo = $id_tabla_hijo[0][0]; $tabla = consulta_bd("\x76\x61\x6c\x6f\162", "\x6f\160\x63\x69\x6f\x6e\145\163\x5f\164\141\x62\154\141\x73", "\156\x6f\155\142\162\x65\40\x3d\x20\x27\142\x65\x6c\x6f\156\x67\x73\x5f\164\157\47\40\101\116\104\40\164\x61\x62\x6c\x61\x5f\151\144\x20\x3d\x20\x27{$id_tabla_hijo}\47", ''); if (mysqli_affected_rows($conexion) > 0) { return $tabla[0][0]; } else { return false; } } goto K_vKS; nG7M3: function add_img($input_name, $dir, $tabla, $id, $width, $height, $thumb, $width_thumb, $height_thumb, $bn) { $conexion = $GLOBALS["\x63\x6f\x6e\x65\170\151\157\x6e"]; if (opciones("\163\63\137\x61\143\164\x69\x76\157")) { $bucketName = $_ENV["\x53\63\x5f\102\x55\x43\x4b\105\x54"]; $IAM_KEY = $_ENV["\123\63\137\x4b\x45\x59"]; $IAM_SECRET = $_ENV["\x53\63\137\123\105\103\x52\105\124"]; $s3 = new Aws\S3\S3Client(array("\143\x72\145\144\x65\156\x74\151\141\x6c\163" => array("\153\145\x79" => $IAM_KEY, "\x73\145\x63\162\x65\164" => $IAM_SECRET), "\166\145\x72\x73\151\157\x6e" => "\x6c\x61\x74\x65\163\x74", "\x72\x65\147\x69\157\156" => "\x75\x73\x2d\145\141\163\164\55\x32")); } if (!file_exists($dir . "\x2f")) { $mk = mkdir($dir); if (!$mk) { $error = "\105\x72\x72\157\x72\40\x61\154\40\143\162\x65\x61\162\40\145\x6c\x20\144\x69\162\x65\x63\x74\x6f\162\x69\x6f\x2e\46\164\x69\160\x6f\x3d\x65\x72\162\157\162"; } } if ($thumb) { $dir_thumb = "{$dir}\57\164\x68\x75\155\142\163\57"; if (!file_exists($dir_thumb)) { $mk = mkdir($dir_thumb); if (!$mk) { $error = "\x45\x72\162\157\x72\x20\x61\x6c\40\x63\x72\145\141\x72\40\x65\x6c\40\144\x69\162\145\143\164\157\x72\x69\157\56\46\x74\x69\x70\x6f\x3d\x65\x72\x72\157\162"; } } } if ($error == '') { if ($_FILES[$input_name]["\156\141\155\145"]) { if ($_FILES[$input_name]["\163\151\x7a\145"] < 200000000) { $file_name = substr($_FILES[$input_name]["\x6e\141\x6d\145"], 0, -4); $file_name = str_replace("\x20", "\137", $file_name); $file_ext = strtolower(substr(strrchr($_FILES[$input_name]["\x6e\141\x6d\x65"], "\56"), 1)); if ($file_ext == "\x6a\160\x67" or $file_ext == "\x70\156\147" or $file_ext == "\147\x69\146") { $date = date("\144\x6d\x68\151\163"); $tmp_name = $date . "\137" . $file_name . "\56" . $file_ext; $dir1 = "{$dir}\57{$tmp_name}"; $move = move_uploaded_file($_FILES[$input_name]["\x74\x6d\160\x5f\x6e\141\155\x65"], $dir1); if (!opciones("\x73\63\137\x61\143\164\151\x76\x6f")) { if ($move) { $animated_gif = is_animated_gif($dir1); if ($animated_gif) { $archivo = $date . "\137" . $file_name . "\56" . $file_ext; $dir2 = "{$dir}\x2f{$archivo}"; $copy = rename($dir1, $dir2); } else { $new_file = resize_foto($dir1, $height, $width, false); $archivo = $date . "\137" . $file_name . "\56" . $file_ext; $dir2 = "{$dir}\57{$archivo}"; $copy = copy($new_file, $dir2); if (opciones("\x75\163\141\162\x5f\167\145\142\160")) { $archivoWebp = $date . "\x5f" . $file_name . "\56\x77\145\142\x70"; $dirWebp = "{$dir}\57{$archivoWebp}"; $path_lib_webp = opciones("\x70\x61\x74\x68\137\x6c\151\142\137\167\145\142\160"); $salida = shell_exec("{$path_lib_webp}\40\x2d\161\40\x38\60\x20{$dir2}\x20\x2d\x6f\x20{$dirWebp}"); } if ($thumb) { $new_file_thumb = resize_foto($dir1, $height_thumb, $width_thumb, false); $archivo_thumb = $date . "\x5f" . $file_name . "\x2e" . $file_ext; $dir3 = "{$dir_thumb}\57\164\150\165\155\142\x73\137{$archivo_thumb}"; $copy = copy($new_file_thumb, $dir3); if (opciones("\x75\x73\141\x72\137\167\145\x62\x70")) { $archivoWebp_thumb = $date . "\137" . $file_name . "\56\167\145\x62\x70"; $dirWebp2 = "{$dir_thumb}\x2f{$archivoWebp_thumb}"; $path_lib_webp = opciones("\160\x61\164\150\x5f\x6c\151\x62\137\x77\145\142\160"); $salida = shell_exec("{$path_lib_webp}\40\55\161\x20\70\x30\x20{$dir3}\40\x2d\157\40{$dirWebp2}"); } if ($bn) { $new_file_thumb_bn = resize_foto($dir1, $height_thumb, $width_thumb, true); $archivo_thumb_bn = $date . "\137" . $file_name . "\137\142\x6e\x2e" . $file_ext; $dir4 = "{$dir_thumb}\57{$archivo_thumb_bn}"; $copy = copy($new_file_thumb_bn, $dir4); } } } if ($copy) { if (!$animated_gif) { unlink($new_file); unlink($dir1); } if ($id) { $img_q = "\x53\x45\x4c\105\x43\124\x20{$input_name}\40\x46\122\117\x4d\x20{$tabla}\40\127\x48\105\x52\x45\40\151\x64\40\75\40\47{$id}\47"; $run = mysqli_query($conexion, $img_q); $res = mysqli_fetch_array($run); $img1 = "{$dir}\57" . $res[0]; $img2 = "{$dir}\57\x74\x68\165\155\142\x73\57" . $res[0]; if ($res[0] != '') { if (file_exists($img1)) { unlink($img1); } if (file_exists($img2)) { unlink($img2); } } } $values .= "\x2c\x20{$input_name}\x20\75\x20\47{$archivo}\x27"; } else { $size = getimagesize($dir); $error = "\x45\162\162\157\162\x20\x61\154\x20\x63\x6f\x70\151\141\x72\40\x6c\x61\x20\x69\x6d\141\x67\x65\156\x26\x74\151\x70\157\x3d\145\162\x72\157\162"; } } else { $error = "\105\162\x72\157\x72\40\141\154\x20\143\141\x72\x67\x61\x72\x20\x6c\141\40\x69\155\303\241\147\145\x6e\54\x20\x70\x6f\x72\x20\x66\141\x76\157\162\x20\151\x6e\164\xc3\xa9\156\164\x65\154\x6f\40\x6e\165\x65\x76\141\x6d\145\156\x74\x65\40\171\40\x72\x65\166\151\163\145\x20\145\154\40\164\x61\x6d\x61\303\xb1\157\40\x64\145\x20\154\x61\x20\151\x6d\141\x67\145\156\x2e\46\x74\x69\160\x6f\x3d\x76\x65\156\x74\141\x6e\x61"; } } else { if ($file_ext == "\152\160\147" or $file_ext == "\x70\x6e\x67") { $new_file = resize_foto($dir1, $height, $width, false); $archivo = $date . "\x5f" . $file_name . "\56" . $file_ext; $dir2 = "{$dir}\x2f{$archivo}"; $dir2 = str_replace("\56\56\57", '', $dir2); $result = $s3->putObject(array("\x42\165\143\153\x65\164" => $_ENV["\x53\x33\x5f\102\125\x43\113\x45\x54"], "\113\x65\x79" => $dir2, "\x53\x6f\x75\x72\x63\x65\106\151\154\x65" => $new_file, "\101\x43\x4c" => "\160\x75\142\x6c\151\x63\x2d\x72\145\141\144")); if (opciones("\165\163\141\162\137\x77\145\142\x70")) { $archivoWebp = $date . "\137" . $file_name . "\56\167\x65\x62\160"; $dirWebp = "{$dir}\x2f{$archivoWebp}"; $path_lib_webp = opciones("\160\141\164\150\137\x6c\151\142\x5f\x77\145\x62\x70"); $salida = shell_exec("{$path_lib_webp}\40\55\161\40\x38\60\40{$dir2}\x20\x2d\x6f\40{$dirWebp}"); } if ($thumb) { $new_file_thumb = resize_foto($dir1, $height_thumb, $width_thumb, false); $archivo_thumb = $date . "\x5f" . $file_name . "\56" . $file_ext; $dir3 = "{$dir_thumb}\x2f\164\x68\165\x6d\x62\163\137{$archivo_thumb}"; $copy = copy($new_file_thumb, $dir3); if (opciones("\165\x73\x61\x72\x5f\167\x65\x62\x70")) { $archivoWebp_thumb = $date . "\137" . $file_name . "\x2e\x77\145\142\160"; $dirWebp2 = "{$dir_thumb}\x2f{$archivoWebp_thumb}"; $path_lib_webp = opciones("\160\x61\164\x68\x5f\154\x69\142\x5f\x77\145\x62\160"); $salida = shell_exec("{$path_lib_webp}\x20\x2d\161\40\70\x30\x20{$dir3}\40\55\157\x20{$dirWebp2}"); } if ($bn) { $new_file_thumb_bn = resize_foto($dir1, $height_thumb, $width_thumb, true); $archivo_thumb_bn = $date . "\137" . $file_name . "\x5f\142\156\56" . $file_ext; $dir4 = "{$dir_thumb}\x2f{$archivo_thumb_bn}"; $copy = copy($new_file_thumb_bn, $dir4); } } $values .= "\x2c\40{$input_name}\x20\x3d\x20\47{$archivo}\x27"; } elseif ($file_ext == "\147\151\146") { $archivo = $date . "\x5f" . $file_name . "\x2e" . $file_ext; $dir2 = "{$dir}\57{$archivo}"; $result = $s3->putObject(array("\102\165\143\153\145\164" => opciones("\x73\x33\137\142\x75\143\153\x65\164"), "\x4b\x65\x79" => $dir2, "\x53\x6f\x75\162\143\145\x46\151\x6c\x65" => $_FILES[$input_name]["\x74\155\160\137\x6e\x61\x6d\145"], "\101\x43\114" => "\160\165\142\154\151\143\55\x72\x65\x61\144")); $values .= "\54\x20{$input_name}\40\75\x20\47{$archivo}\47"; } else { $error = "\x54\x69\x70\x6f\x20\x64\x65\40\141\x72\143\x68\x69\x76\157\40\x69\156\x63\157\x72\162\145\x63\x74\x6f\54\x20\x64\145\142\x65\x20\163\x65\162\x20\112\x50\x47\54\40\107\x49\106\40\157\x20\120\x4e\x47\56\46\164\x69\160\157\x3d\x65\x72\x72\157\x72"; } } } else { $error = "\124\x69\160\157\x20\144\x65\x20\x61\x72\x63\150\x69\166\157\40\151\156\x63\x6f\162\x72\145\143\x74\x6f\54\40\x64\145\142\x65\40\x73\x65\162\x20\x4a\x50\107\x2c\40\107\111\x46\40\157\x20\x50\x4e\107\x2e\46\x74\x69\x70\x6f\x3d\x65\x72\x72\x6f\x72"; } } else { $error = "\x54\x61\155\141\303\261\x6f\40\x64\145\40\154\141\x20\151\x6d\x61\x67\x65\156\40\x64\145\x62\145\x20\163\x65\x72\x20\155\x65\156\x6f\162\40\141\40\x35\x20\x4d\142\x20\x26\x74\151\x70\157\75\x6e\157\x74\x69\146\x69\x63\x61\143\151\157\x6e"; } } } $return = array("\x65\162\x72\x6f\162" => $error, "\166\x61\154\x6f\x72\145\x73" => $values); return $return; } goto Y7oON; ri5bJ: function get_table_id($table) { $q = consulta_bd("\151\x64", "\164\x61\x62\x6c\141\163", "\156\x6f\x6d\142\162\x65\x20\x3d\40\x27{$table}\47", ''); $id = $q[0][0]; return $id; } goto YabZF; MG6b2: function fecha_hes($fecha, $formato, $lang) { $mes_o = date("\155", strtotime($fecha)); $dia = date("\144", strtotime($fecha)); $ano = date("\131", strtotime($fecha)); $hora = date("\110\72\x69\72\x73", strtotime($fecha)); if ($lang == "\145\x73\160") { switch ($mes_o) { case "\x30\61": $mes = "\105\156\145\162\157"; break; case "\x30\62": $mes = "\106\145\142\x72\145\162\x6f"; break; case "\x30\x33": $mes = "\x4d\x61\x72\172\157"; break; case "\60\64": $mes = "\101\x62\x72\151\154"; break; case "\60\65": $mes = "\x4d\141\171\x6f"; break; case "\60\x36": $mes = "\112\165\156\151\x6f"; break; case "\x30\x37": $mes = "\112\x75\154\151\x6f"; break; case "\x30\70": $mes = "\101\x67\157\x73\164\x6f"; break; case "\x30\71": $mes = "\x53\x65\160\x74\x69\x65\x6d\x62\162\145"; break; case "\61\60": $mes = "\x4f\x63\164\x75\142\x72\x65"; break; case "\61\x31": $mes = "\116\157\x76\x69\x65\x6d\x62\x72\x65"; break; case "\x31\x32": $mes = "\104\x69\143\151\x65\155\142\x72\x65"; break; } $sep = "\144\x65"; $sep2 = "\141\40\154\x61\163"; } elseif ($lang == "\x69\x6e\x67") { switch ($mes) { case "\x30\x31": $mes = "\x4a\141\x6e\x75\141\162\171"; break; case "\x30\62": $mes = "\106\145\142\x72\165\x61\162\x79"; break; case "\x30\63": $mes = "\115\141\x72\143\150"; break; case "\60\64": $mes = "\x41\160\x72\151\x6c"; break; case "\x30\65": $mes = "\x4d\x61\171"; break; case "\x30\x36": $mes = "\112\x75\x6e\145"; break; case "\x30\67": $mes = "\112\165\x6c\x79"; break; case "\x30\x38": $mes = "\x41\165\x67\x75\x73\x74"; break; case "\60\x39": $mes = "\123\145\x70\x74\x65\x6d\x62\145\x72"; break; case "\x31\x30": $mes = "\x4f\143\x74\157\142\x65\x72"; break; case "\61\61": $mes = "\x4e\157\x76\x65\x6d\x62\x65\162"; break; case "\61\62": $mes = "\104\x65\x63\145\x6d\142\145\162"; break; } $sep = ''; $sep2 = "\141\164"; } switch ($formato) { case 1: return "{$dia}\x20{$sep}\x20{$mes}\x20{$sep}\40{$ano}"; break; case 2: return "{$mes}\40{$sep}\40{$ano}"; break; case 3: return "{$dia}\57{$mes_o}\x2f{$ano}\40{$sep2}"; break; case 4: return "{$dia}\x2f{$mes_o}\x2f{$ano}\x20{$sep2}\x20{$hora}"; break; } } goto Kosu3; QYdQ9: function ortografia($palabra) { $conexion = $GLOBALS["\143\x6f\x6e\x65\x78\151\x6f\156"]; $regla_aguda = array("\x6e", "\163", "\x69", "\x75"); $regla_aguda_not = array("\x61\x79", "\x65\171", "\x6f\x79", "\165\171", "\141\x75", "\x65\165", "\x6f\165", "\157\x73"); $regla_aguda_verbo = array("\x61", "\x65", "\157"); $regla_grave = array("\x62", "\x63", "\x64", "\x66", "\x67", "\150", "\152", "\x6b", "\x6c", "\x6d", "\160", "\x71", "\x72", "\x74", "\166", "\x77", "\170", "\171", "\172"); $vocales = array("\141", "\145", "\x69", "\157", "\x75"); $vocales_acentos = array("\303\xa1", "\xc3\251", "\303\xad", "\303\263", "\xc3\xba"); $ultima_letra = strtolower(substr($palabra, -1)); $penultima_letra = strtolower(substr($palabra, -2, 1)); $largo_palabra = strlen($palabra); $palabras_bd = consulta_bd("\142\x75\163\x71\x75\145\x64\x61", "\157\x72\x74\x6f\147\162\x61\x66\151\141", '', ''); $cant = mysqli_affected_rows($conexion); if ($cant > 0) { foreach ($palabras_bd as $pal) { $exclusiones_bd[] = $pal[0]; } } else { $exclusiones_bd[] = ''; } if (has_array($exclusiones_bd, $palabra)) { $palabra_bd = consulta_bd("\x6d\157\x73\x74\x72\x61\162", "\x6f\162\164\157\147\162\x61\146\x69\x61", "\142\x75\x73\161\x75\x65\144\x61\40\75\x20\x27{$palabra}\x27", ''); return $palabra_bd[0][0] != '' ? $palabra_bd[0][0] : $palabra; } else { if ($largo_palabra > 2) { if (has_array($regla_aguda, $ultima_letra)) { $resto_palabra = substr($palabra, 0, -2); $dos_ultimas_letras = strtolower(substr($palabra, -2)); $tres_ultimas_letras = strtolower(substr($palabra, -3)); if ($ultima_letra == "\163" and !has_array($vocales, $penultima_letra)) { } else { if (!has_array($regla_aguda_not, $ultima_letra) and $tres_ultimas_letras != "\147\x65\x6e") { $cambio_aguda = str_replace($vocales, $vocales_acentos, $dos_ultimas_letras); $palabra = $resto_palabra . $cambio_aguda; } } return $palabra; } if (has_array($regla_grave, $ultima_letra)) { $resto_palabra = substr($palabra, 2); $primeras_dos_letras = substr($palabra, 0, 2); $cambio = str_replace($vocales, $volcales_acentos, $primeras_dos_letras); $palabra = $primeras_dos_letras . $resto_palabra; return $palabra; } else { if ($largo_palabra % 2 == 0 and $largo_palabra > 2) { $ultimas_cuatro = strtolower(substr($palabra, -4)); $sin_ultimas_cuatro = strtolower(substr($palabra, 0, -4)); $siguientes_dos = strtolower(substr($sin_ultimas_cuatro, -2)); $resto = strtolower(substr($palabra, 0, -6)); $primera_letra = strtolower(substr($palabra, 0, 1)); $cambio_esd = (!has_array(array("\154"), $siguientes_dos) and !has_array($vocales, $primera_letra) or has_array($vocales, $primera_letra)) ? $siguientes_dos : str_replace($vocales, $vocales_acentos, $siguientes_dos); $palabra = $resto . $cambio_esd . $ultimas_cuatro; return $palabra; } else { return $palabra; } } } else { return $palabra; } } } goto onjVT; ftE65: function insert_bd2($table, $campos, $values, $arrCondiciones) { $conexion = $GLOBALS["\x63\x6f\x6e\x65\x78\x69\x6f\x6e\137\167\x72\x69\164\x65\x72"]; $sql = "\x49\116\123\x45\x52\124\x20\x49\x4e\124\117\x20{$table}\x20\50{$campos}\51\40\x56\101\x4c\125\105\x53\x20\50{$values}\51"; $stmt = $conexion->prepare($sql); $refArr = $arrCondiciones; $ref = new ReflectionClass("\x6d\x79\163\161\154\x69\137\163\x74\155\164"); $method = $ref->getMethod("\x62\x69\x6e\x64\137\x70\x61\x72\x61\x6d"); $method->invokeArgs($stmt, $refArr); $stmt->execute(); if ($run) { return true; } else { return false; } } goto A_S8s; TGzmL: function formato_moneda($numero, $moneda, $echo) { if ($numero != NULL) { $longitud = strlen($numero); $punto = substr($numero, -1, 1); $punto2 = substr($numero, 0, 1); $separador = "\56"; if ($punto == "\x2e") { $numero = substr($numero, 0, $longitud - 1); $longitud = strlen($numero); } if ($punto2 == "\x2e") { $numero = "\60" . $numero; $longitud = strlen($numero); } $num_entero = strpos($numero, $separador); $centavos = substr($numero, $num_entero); $l_cent = strlen($centavos); if ($l_cent == 2) { $centavos = $centavos . "\x30"; } elseif ($l_cent == 3) { $centavos = $centavos; } elseif ($l_cent > 3) { $centavos = substr($centavos, 0, 3); } $entero = substr($numero, -$longitud, $longitud - $l_cent); if (!$num_entero) { $num_entero = $longitud; $centavos = "\x2e\60\60"; $entero = substr($numero, -$longitud, $longitud); } $start = floor($num_entero / 3); $res = $num_entero - $start * 3; if ($res == 0) { $coma = $start - 1; $init = 0; } else { $coma = $start; $init = 3 - $res; } $d = $init; $i = 0; $c = $coma; while ($i <= $num_entero) { if ($d == 3 && $c > 0) { $d = 0; $sep = "\x2e"; $c = $c - 1; } else { $sep = ''; } $final .= $sep . $entero[$i]; $i = $i + 1; $d = $d + 1; } } else { $final = 0; } if ($moneda == "\160\145\x73\x6f\163") { $moneda = "\44"; if ($echo) { echo $moneda . "\40" . $final; } else { return $moneda . "\40" . $final; } } elseif ($moneda == "\144\x6f\154\141\x72\x65\163") { $moneda = "\x55\x53\x44"; if ($echo) { echo $moneda . "\40" . $final . $centavos; } else { return $moneda . "\40" . $final . $centavos; } } elseif ($moneda == "\x65\x75\162\157\x73") { $moneda = "\x45\125\122"; if ($echo) { echo $final . $centavos . "\x20" . $moneda; } else { return $final . $centavos . "\40" . $moneda; } } else { if ($echo) { echo $final; } else { return $final; } } } goto pYgTb; UTQ2t: function checkbox($valor, $activo, $id) { if ($valor == "\61") { $checked = "\x63\150\145\143\x6b\145\x64\75\x22\x63\x68\145\143\x6b\x65\144\x22"; } else { $checked = ''; } if ($activo == "\x31") { $disabled = ''; } elseif ($activo == "\x30") { $disabled = "\144\x69\x73\x61\x62\154\x65\144\x3d\x22\144\151\163\x61\x62\x6c\145\x64\x22"; } if ($id != '') { $name = "\x63\150\145\x63\x6b\x62\157\170{$id}"; } else { $name = "\143\150\145\x63\153\142\157\x78"; } $mostrar = "\x3c\154\141\x62\x65\x6c\76\12\11\40\x20\x9\x9\x9\x9\11\74\151\x6e\x70\x75\164\x20\x6e\x61\x6d\145\75\42" . "{$name}" . "\42\x20\164\171\160\145\x3d\42\x63\x68\145\x63\x6b\142\x6f\x78\x22\x20\x69\144\x3d\x22\x63\150\145\x63\153\142\x6f\170\42\x20" . $checked . "\40" . $disabled . "\40\166\x61\154\165\145\75\42\61\x22\57\76\12\x9\11\11\11\x9\74\57\x6c\141\142\x65\154\x3e"; echo "{$mostrar}"; } goto bVNQb; GcwbB: ?>
Function Calls
None |
Stats
MD5 | be180ea94ae61a0478eaa25a9fc8fc4d |
Eval Count | 0 |
Decode Time | 122 ms |