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 PvMmB; jMXd0: function yourls_esc_url($url, $context = "\x64\x69\x73\160\154\x..

Decoded Output download

<?php
 goto PvMmB; jMXd0: function yourls_esc_url($url, $context = "display", $protocols = array()) { $url = trim($url); $url = str_replace(array("http://http://", "http://https://"), array("http://", "https://"), $url); if ('' == $url) { return $url; } $original_url = $url; $url = yourls_normalize_uri($url); $url = preg_replace("|[^a-z0-9-~+_.?#=!&;,/:%@$\|*'()\[\]\x80-\xff]|i", '', $url); if ("safe" == $context) { $strip = array("%0d", "%0a", "%0D", "%0A"); $url = yourls_deep_replace($strip, $url); } if ("display" == $context) { $url = yourls_kses_normalize_entities($url); $url = str_replace("&amp;", "&#038;", $url); $url = str_replace("'", "&#039;", $url); } if (yourls_get_protocol($url) !== '') { if (!is_array($protocols) or !$protocols) { global $yourls_allowedprotocols; $protocols = yourls_apply_filter("esc_url_protocols", $yourls_allowedprotocols); } if (!yourls_is_allowed_protocol($url, $protocols)) { return ''; } } return yourls_apply_filter("esc_url", $url, $original_url, $context); } goto uOYrB; zqWiO: function yourls_sanitize_url($unsafe_url, $protocols = array()) { $url = yourls_esc_url($unsafe_url, "redirection", $protocols); return yourls_apply_filter("sanitize_url", $url, $unsafe_url); } goto hCJ2c; byFaS: function yourls_sanitize_int($int) { return substr(preg_replace("/[^0-9]/", '', strval($int)), 0, 20); } goto fUhlM; PvMmB: function yourls_int2string($num, $chars = null) { if ($chars == null) { $chars = yourls_get_shorturl_charset(); } $string = ''; $len = strlen($chars); while ($num >= $len) { $mod = bcmod((string) $num, (string) $len); $num = bcdiv((string) $num, (string) $len); $string = $chars[$mod] . $string; } $string = $chars[intval($num)] . $string; return yourls_apply_filter("int2string", $string, $num, $chars); } goto lNMRJ; hCJ2c: function yourls_sanitize_url_safe($unsafe_url, $protocols = array()) { $url = yourls_esc_url($unsafe_url, "safe", $protocols); return yourls_apply_filter("sanitize_url_safe", $url, $unsafe_url); } goto P8nXI; QRzh0: function yourls_sanitize_date_for_sql($date) { if (!yourls_sanitize_date($date)) { return false; } return date("Y-m-d", strtotime($date)); } goto nwKR_; RLw3K: function yourls_specialchars($string, $quote_style = ENT_NOQUOTES, $double_encode = false) { $string = (string) $string; if (0 === strlen($string)) { return ''; } if (!preg_match("/[&<>"']/", $string)) { return $string; } if (empty($quote_style)) { $quote_style = ENT_NOQUOTES; } elseif (!in_array($quote_style, array(0, 2, 3, "single", "double"), true)) { $quote_style = ENT_QUOTES; } $charset = "UTF-8"; $_quote_style = $quote_style; if ($quote_style === "double") { $quote_style = ENT_COMPAT; $_quote_style = ENT_COMPAT; } elseif ($quote_style === "single") { $quote_style = ENT_NOQUOTES; } if ($double_encode) { $string = @htmlspecialchars($string, $quote_style, $charset); } else { $string = yourls_specialchars_decode($string, $_quote_style); $string = yourls_kses_normalize_entities($string); $string = preg_split("/(&#?x?[0-9a-z]+;)/i", $string, -1, PREG_SPLIT_DELIM_CAPTURE); for ($i = 0; $i < count($string); $i += 2) { $string[$i] = @htmlspecialchars($string[$i], $quote_style, $charset); } $string = implode('', $string); } if ("single" === $_quote_style) { $string = str_replace("'", "&#039;", $string); } return $string; } goto bKvlE; PxfYt: function yourls_sanitize_version($version) { preg_match("/([0-9]+\.[0-9.]+).*$/", $version, $matches); $version = isset($matches[1]) ? trim($matches[1], ".") : ''; return $version; } goto m3gxp; aDuvz: function yourls_esc_attr($text) { $safe_text = yourls_check_invalid_utf8($text); $safe_text = yourls_specialchars($safe_text, ENT_QUOTES); return yourls_apply_filter("esc_attr", $safe_text, $text); } goto jMXd0; Oq8jP: function yourls_esc_js($text) { $safe_text = yourls_check_invalid_utf8($text); $safe_text = yourls_specialchars($safe_text, ENT_COMPAT); $safe_text = preg_replace("/&#(x)?0*(?(1)27|39);?/i", "'", stripslashes($safe_text)); $safe_text = str_replace("\xd", '', $safe_text); $safe_text = str_replace("\xa", "\n", addslashes($safe_text)); return yourls_apply_filter("esc_js", $safe_text, $text); } goto Gc5RK; Z0P9s: function yourls_check_invalid_utf8($string, $strip = false) { $string = (string) $string; if (0 === strlen($string)) { return ''; } if (!yourls_supports_pcre_u()) { return $string; } if (1 === @preg_match("/^./us", $string)) { return $string; } if ($strip && function_exists("iconv")) { return iconv("utf-8", "utf-8", $string); } return ''; } goto RLw3K; hwnls: function yourls_unique_element_id($prefix = "yid", $initial_val = 1) { static $id_counter = 1; if ($initial_val > 1) { $id_counter = (int) $initial_val; } return yourls_apply_filter("unique_element_id", $prefix . (string) $id_counter++); } goto gf0ur; mNvKd: function yourls_get_datetime_format($format) { return yourls_apply_filter("get_datetime_format", (string) $format); } goto V7hjl; kRmrd: function yourls_get_time_offset() { $offset = defined("YOURLS_HOURS_OFFSET") ? (int) YOURLS_HOURS_OFFSET : 0; return yourls_apply_filter("get_time_offset", $offset); } goto mNvKd; fUhlM: function yourls_sanitize_ip($ip) { return preg_replace("/[^0-9a-fA-F:., ]/", '', $ip); } goto OPao6; QCvOa: function yourls_rawurldecode_while_encoded($string) { $string = rawurldecode($string); if (yourls_is_rawurlencoded($string)) { $string = yourls_rawurldecode_while_encoded($string); } return $string; } goto X4HqH; D_1JO: function yourls_is_rawurlencoded($string) { return rawurldecode($string) != $string; } goto QCvOa; C_jmW: function yourls_supports_pcre_u() { static $utf8_pcre; if (!isset($utf8_pcre)) { $utf8_pcre = (bool) @preg_match("/^./u", "a"); } return $utf8_pcre; } goto Z0P9s; P8nXI: function yourls_deep_replace($search, $subject) { $found = true; while ($found) { $found = false; foreach ((array) $search as $val) { while (strpos($subject, $val) !== false) { $found = true; $subject = str_replace($val, '', $subject); } } } return $subject; } goto byFaS; Gc5RK: function yourls_esc_textarea($text) { $safe_text = htmlspecialchars($text, ENT_QUOTES); return yourls_apply_filter("esc_textarea", $safe_text, $text); } goto ik3UH; M0Fy4: function yourls_esc_html($text) { $safe_text = yourls_check_invalid_utf8($text); $safe_text = yourls_specialchars($safe_text, ENT_QUOTES); return yourls_apply_filter("esc_html", $safe_text, $text); } goto aDuvz; OPao6: function yourls_sanitize_date($date) { if (!preg_match("!^\d{1,2}/\d{1,2}/\d{4}$!", $date)) { return false; } return $date; } goto QRzh0; BQhd9: function yourls_seems_utf8($str) { $length = strlen($str); for ($i = 0; $i < $length; $i++) { $c = ord($str[$i]); if ($c < 128) { $n = 0; } elseif (($c & 224) == 192) { $n = 1; } elseif (($c & 240) == 224) { $n = 2; } elseif (($c & 248) == 240) { $n = 3; } elseif (($c & 252) == 248) { $n = 4; } elseif (($c & 254) == 252) { $n = 5; } else { return false; } for ($j = 0; $j < $n; $j++) { if (++$i == $length || (ord($str[$i]) & 192) != 128) { return false; } } } return true; } goto C_jmW; m3gxp: function yourls_sanitize_filename($file) { $file = str_replace("\", "/", $file); $file = preg_replace("|/+|", "/", $file); return $file; } goto BQhd9; WVnpP: function yourls_get_timestamp($timestamp) { $offset = yourls_get_time_offset(); $timestamp_offset = (int) $timestamp + $offset * 3600; return yourls_apply_filter("get_timestamp", $timestamp_offset, $timestamp, $offset); } goto kRmrd; uOYrB: function yourls_normalize_uri($url) { $scheme = yourls_get_protocol($url); if ('' == $scheme) { return $url; } if (substr($scheme, -2, 2) != "//") { $url = str_replace($scheme, strtolower($scheme), $url); return $url; } $parts = parse_url($url); if (false == $parts) { $url = str_replace($scheme, strtolower($scheme), $url); return $url; } $lower = array(); $lower["scheme"] = strtolower($parts["scheme"]); if (isset($parts["host"])) { $lower["host"] = mb_strtolower($parts["host"]); $lower["host"] = idn_to_utf8($lower["host"], IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46); } $url = http_build_url($url, $lower); return $url; } goto Oq8jP; W4qFl: function yourls_sanitize_title($unsafe_title, $fallback = '') { $title = $unsafe_title; $title = strip_tags($title); $title = preg_replace("/\s+/", " ", trim($title)); if ('' === $title || false === $title) { $title = $fallback; } return yourls_apply_filter("sanitize_title", $title, $unsafe_title, $fallback); } goto zqWiO; gf0ur: function yourls_sanitize_keyword($keyword, $restrict_to_shorturl_charset = false) { if ($restrict_to_shorturl_charset === true) { $pattern = yourls_make_regexp_pattern(yourls_get_shorturl_charset()); $valid = (string) substr(preg_replace("![^" . $pattern . "]!", '', $keyword), 0, 199); } else { $valid = yourls_sanitize_url($keyword); } return yourls_apply_filter("sanitize_string", $valid, $keyword, $restrict_to_shorturl_charset); } goto W4qFl; V7hjl: function yourls_get_date_format($format) { return yourls_apply_filter("get_date_format", (string) $format); } goto u6lzm; X4HqH: function yourls_make_bookmarklet($code) { $book = new \Ozh\Bookmarkletgen\Bookmarkletgen(); return $book->crunch($code); } goto WVnpP; ik3UH: function yourls_backslashit($string) { $string = preg_replace("/^([0-9])/", "\\\\\1", (string) $string); $string = preg_replace("/([a-z])/i", "\\\1", (string) $string); return $string; } goto D_1JO; bKvlE: function yourls_specialchars_decode($string, $quote_style = ENT_NOQUOTES) { $string = (string) $string; if (0 === strlen($string)) { return ''; } if (strpos($string, "&") === false) { return $string; } if (empty($quote_style)) { $quote_style = ENT_NOQUOTES; } elseif (!in_array($quote_style, array(0, 2, 3, "single", "double"), true)) { $quote_style = ENT_QUOTES; } $single = array("&#039;" => "'", "&#x27;" => "'"); $single_preg = array("/&#0*39;/" => "&#039;", "/&#x0*27;/i" => "&#x27;"); $double = array("&quot;" => """, "&#034;" => """, "&#x22;" => """); $double_preg = array("/&#0*34;/" => "&#034;", "/&#x0*22;/i" => "&#x22;"); $others = array("&lt;" => "<", "&#060;" => "<", "&gt;" => ">", "&#062;" => ">", "&amp;" => "&", "&#038;" => "&", "&#x26;" => "&"); $others_preg = array("/&#0*60;/" => "&#060;", "/&#0*62;/" => "&#062;", "/&#0*38;/" => "&#038;", "/&#x0*26;/i" => "&#x26;"); $translation = $translation_preg = array(); if ($quote_style === ENT_QUOTES) { $translation = array_merge($single, $double, $others); $translation_preg = array_merge($single_preg, $double_preg, $others_preg); } elseif ($quote_style === ENT_COMPAT || $quote_style === "double") { $translation = array_merge($double, $others); $translation_preg = array_merge($double_preg, $others_preg); } elseif ($quote_style === "single") { $translation = array_merge($single, $others); $translation_preg = array_merge($single_preg, $others_preg); } elseif ($quote_style === ENT_NOQUOTES) { $translation = $others; $translation_preg = $others_preg; } $string = preg_replace(array_keys($translation_preg), array_values($translation_preg), $string); return strtr($string, $translation); } goto M0Fy4; lNMRJ: function yourls_string2int($string, $chars = null) { if ($chars == null) { $chars = yourls_get_shorturl_charset(); } $integer = 0; $string = strrev($string); $baselen = strlen($chars); $inputlen = strlen($string); for ($i = 0; $i < $inputlen; $i++) { $index = strpos($chars, $string[$i]); $integer = bcadd((string) $integer, bcmul((string) $index, bcpow((string) $baselen, (string) $i))); } return yourls_apply_filter("string2int", $integer, $string, $chars); } goto hwnls; nwKR_: function yourls_trim_long_string($string, $length = 60, $append = "[...]") { $newstring = $string; if (mb_strlen($newstring) > $length) { $newstring = mb_substr($newstring, 0, $length - mb_strlen($append), "UTF-8") . $append; } return yourls_apply_filter("trim_long_string", $newstring, $string, $length, $append); } goto PxfYt; u6lzm: function yourls_get_time_format($format) { return yourls_apply_filter("get_time_format", (string) $format); } ?>

Did this file decode correctly?

Original Code

<?php
 goto PvMmB; jMXd0: function yourls_esc_url($url, $context = "\x64\x69\x73\160\154\x61\x79", $protocols = array()) { $url = trim($url); $url = str_replace(array("\150\x74\164\x70\72\57\x2f\x68\164\x74\x70\72\x2f\x2f", "\x68\x74\164\160\x3a\57\57\150\164\164\160\x73\x3a\57\57"), array("\150\x74\164\160\x3a\x2f\57", "\x68\x74\x74\160\x73\72\57\x2f"), $url); if ('' == $url) { return $url; } $original_url = $url; $url = yourls_normalize_uri($url); $url = preg_replace("\x7c\x5b\x5e\141\55\172\x30\x2d\x39\55\x7e\53\137\56\77\43\75\41\46\x3b\x2c\x2f\x3a\x25\x40\44\134\x7c\52\47\50\x29\x5c\x5b\x5c\x5d\x5c\x78\70\60\x2d\x5c\170\x66\x66\x5d\174\x69", '', $url); if ("\163\141\146\x65" == $context) { $strip = array("\45\x30\144", "\45\x30\x61", "\x25\x30\104", "\x25\60\x41"); $url = yourls_deep_replace($strip, $url); } if ("\144\x69\163\160\x6c\x61\171" == $context) { $url = yourls_kses_normalize_entities($url); $url = str_replace("\46\x61\155\x70\x3b", "\46\x23\60\63\70\73", $url); $url = str_replace("\47", "\46\x23\x30\x33\x39\73", $url); } if (yourls_get_protocol($url) !== '') { if (!is_array($protocols) or !$protocols) { global $yourls_allowedprotocols; $protocols = yourls_apply_filter("\x65\x73\x63\x5f\x75\x72\x6c\137\x70\162\157\x74\157\x63\x6f\x6c\163", $yourls_allowedprotocols); } if (!yourls_is_allowed_protocol($url, $protocols)) { return ''; } } return yourls_apply_filter("\145\x73\x63\137\x75\x72\154", $url, $original_url, $context); } goto uOYrB; zqWiO: function yourls_sanitize_url($unsafe_url, $protocols = array()) { $url = yourls_esc_url($unsafe_url, "\x72\145\x64\151\x72\145\x63\164\x69\157\156", $protocols); return yourls_apply_filter("\x73\x61\156\x69\x74\151\172\x65\137\x75\162\x6c", $url, $unsafe_url); } goto hCJ2c; byFaS: function yourls_sanitize_int($int) { return substr(preg_replace("\x2f\x5b\x5e\60\55\71\135\x2f", '', strval($int)), 0, 20); } goto fUhlM; PvMmB: function yourls_int2string($num, $chars = null) { if ($chars == null) { $chars = yourls_get_shorturl_charset(); } $string = ''; $len = strlen($chars); while ($num >= $len) { $mod = bcmod((string) $num, (string) $len); $num = bcdiv((string) $num, (string) $len); $string = $chars[$mod] . $string; } $string = $chars[intval($num)] . $string; return yourls_apply_filter("\x69\x6e\164\62\163\164\x72\151\x6e\x67", $string, $num, $chars); } goto lNMRJ; hCJ2c: function yourls_sanitize_url_safe($unsafe_url, $protocols = array()) { $url = yourls_esc_url($unsafe_url, "\x73\x61\x66\x65", $protocols); return yourls_apply_filter("\x73\x61\x6e\x69\x74\151\x7a\145\x5f\x75\x72\x6c\x5f\x73\141\x66\x65", $url, $unsafe_url); } goto P8nXI; QRzh0: function yourls_sanitize_date_for_sql($date) { if (!yourls_sanitize_date($date)) { return false; } return date("\131\x2d\x6d\55\144", strtotime($date)); } goto nwKR_; RLw3K: function yourls_specialchars($string, $quote_style = ENT_NOQUOTES, $double_encode = false) { $string = (string) $string; if (0 === strlen($string)) { return ''; } if (!preg_match("\57\133\46\x3c\x3e\42\x27\x5d\57", $string)) { return $string; } if (empty($quote_style)) { $quote_style = ENT_NOQUOTES; } elseif (!in_array($quote_style, array(0, 2, 3, "\163\x69\156\x67\154\x65", "\144\x6f\165\x62\x6c\x65"), true)) { $quote_style = ENT_QUOTES; } $charset = "\125\x54\106\55\x38"; $_quote_style = $quote_style; if ($quote_style === "\x64\x6f\x75\142\x6c\x65") { $quote_style = ENT_COMPAT; $_quote_style = ENT_COMPAT; } elseif ($quote_style === "\163\x69\156\x67\154\x65") { $quote_style = ENT_NOQUOTES; } if ($double_encode) { $string = @htmlspecialchars($string, $quote_style, $charset); } else { $string = yourls_specialchars_decode($string, $_quote_style); $string = yourls_kses_normalize_entities($string); $string = preg_split("\x2f\50\x26\43\77\170\x3f\133\x30\55\71\x61\x2d\172\135\53\73\51\x2f\x69", $string, -1, PREG_SPLIT_DELIM_CAPTURE); for ($i = 0; $i < count($string); $i += 2) { $string[$i] = @htmlspecialchars($string[$i], $quote_style, $charset); } $string = implode('', $string); } if ("\163\151\156\x67\154\x65" === $_quote_style) { $string = str_replace("\47", "\x26\x23\60\x33\x39\73", $string); } return $string; } goto bKvlE; PxfYt: function yourls_sanitize_version($version) { preg_match("\57\x28\133\60\55\71\135\53\134\56\x5b\60\x2d\x39\x2e\135\53\x29\x2e\52\x24\57", $version, $matches); $version = isset($matches[1]) ? trim($matches[1], "\x2e") : ''; return $version; } goto m3gxp; aDuvz: function yourls_esc_attr($text) { $safe_text = yourls_check_invalid_utf8($text); $safe_text = yourls_specialchars($safe_text, ENT_QUOTES); return yourls_apply_filter("\x65\163\143\x5f\141\x74\164\162", $safe_text, $text); } goto jMXd0; Oq8jP: function yourls_esc_js($text) { $safe_text = yourls_check_invalid_utf8($text); $safe_text = yourls_specialchars($safe_text, ENT_COMPAT); $safe_text = preg_replace("\57\x26\x23\x28\170\51\x3f\60\52\x28\x3f\50\61\x29\x32\67\x7c\63\71\51\73\x3f\x2f\151", "\47", stripslashes($safe_text)); $safe_text = str_replace("\xd", '', $safe_text); $safe_text = str_replace("\xa", "\x5c\x6e", addslashes($safe_text)); return yourls_apply_filter("\145\x73\143\137\x6a\163", $safe_text, $text); } goto Gc5RK; Z0P9s: function yourls_check_invalid_utf8($string, $strip = false) { $string = (string) $string; if (0 === strlen($string)) { return ''; } if (!yourls_supports_pcre_u()) { return $string; } if (1 === @preg_match("\x2f\136\x2e\57\x75\163", $string)) { return $string; } if ($strip && function_exists("\x69\143\x6f\156\x76")) { return iconv("\x75\x74\x66\x2d\x38", "\165\164\x66\x2d\x38", $string); } return ''; } goto RLw3K; hwnls: function yourls_unique_element_id($prefix = "\x79\151\144", $initial_val = 1) { static $id_counter = 1; if ($initial_val > 1) { $id_counter = (int) $initial_val; } return yourls_apply_filter("\165\156\x69\x71\165\x65\137\145\154\x65\x6d\x65\156\x74\x5f\151\x64", $prefix . (string) $id_counter++); } goto gf0ur; mNvKd: function yourls_get_datetime_format($format) { return yourls_apply_filter("\x67\x65\x74\x5f\x64\x61\164\x65\164\151\x6d\145\137\146\157\162\x6d\x61\x74", (string) $format); } goto V7hjl; kRmrd: function yourls_get_time_offset() { $offset = defined("\131\x4f\125\x52\x4c\123\x5f\110\117\125\x52\x53\x5f\117\106\106\x53\x45\x54") ? (int) YOURLS_HOURS_OFFSET : 0; return yourls_apply_filter("\147\x65\x74\x5f\x74\151\155\145\137\157\146\x66\x73\145\164", $offset); } goto mNvKd; fUhlM: function yourls_sanitize_ip($ip) { return preg_replace("\x2f\x5b\136\60\55\71\x61\x2d\146\101\x2d\x46\72\56\x2c\40\x5d\x2f", '', $ip); } goto OPao6; QCvOa: function yourls_rawurldecode_while_encoded($string) { $string = rawurldecode($string); if (yourls_is_rawurlencoded($string)) { $string = yourls_rawurldecode_while_encoded($string); } return $string; } goto X4HqH; D_1JO: function yourls_is_rawurlencoded($string) { return rawurldecode($string) != $string; } goto QCvOa; C_jmW: function yourls_supports_pcre_u() { static $utf8_pcre; if (!isset($utf8_pcre)) { $utf8_pcre = (bool) @preg_match("\x2f\136\x2e\57\165", "\141"); } return $utf8_pcre; } goto Z0P9s; P8nXI: function yourls_deep_replace($search, $subject) { $found = true; while ($found) { $found = false; foreach ((array) $search as $val) { while (strpos($subject, $val) !== false) { $found = true; $subject = str_replace($val, '', $subject); } } } return $subject; } goto byFaS; Gc5RK: function yourls_esc_textarea($text) { $safe_text = htmlspecialchars($text, ENT_QUOTES); return yourls_apply_filter("\145\163\x63\x5f\164\x65\x78\x74\x61\162\145\x61", $safe_text, $text); } goto ik3UH; M0Fy4: function yourls_esc_html($text) { $safe_text = yourls_check_invalid_utf8($text); $safe_text = yourls_specialchars($safe_text, ENT_QUOTES); return yourls_apply_filter("\145\x73\143\x5f\x68\x74\155\x6c", $safe_text, $text); } goto aDuvz; OPao6: function yourls_sanitize_date($date) { if (!preg_match("\x21\x5e\134\x64\x7b\x31\x2c\x32\x7d\57\x5c\144\173\61\x2c\62\x7d\x2f\134\144\173\x34\175\x24\x21", $date)) { return false; } return $date; } goto QRzh0; BQhd9: function yourls_seems_utf8($str) { $length = strlen($str); for ($i = 0; $i < $length; $i++) { $c = ord($str[$i]); if ($c < 128) { $n = 0; } elseif (($c & 224) == 192) { $n = 1; } elseif (($c & 240) == 224) { $n = 2; } elseif (($c & 248) == 240) { $n = 3; } elseif (($c & 252) == 248) { $n = 4; } elseif (($c & 254) == 252) { $n = 5; } else { return false; } for ($j = 0; $j < $n; $j++) { if (++$i == $length || (ord($str[$i]) & 192) != 128) { return false; } } } return true; } goto C_jmW; m3gxp: function yourls_sanitize_filename($file) { $file = str_replace("\134", "\57", $file); $file = preg_replace("\x7c\57\53\174", "\x2f", $file); return $file; } goto BQhd9; WVnpP: function yourls_get_timestamp($timestamp) { $offset = yourls_get_time_offset(); $timestamp_offset = (int) $timestamp + $offset * 3600; return yourls_apply_filter("\147\145\x74\137\x74\151\x6d\x65\x73\x74\x61\x6d\x70", $timestamp_offset, $timestamp, $offset); } goto kRmrd; uOYrB: function yourls_normalize_uri($url) { $scheme = yourls_get_protocol($url); if ('' == $scheme) { return $url; } if (substr($scheme, -2, 2) != "\x2f\57") { $url = str_replace($scheme, strtolower($scheme), $url); return $url; } $parts = parse_url($url); if (false == $parts) { $url = str_replace($scheme, strtolower($scheme), $url); return $url; } $lower = array(); $lower["\x73\143\150\145\x6d\145"] = strtolower($parts["\163\x63\150\x65\155\x65"]); if (isset($parts["\x68\x6f\163\x74"])) { $lower["\150\157\x73\x74"] = mb_strtolower($parts["\150\157\163\164"]); $lower["\x68\157\163\164"] = idn_to_utf8($lower["\x68\157\163\164"], IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46); } $url = http_build_url($url, $lower); return $url; } goto Oq8jP; W4qFl: function yourls_sanitize_title($unsafe_title, $fallback = '') { $title = $unsafe_title; $title = strip_tags($title); $title = preg_replace("\x2f\x5c\x73\53\57", "\40", trim($title)); if ('' === $title || false === $title) { $title = $fallback; } return yourls_apply_filter("\163\x61\156\151\164\151\x7a\145\x5f\x74\151\164\154\145", $title, $unsafe_title, $fallback); } goto zqWiO; gf0ur: function yourls_sanitize_keyword($keyword, $restrict_to_shorturl_charset = false) { if ($restrict_to_shorturl_charset === true) { $pattern = yourls_make_regexp_pattern(yourls_get_shorturl_charset()); $valid = (string) substr(preg_replace("\x21\x5b\x5e" . $pattern . "\135\41", '', $keyword), 0, 199); } else { $valid = yourls_sanitize_url($keyword); } return yourls_apply_filter("\163\141\x6e\x69\x74\x69\x7a\x65\x5f\163\x74\x72\x69\156\147", $valid, $keyword, $restrict_to_shorturl_charset); } goto W4qFl; V7hjl: function yourls_get_date_format($format) { return yourls_apply_filter("\x67\145\164\137\x64\x61\x74\x65\137\x66\x6f\162\155\141\164", (string) $format); } goto u6lzm; X4HqH: function yourls_make_bookmarklet($code) { $book = new \Ozh\Bookmarkletgen\Bookmarkletgen(); return $book->crunch($code); } goto WVnpP; ik3UH: function yourls_backslashit($string) { $string = preg_replace("\x2f\136\x28\x5b\x30\x2d\x39\x5d\51\x2f", "\134\x5c\x5c\x5c\x5c\61", (string) $string); $string = preg_replace("\x2f\50\133\141\55\x7a\x5d\51\57\x69", "\x5c\x5c\134\x31", (string) $string); return $string; } goto D_1JO; bKvlE: function yourls_specialchars_decode($string, $quote_style = ENT_NOQUOTES) { $string = (string) $string; if (0 === strlen($string)) { return ''; } if (strpos($string, "\46") === false) { return $string; } if (empty($quote_style)) { $quote_style = ENT_NOQUOTES; } elseif (!in_array($quote_style, array(0, 2, 3, "\x73\151\x6e\x67\154\x65", "\144\157\165\142\x6c\145"), true)) { $quote_style = ENT_QUOTES; } $single = array("\x26\43\60\x33\x39\x3b" => "\47", "\x26\x23\170\62\x37\73" => "\x27"); $single_preg = array("\57\x26\x23\60\x2a\x33\71\73\x2f" => "\x26\43\x30\x33\x39\x3b", "\57\x26\x23\x78\60\52\62\67\x3b\x2f\x69" => "\46\x23\170\62\x37\73"); $double = array("\46\x71\x75\x6f\164\73" => "\42", "\x26\x23\x30\x33\64\73" => "\42", "\x26\x23\170\62\62\x3b" => "\x22"); $double_preg = array("\57\x26\x23\x30\52\63\64\x3b\x2f" => "\46\x23\60\x33\x34\73", "\57\46\43\170\x30\52\x32\x32\x3b\57\151" => "\x26\x23\x78\62\x32\73"); $others = array("\46\x6c\x74\x3b" => "\74", "\x26\x23\60\x36\x30\73" => "\74", "\46\147\x74\73" => "\x3e", "\x26\43\x30\x36\x32\73" => "\x3e", "\46\141\155\160\73" => "\x26", "\46\x23\60\x33\x38\73" => "\46", "\46\43\x78\62\66\73" => "\46"); $others_preg = array("\57\46\43\x30\x2a\x36\60\x3b\x2f" => "\x26\x23\60\x36\60\x3b", "\57\x26\x23\60\52\66\62\73\x2f" => "\x26\43\x30\x36\62\73", "\x2f\x26\43\60\52\63\x38\x3b\57" => "\46\x23\60\x33\x38\73", "\x2f\46\43\x78\60\52\62\x36\73\57\x69" => "\x26\x23\x78\62\x36\73"); $translation = $translation_preg = array(); if ($quote_style === ENT_QUOTES) { $translation = array_merge($single, $double, $others); $translation_preg = array_merge($single_preg, $double_preg, $others_preg); } elseif ($quote_style === ENT_COMPAT || $quote_style === "\x64\157\165\x62\x6c\145") { $translation = array_merge($double, $others); $translation_preg = array_merge($double_preg, $others_preg); } elseif ($quote_style === "\x73\x69\x6e\147\x6c\x65") { $translation = array_merge($single, $others); $translation_preg = array_merge($single_preg, $others_preg); } elseif ($quote_style === ENT_NOQUOTES) { $translation = $others; $translation_preg = $others_preg; } $string = preg_replace(array_keys($translation_preg), array_values($translation_preg), $string); return strtr($string, $translation); } goto M0Fy4; lNMRJ: function yourls_string2int($string, $chars = null) { if ($chars == null) { $chars = yourls_get_shorturl_charset(); } $integer = 0; $string = strrev($string); $baselen = strlen($chars); $inputlen = strlen($string); for ($i = 0; $i < $inputlen; $i++) { $index = strpos($chars, $string[$i]); $integer = bcadd((string) $integer, bcmul((string) $index, bcpow((string) $baselen, (string) $i))); } return yourls_apply_filter("\x73\x74\x72\x69\x6e\x67\62\151\156\164", $integer, $string, $chars); } goto hwnls; nwKR_: function yourls_trim_long_string($string, $length = 60, $append = "\x5b\56\56\56\x5d") { $newstring = $string; if (mb_strlen($newstring) > $length) { $newstring = mb_substr($newstring, 0, $length - mb_strlen($append), "\125\124\x46\55\x38") . $append; } return yourls_apply_filter("\164\x72\x69\155\x5f\154\x6f\x6e\147\137\x73\164\x72\151\x6e\x67", $newstring, $string, $length, $append); } goto PxfYt; u6lzm: function yourls_get_time_format($format) { return yourls_apply_filter("\147\x65\x74\137\164\151\x6d\145\x5f\x66\x6f\x72\155\x61\x74", (string) $format); }

Function Calls

None

Variables

None

Stats

MD5 8254260277df6d7a0e6bc4aa3eea39cd
Eval Count 0
Decode Time 103 ms