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 HS73A; SS0a9: function yourls_is_upgrading() { return (bool) yourls_apply_filt..
Decoded Output download
<?php
goto HS73A; SS0a9: function yourls_is_upgrading() { return (bool) yourls_apply_filter("is_upgrading", defined("YOURLS_UPGRADING") && YOURLS_UPGRADING); } goto OQjnW; Zb_ya: function yourls_get_referrer() { $referrer = isset($_SERVER["HTTP_REFERER"]) ? yourls_sanitize_url_safe($_SERVER["HTTP_REFERER"]) : "direct"; return yourls_apply_filter("get_referrer", substr($referrer, 0, 200)); } goto XhVB5; HS73A: function yourls_make_regexp_pattern($string) { return preg_quote($string, "@"); } goto RZcV4; mBe1M: function yourls_is_GO() { return (bool) yourls_apply_filter("is_GO", defined("YOURLS_GO") && YOURLS_GO); } goto pbcow; A1TzY: function yourls_is_private() { $private = defined("YOURLS_PRIVATE") && YOURLS_PRIVATE; if ($private) { if (yourls_is_API() && defined("YOURLS_PRIVATE_API")) { $private = YOURLS_PRIVATE_API; } elseif (yourls_is_infos() && defined("YOURLS_PRIVATE_INFOS")) { $private = YOURLS_PRIVATE_INFOS; } } return yourls_apply_filter("is_private", $private); } goto MN0aD; r9ilF: function yourls_content_type_header($type) { yourls_do_action("content_type_header", $type); if (!headers_sent()) { $charset = yourls_apply_filter("content_type_header_charset", "utf-8"); header("Content-Type: {$type}; charset={$charset}"); return true; } return false; } goto uR67_; VT44b: function yourls_get_protocol($url) { preg_match("!^[a-zA-Z][a-zA-Z0-9+.-]+:(//)?!", $url, $matches); return (string) yourls_apply_filter("get_protocol", isset($matches[0]) ? $matches[0] : '', $url); } goto H0mDf; niKc3: function yourls_no_cache_headers() { if (!headers_sent()) { header("Expires: Thu, 23 Mar 1972 07:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate, max-age=0"); header("Pragma: no-cache"); } } goto ctU1l; np_Jq: function yourls_fix_request_uri() { $default_server_values = array("SERVER_SOFTWARE" => '', "REQUEST_URI" => ''); $_SERVER = array_merge($default_server_values, $_SERVER); $_REQUEST = array_merge($_GET, $_POST); if (empty($_SERVER["REQUEST_URI"]) || php_sapi_name() != "cgi-fcgi" && preg_match("/^Microsoft-IIS\//", $_SERVER["SERVER_SOFTWARE"])) { if (isset($_SERVER["HTTP_X_ORIGINAL_URL"])) { $_SERVER["REQUEST_URI"] = $_SERVER["HTTP_X_ORIGINAL_URL"]; } elseif (isset($_SERVER["HTTP_X_REWRITE_URL"])) { $_SERVER["REQUEST_URI"] = $_SERVER["HTTP_X_REWRITE_URL"]; } else { if (!isset($_SERVER["PATH_INFO"]) && isset($_SERVER["ORIG_PATH_INFO"])) { $_SERVER["PATH_INFO"] = $_SERVER["ORIG_PATH_INFO"]; } if (isset($_SERVER["PATH_INFO"])) { if ($_SERVER["PATH_INFO"] == $_SERVER["SCRIPT_NAME"]) { $_SERVER["REQUEST_URI"] = $_SERVER["PATH_INFO"]; } else { $_SERVER["REQUEST_URI"] = $_SERVER["SCRIPT_NAME"] . $_SERVER["PATH_INFO"]; } } if (!empty($_SERVER["QUERY_STRING"])) { $_SERVER["REQUEST_URI"] .= "?" . $_SERVER["QUERY_STRING"]; } } } } goto k7INN; SS2Ze: function yourls_is_allowed_protocol($url, $protocols = array()) { if (empty($protocols)) { global $yourls_allowedprotocols; $protocols = $yourls_allowedprotocols; } return yourls_apply_filter("is_allowed_protocol", in_array(yourls_get_protocol($url), $protocols), $url, $protocols); } goto VT44b; Aq3pS: function yourls_update_next_decimal($int = 0) { $int = $int == 0 ? yourls_get_next_decimal() + 1 : (int) $int; $update = yourls_update_option("next_id", $int); yourls_do_action("update_next_decimal", $int, $update); return $update; } goto l1Db3; OMvI5: function yourls_check_IP_flood($ip = '') { $pre = yourls_apply_filter("shunt_check_IP_flood", false, $ip); if (false !== $pre) { return $pre; } yourls_do_action("pre_check_ip_flood", $ip); if (defined("YOURLS_FLOOD_DELAY_SECONDS") && YOURLS_FLOOD_DELAY_SECONDS === 0 || !defined("YOURLS_FLOOD_DELAY_SECONDS") || yourls_is_installing()) { return true; } if (yourls_is_private()) { if (yourls_is_valid_user() === true) { return true; } } if (defined("YOURLS_FLOOD_IP_WHITELIST") && YOURLS_FLOOD_IP_WHITELIST) { $whitelist_ips = explode(",", YOURLS_FLOOD_IP_WHITELIST); foreach ((array) $whitelist_ips as $whitelist_ip) { $whitelist_ip = trim($whitelist_ip); if ($whitelist_ip == $ip) { return true; } } } $ip = $ip ? yourls_sanitize_ip($ip) : yourls_get_IP(); yourls_do_action("check_ip_flood", $ip); $table = YOURLS_DB_TABLE_URL; $lasttime = yourls_get_db()->fetchValue("SELECT `timestamp` FROM {$table} WHERE `ip` = :ip ORDER BY `timestamp` DESC LIMIT 1", array("ip" => $ip)); if ($lasttime) { $now = date("U"); $then = date("U", strtotime($lasttime)); if ($now - $then <= YOURLS_FLOOD_DELAY_SECONDS) { yourls_do_action("ip_flood", $ip, $now - $then); yourls_die(yourls__("Too many URLs added too fast. Slow down please."), yourls__("Too Many Requests"), 429); } } return true; } goto JqSSb; iiosD: function yourls_redirect_javascript($location, $dontwait = true) { yourls_do_action("pre_redirect_javascript", $location, $dontwait); $location = yourls_apply_filter("redirect_javascript", $location, $dontwait); if ($dontwait) { $message = yourls_s("if you are not redirected after 10 seconds, please <a href="%s">click here</a>", $location); echo " <script type="text/javascript">
\x9 window.location="{$location}";
\x9 </script>
<small>({$message})</small>"; } else { echo "<p>" . yourls_s("Please <a href="%s">click here</a>", $location) . "</p>"; } yourls_do_action("post_redirect_javascript", $location); } goto GG6gY; KCpz6: function yourls_is_admin() { return (bool) yourls_apply_filter("is_admin", defined("YOURLS_ADMIN") && YOURLS_ADMIN); } goto mAL4p; b3uns: function yourls_get_db_stats($where = array("sql" => '', "binds" => array())) { $table_url = YOURLS_DB_TABLE_URL; $totals = yourls_get_db()->fetchObject("SELECT COUNT(keyword) as count, SUM(clicks) as sum FROM `{$table_url}` WHERE 1=1 " . $where["sql"], $where["binds"]); $return = array("total_links" => $totals->count, "total_clicks" => $totals->sum); return yourls_apply_filter("get_db_stats", $return, $where); } goto Fom1B; MN0aD: function yourls_allow_duplicate_longurls() { if (yourls_is_API() && isset($_REQUEST["source"]) && $_REQUEST["source"] == "plugin") { return false; } return yourls_apply_filter("allow_duplicate_longurls", defined("YOURLS_UNIQUE_URLS") && !YOURLS_UNIQUE_URLS); } goto OMvI5; cMnzQ: function yourls_is_API() { return (bool) yourls_apply_filter("is_API", defined("YOURLS_API") && YOURLS_API); } goto k2r31; zwL9u: function yourls_redirect_shorturl($url, $keyword) { yourls_do_action("redirect_shorturl", $url, $keyword); yourls_update_clicks($keyword); yourls_log_redirect($keyword); yourls_robots_tag_header(); yourls_redirect($url, 301); } goto x903k; kLqaB: function yourls_set_url_scheme($url, $scheme = '') { if (in_array($scheme, array("http", "https"))) { $url = preg_replace("!^[a-zA-Z0-9+.-]+://!", $scheme . "://", $url); } return $url; } goto nTcSw; A2Fl3: function yourls_upgrade_is_needed() { list($currentver, $currentsql) = yourls_get_current_version_from_sql(); if ($currentsql < YOURLS_DB_VERSION) { return true; } if ($currentver < YOURLS_VERSION) { yourls_update_option("version", YOURLS_VERSION); } return false; } goto p8XEU; Fom1B: function yourls_get_user_agent() { $ua = "-"; if (isset($_SERVER["HTTP_USER_AGENT"])) { $ua = strip_tags(html_entity_decode($_SERVER["HTTP_USER_AGENT"])); $ua = preg_replace("![^0-9a-zA-Z':., /{}\(\)\[\]\+@&\!\?;_\-=~\*\#]!", '', $ua); } return yourls_apply_filter("get_user_agent", substr($ua, 0, 255)); } goto Zb_ya; Gd2jG: function yourls_do_log_redirect() { return !defined("YOURLS_NOSTATS") || YOURLS_NOSTATS != true; } goto A2Fl3; k2r31: function yourls_is_Ajax() { return (bool) yourls_apply_filter("is_Ajax", defined("YOURLS_AJAX") && YOURLS_AJAX); } goto mBe1M; H0mDf: function yourls_get_relative_url($url, $strict = true) { $url = yourls_sanitize_url($url); $noproto_url = str_replace("https:", "http:", $url); $noproto_site = str_replace("https:", "http:", yourls_get_yourls_site()); $_url = str_replace($noproto_site . "/", '', $noproto_url); if ($_url == $noproto_url) { $_url = $strict ? '' : $url; } return yourls_apply_filter("get_relative_url", $_url, $url); } goto y6Z_7; wy3Fj: function yourls_get_request($yourls_site = '', $uri = '') { $pre = yourls_apply_filter("shunt_get_request", false); if (false !== $pre) { return $pre; } yourls_do_action("pre_get_request", $yourls_site, $uri); if ('' === $yourls_site) { $yourls_site = yourls_get_yourls_site(); } if ('' === $uri) { $uri = $_SERVER["REQUEST_URI"]; } $yourls_site = rtrim($yourls_site, "/"); $yourls_site = parse_url($yourls_site, PHP_URL_PATH) . "/"; $request = $uri; if (substr($uri, 0, strlen($yourls_site)) == $yourls_site) { $request = ltrim(substr($uri, strlen($yourls_site)), "/"); } if (!preg_match("@^[a-zA-Z]+://.+@", $request)) { $request = current(explode("?", $request)); } $request = yourls_sanitize_url($request); return (string) yourls_apply_filter("get_request", $request); } goto np_Jq; mAL4p: function yourls_is_windows() { return defined("DIRECTORY_SEPARATOR") && DIRECTORY_SEPARATOR == "\"; } goto RJatd; x903k: function yourls_robots_tag_header() { $pre = yourls_apply_filter("shunt_robots_tag_header", false); if (false !== $pre) { return $pre; } $tag = yourls_apply_filter("robots_tag_header", "noindex"); $replace = yourls_apply_filter("robots_tag_header_replace", true); if (!headers_sent()) { header("X-Robots-Tag: {$tag}", $replace); } } goto niKc3; k7INN: function yourls_check_maintenance_mode() { $dot_file = YOURLS_ABSPATH . "/.maintenance"; if (!file_exists($dot_file) || yourls_is_upgrading() || yourls_is_installing()) { return; } global $maintenance_start; yourls_include_file_sandbox($dot_file); if (time() - $maintenance_start >= 600) { return; } $file = YOURLS_USERDIR . "/maintenance.php"; if (file_exists($file)) { if (yourls_include_file_sandbox($file) == true) { die; } } $title = yourls__("Service temporarily unavailable"); $message = yourls__("Our service is currently undergoing scheduled maintenance.") . "</p>\xa<p>" . yourls__("Things should not last very long, thank you for your patience and please excuse the inconvenience"); yourls_die($message, $title, 503); } goto SS2Ze; E746l: function yourls_log_redirect($keyword) { $pre = yourls_apply_filter("shunt_log_redirect", false, $keyword); if (false !== $pre) { return $pre; } if (!yourls_do_log_redirect()) { return true; } $table = YOURLS_DB_TABLE_LOG; $ip = yourls_get_IP(); $binds = array("now" => date("Y-m-d H:i:s"), "keyword" => yourls_sanitize_keyword($keyword), "referrer" => substr(yourls_get_referrer(), 0, 200), "ua" => substr(yourls_get_user_agent(), 0, 255), "ip" => $ip, "location" => yourls_geo_ip_to_countrycode($ip)); try { $result = yourls_get_db()->fetchAffected("INSERT INTO `{$table}` (click_time, shorturl, referrer, user_agent, ip_address, country_code) VALUES (:now, :keyword, :referrer, :ua, :ip, :location)", $binds); } catch (Exception $e) { $result = 0; } return $result; } goto Gd2jG; pbcow: function yourls_is_infos() { return (bool) yourls_apply_filter("is_infos", defined("YOURLS_INFOS") && YOURLS_INFOS); } goto KCpz6; l1Db3: function yourls_xml_encode($array) { return \Spatie\ArrayToXml\ArrayToXml::convert($array, '', true, "UTF-8"); } goto sZgp9; RJatd: function yourls_needs_ssl() { return (bool) yourls_apply_filter("needs_ssl", defined("YOURLS_ADMIN_SSL") && YOURLS_ADMIN_SSL); } goto Pc9Rv; leAkx: function yourls_is_mobile_device() { $mobiles = array("android", "blackberry", "blazer", "compal", "elaine", "fennec", "hiptop", "iemobile", "iphone", "ipod", "ipad", "iris", "kindle", "opera mobi", "opera mini", "palm", "phone", "pocket", "psp", "symbian", "treo", "wap", "windows ce", "windows phone"); $current = strtolower($_SERVER["HTTP_USER_AGENT"]); $is_mobile = str_replace($mobiles, '', $current) != $current; return (bool) yourls_apply_filter("is_mobile_device", $is_mobile); } goto wy3Fj; sZgp9: function yourls_update_clicks($keyword, $clicks = false) { $pre = yourls_apply_filter("shunt_update_clicks", false, $keyword, $clicks); if (false !== $pre) { return $pre; } $keyword = yourls_sanitize_keyword($keyword); $table = YOURLS_DB_TABLE_URL; if ($clicks !== false && is_int($clicks) && $clicks >= 0) { $update = "UPDATE `{$table}` SET `clicks` = :clicks WHERE `keyword` = :keyword"; $values = array("clicks" => $clicks, "keyword" => $keyword); } else { $update = "UPDATE `{$table}` SET `clicks` = clicks + 1 WHERE `keyword` = :keyword"; $values = array("keyword" => $keyword); } try { $result = yourls_get_db()->fetchAffected($update, $values); } catch (Exception $e) { $result = 0; } yourls_do_action("update_clicks", $keyword, $result, $clicks); return $result; } goto oZpoF; oZpoF: function yourls_get_stats($filter = "top", $limit = 10, $start = 0) { switch ($filter) { case "bottom": $sort_by = "`clicks`"; $sort_order = "asc"; break; case "last": $sort_by = "`timestamp`"; $sort_order = "desc"; break; case "rand": case "random": $sort_by = "RAND()"; $sort_order = ''; break; case "top": default: $sort_by = "`clicks`"; $sort_order = "desc"; break; } $limit = intval($limit); $start = intval($start); if ($limit > 0) { $table_url = YOURLS_DB_TABLE_URL; $results = yourls_get_db()->fetchObjects("SELECT * FROM `{$table_url}` WHERE 1=1 ORDER BY {$sort_by} {$sort_order} LIMIT {$start}, {$limit};"); $return = array(); $i = 1; foreach ((array) $results as $res) { $return["links"]["link_" . $i++] = array("shorturl" => yourls_link($res->keyword), "url" => $res->url, "title" => $res->title, "timestamp" => $res->timestamp, "ip" => $res->ip, "clicks" => $res->clicks); } } $return["stats"] = yourls_get_db_stats(); $return["statusCode"] = 200; return yourls_apply_filter("get_stats", $return, $filter, $limit, $start); } goto b3uns; ctU1l: function yourls_no_frame_header() { $pre = yourls_apply_filter("shunt_no_frame_header", false); if (false !== $pre) { return $pre; } if (!headers_sent()) { header("X-Frame-Options: SAMEORIGIN"); } } goto r9ilF; QE4m1: function yourls_get_remote_title($url) { $pre = yourls_apply_filter("shunt_get_remote_title", false, $url); if (false !== $pre) { return $pre; } $url = yourls_sanitize_url($url); if (!in_array(yourls_get_protocol($url), array("http://", "https://"))) { return $url; } $title = $charset = false; $max_bytes = yourls_apply_filter("get_remote_title_max_byte", 32768); $response = yourls_http_get($url, array(), array(), array("max_bytes" => $max_bytes)); if (is_string($response)) { return $url; } $content = $response->body; if (!$content) { return $url; } if (preg_match("/<title>(.*?)<\/title>/is", $content, $found)) { $title = $found[1]; unset($found); } if (!$title) { return $url; } if (preg_match("/<meta[^>]*charset\s*=["' ]*([a-zA-Z0-9\-_]+)/is", $content, $found)) { $charset = $found[1]; unset($found); } else { $_charset = current($response->headers->getValues("content-type")); if (preg_match("/charset=(\S+)/", $_charset, $found)) { $charset = trim($found[1], ";"); unset($found); } } if (strtolower($charset) != "utf-8" && function_exists("mb_convert_encoding")) { if ($charset) { $title = @mb_convert_encoding($title, "UTF-8", $charset); } else { $title = @mb_convert_encoding($title, "UTF-8"); } } $title = html_entity_decode($title, ENT_QUOTES, "UTF-8"); $title = yourls_sanitize_title($title, $url); return (string) yourls_apply_filter("get_remote_title", $title, $url); } goto leAkx; Pc9Rv: function yourls_is_ssl() { $is_ssl = false; if (isset($_SERVER["HTTPS"])) { if ("on" == strtolower($_SERVER["HTTPS"])) { $is_ssl = true; } if ("1" == $_SERVER["HTTPS"]) { $is_ssl = true; } } elseif (isset($_SERVER["HTTP_X_FORWARDED_PROTO"])) { if ("https" == strtolower($_SERVER["HTTP_X_FORWARDED_PROTO"])) { $is_ssl = true; } } elseif (isset($_SERVER["SERVER_PORT"]) && "443" == $_SERVER["SERVER_PORT"]) { $is_ssl = true; } return (bool) yourls_apply_filter("is_ssl", $is_ssl); } goto QE4m1; y6Z_7: function yourls_deprecated_function($function, $version, $replacement = null) { yourls_do_action("deprecated_function", $function, $replacement, $version); if (yourls_get_debug_mode() && yourls_apply_filter("deprecated_function_trigger_error", true)) { if (!is_null($replacement)) { trigger_error(sprintf(yourls__("%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead."), $function, $version, $replacement)); } else { trigger_error(sprintf(yourls__("%1$s is <strong>deprecated</strong> since version %2$s with no alternative available."), $function, $version)); } } } goto ZAju4; OQjnW: function yourls_is_installed() { return (bool) yourls_apply_filter("is_installed", yourls_get_db()->is_installed()); } goto tBdrA; XhVB5: function yourls_redirect($location, $code = 301) { yourls_do_action("pre_redirect", $location, $code); $location = yourls_apply_filter("redirect_location", $location, $code); $code = yourls_apply_filter("redirect_code", $code, $location); if (!headers_sent()) { yourls_status_header($code); header("Location: {$location}"); return 1; } if (php_sapi_name() !== "cli") { yourls_redirect_javascript($location); return 2; } return 3; } goto zwL9u; ZAju4: function yourls_get_protocol_slashes_and_rest($url, $array = array("protocol", "slashes", "rest")) { $proto = yourls_get_protocol($url); if (!$proto or count($array) != 3) { return false; } list($null, $rest) = explode($proto, $url, 2); list($proto, $slashes) = explode(":", $proto); return array($array[0] => $proto . ":", $array[1] => $slashes, $array[2] => $rest); } goto kLqaB; GG6gY: function yourls_get_HTTP_status($code) { $code = intval($code); $headers_desc = array(100 => "Continue", 101 => "Switching Protocols", 102 => "Processing", 200 => "OK", 201 => "Created", 202 => "Accepted", 203 => "Non-Authoritative Information", 204 => "No Content", 205 => "Reset Content", 206 => "Partial Content", 207 => "Multi-Status", 226 => "IM Used", 300 => "Multiple Choices", 301 => "Moved Permanently", 302 => "Found", 303 => "See Other", 304 => "Not Modified", 305 => "Use Proxy", 306 => "Reserved", 307 => "Temporary Redirect", 400 => "Bad Request", 401 => "Unauthorized", 402 => "Payment Required", 403 => "Forbidden", 404 => "Not Found", 405 => "Method Not Allowed", 406 => "Not Acceptable", 407 => "Proxy Authentication Required", 408 => "Request Timeout", 409 => "Conflict", 410 => "Gone", 411 => "Length Required", 412 => "Precondition Failed", 413 => "Request Entity Too Large", 414 => "Request-URI Too Long", 415 => "Unsupported Media Type", 416 => "Requested Range Not Satisfiable", 417 => "Expectation Failed", 422 => "Unprocessable Entity", 423 => "Locked", 424 => "Failed Dependency", 426 => "Upgrade Required", 500 => "Internal Server Error", 501 => "Not Implemented", 502 => "Bad Gateway", 503 => "Service Unavailable", 504 => "Gateway Timeout", 505 => "HTTP Version Not Supported", 506 => "Variant Also Negotiates", 507 => "Insufficient Storage", 510 => "Not Extended"); return $headers_desc[$code] ?? ''; } goto E746l; l6d3U: function yourls_rnd_string($length = 5, $type = 0, $charlist = '') { $length = intval($length); switch ($type) { case "1": $possible = "23456789bcdfghjkmnpqrstvwxyz"; break; case "2": $possible = "23456789bcdfghjkmnpqrstvwxyzBCDFGHJKMNPQRSTVWXYZ"; break; case "3": $possible = "abcdefghijklmnopqrstuvwxyz"; break; case "4": $possible = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; break; case "5": $possible = "0123456789abcdefghijklmnopqrstuvwxyz"; break; case "6": $possible = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; break; default: case "0": $possible = $charlist ? $charlist : yourls_get_shorturl_charset(); break; } $str = substr(str_shuffle($possible), 0, $length); return yourls_apply_filter("rnd_string", $str, $length, $type, $charlist); } goto cMnzQ; p8XEU: function yourls_get_current_version_from_sql() { $currentver = yourls_get_option("version"); $currentsql = yourls_get_option("db_version"); if (!$currentver) { $currentver = "1.3"; } if (!$currentsql) { $currentsql = "100"; } return array($currentver, $currentsql); } goto A1TzY; nTcSw: function yourls_tell_if_new_version() { yourls_debug_log("Check for new version: " . (yourls_maybe_check_core_version() ? "yes" : "no")); yourls_new_core_version_notice(YOURLS_VERSION); } goto EvwX5; JqSSb: function yourls_is_installing() { return (bool) yourls_apply_filter("is_installing", defined("YOURLS_INSTALLING") && YOURLS_INSTALLING); } goto SS0a9; zxEHM: function yourls_get_next_decimal() { return (int) yourls_apply_filter("get_next_decimal", (int) yourls_get_option("next_id")); } goto Aq3pS; uR67_: function yourls_status_header($code = 200) { yourls_do_action("status_header", $code); if (headers_sent()) { return false; } $protocol = $_SERVER["SERVER_PROTOCOL"]; if ("HTTP/1.1" != $protocol && "HTTP/1.0" != $protocol) { $protocol = "HTTP/1.0"; } $code = intval($code); $desc = yourls_get_HTTP_status($code); @header("{$protocol} {$code} {$desc}"); return true; } goto iiosD; tBdrA: function yourls_set_installed($bool) { yourls_get_db()->set_installed($bool); } goto l6d3U; RZcV4: function yourls_get_IP() { $ip = ''; $headers = array("X-Forwarded-For", "HTTP_X_FORWARDED_FOR", "HTTP_CLIENT_IP", "HTTP_VIA", "REMOTE_ADDR"); foreach ($headers as $header) { if (!empty($_SERVER[$header])) { $ip = $_SERVER[$header]; break; } } if (strpos($ip, ",") !== false) { $ip = substr($ip, 0, strpos($ip, ",")); } return (string) yourls_apply_filter("get_IP", yourls_sanitize_ip($ip)); } goto zxEHM; EvwX5: function yourls_include_file_sandbox($file) { try { if (is_readable($file)) { include_once $file; yourls_debug_log("loaded {$file}"); return true; } } catch (\Throwable $e) { yourls_debug_log("could not load {$file}"); return sprintf("%s (%s : %s)", $e->getMessage(), $e->getFile(), $e->getLine()); } } ?>
Did this file decode correctly?
Original Code
<?php
goto HS73A; SS0a9: function yourls_is_upgrading() { return (bool) yourls_apply_filter("\151\x73\x5f\165\x70\147\162\x61\144\x69\156\x67", defined("\x59\117\125\x52\x4c\123\x5f\x55\120\x47\122\x41\104\x49\x4e\107") && YOURLS_UPGRADING); } goto OQjnW; Zb_ya: function yourls_get_referrer() { $referrer = isset($_SERVER["\110\124\124\120\137\x52\105\106\x45\122\x45\x52"]) ? yourls_sanitize_url_safe($_SERVER["\110\x54\x54\120\x5f\122\x45\x46\105\x52\105\122"]) : "\x64\x69\162\x65\x63\164"; return yourls_apply_filter("\x67\x65\x74\137\162\145\x66\x65\x72\162\145\162", substr($referrer, 0, 200)); } goto XhVB5; HS73A: function yourls_make_regexp_pattern($string) { return preg_quote($string, "\x40"); } goto RZcV4; mBe1M: function yourls_is_GO() { return (bool) yourls_apply_filter("\x69\x73\137\107\x4f", defined("\131\117\125\122\x4c\123\137\x47\117") && YOURLS_GO); } goto pbcow; A1TzY: function yourls_is_private() { $private = defined("\x59\117\x55\122\x4c\x53\137\120\x52\111\126\101\x54\x45") && YOURLS_PRIVATE; if ($private) { if (yourls_is_API() && defined("\x59\117\x55\x52\x4c\x53\x5f\120\x52\111\126\x41\124\105\x5f\x41\x50\111")) { $private = YOURLS_PRIVATE_API; } elseif (yourls_is_infos() && defined("\x59\117\125\x52\x4c\x53\137\120\122\x49\x56\x41\124\x45\x5f\x49\x4e\106\x4f\123")) { $private = YOURLS_PRIVATE_INFOS; } } return yourls_apply_filter("\x69\x73\x5f\160\162\151\x76\x61\164\x65", $private); } goto MN0aD; r9ilF: function yourls_content_type_header($type) { yourls_do_action("\x63\157\156\164\145\156\x74\x5f\x74\x79\160\145\137\x68\x65\x61\x64\145\x72", $type); if (!headers_sent()) { $charset = yourls_apply_filter("\x63\x6f\x6e\x74\x65\156\x74\137\164\171\160\145\137\150\145\x61\x64\145\162\x5f\143\x68\x61\162\x73\x65\x74", "\x75\x74\146\x2d\x38"); header("\x43\x6f\x6e\164\145\156\x74\55\x54\x79\160\145\72\40{$type}\x3b\x20\143\x68\x61\162\x73\145\x74\75{$charset}"); return true; } return false; } goto uR67_; VT44b: function yourls_get_protocol($url) { preg_match("\x21\136\x5b\141\x2d\172\101\x2d\132\135\133\141\55\172\101\x2d\132\x30\55\x39\x2b\56\55\135\53\x3a\50\x2f\x2f\51\x3f\x21", $url, $matches); return (string) yourls_apply_filter("\147\145\x74\137\x70\x72\157\x74\x6f\x63\x6f\x6c", isset($matches[0]) ? $matches[0] : '', $url); } goto H0mDf; niKc3: function yourls_no_cache_headers() { if (!headers_sent()) { header("\105\170\160\151\162\145\163\72\40\124\150\x75\54\x20\62\x33\x20\115\141\x72\x20\x31\x39\x37\x32\x20\60\67\x3a\x30\x30\72\60\60\40\x47\115\124"); header("\x4c\x61\163\164\x2d\x4d\x6f\x64\x69\x66\x69\x65\144\72\x20" . gmdate("\104\54\40\144\40\x4d\40\131\40\x48\x3a\151\x3a\x73") . "\40\x47\x4d\x54"); header("\103\x61\x63\150\x65\55\x43\x6f\x6e\x74\x72\x6f\x6c\x3a\40\x6e\157\x2d\143\x61\143\150\x65\54\x20\155\165\163\x74\x2d\162\145\166\x61\154\151\144\141\x74\x65\54\x20\x6d\x61\170\55\x61\x67\145\x3d\60"); header("\x50\x72\x61\x67\x6d\141\72\x20\156\157\55\x63\x61\x63\x68\x65"); } } goto ctU1l; np_Jq: function yourls_fix_request_uri() { $default_server_values = array("\123\105\122\126\x45\122\137\x53\117\x46\x54\127\101\x52\x45" => '', "\x52\105\x51\x55\x45\123\124\x5f\x55\122\111" => ''); $_SERVER = array_merge($default_server_values, $_SERVER); $_REQUEST = array_merge($_GET, $_POST); if (empty($_SERVER["\x52\x45\x51\x55\x45\x53\124\137\125\122\111"]) || php_sapi_name() != "\143\147\151\55\x66\143\x67\151" && preg_match("\x2f\136\115\x69\143\x72\x6f\163\157\146\x74\55\111\111\123\x5c\57\57", $_SERVER["\x53\x45\x52\x56\x45\122\x5f\123\x4f\x46\124\127\x41\x52\x45"])) { if (isset($_SERVER["\x48\x54\x54\x50\x5f\x58\x5f\117\x52\x49\x47\x49\116\x41\114\x5f\125\x52\x4c"])) { $_SERVER["\122\105\121\x55\105\123\124\x5f\125\x52\x49"] = $_SERVER["\110\124\124\120\x5f\x58\x5f\x4f\x52\111\x47\111\x4e\101\114\x5f\x55\122\114"]; } elseif (isset($_SERVER["\110\124\124\120\x5f\130\x5f\122\105\127\122\111\124\105\137\x55\122\x4c"])) { $_SERVER["\x52\x45\121\125\105\x53\x54\x5f\125\122\x49"] = $_SERVER["\110\x54\x54\x50\137\130\137\122\105\x57\x52\111\124\105\137\x55\x52\x4c"]; } else { if (!isset($_SERVER["\120\x41\x54\110\137\111\116\x46\x4f"]) && isset($_SERVER["\117\x52\111\107\x5f\120\101\124\x48\137\111\x4e\x46\117"])) { $_SERVER["\x50\101\x54\110\137\111\x4e\106\117"] = $_SERVER["\117\122\111\x47\137\x50\101\x54\110\x5f\x49\x4e\x46\x4f"]; } if (isset($_SERVER["\120\x41\124\110\137\111\116\106\x4f"])) { if ($_SERVER["\120\x41\x54\x48\x5f\x49\x4e\x46\117"] == $_SERVER["\x53\103\122\111\120\124\137\x4e\x41\115\105"]) { $_SERVER["\x52\x45\x51\125\x45\x53\124\137\125\x52\x49"] = $_SERVER["\120\x41\x54\110\x5f\x49\x4e\106\117"]; } else { $_SERVER["\122\x45\121\x55\x45\123\x54\137\x55\122\x49"] = $_SERVER["\123\x43\122\111\120\x54\x5f\x4e\101\x4d\x45"] . $_SERVER["\120\101\124\x48\137\x49\x4e\106\117"]; } } if (!empty($_SERVER["\x51\125\105\122\x59\x5f\123\x54\x52\x49\x4e\x47"])) { $_SERVER["\x52\x45\121\x55\x45\x53\124\137\x55\x52\x49"] .= "\77" . $_SERVER["\x51\125\105\x52\x59\x5f\123\124\x52\111\x4e\107"]; } } } } goto k7INN; SS2Ze: function yourls_is_allowed_protocol($url, $protocols = array()) { if (empty($protocols)) { global $yourls_allowedprotocols; $protocols = $yourls_allowedprotocols; } return yourls_apply_filter("\x69\163\x5f\141\x6c\x6c\x6f\x77\x65\144\x5f\x70\162\x6f\x74\x6f\x63\x6f\x6c", in_array(yourls_get_protocol($url), $protocols), $url, $protocols); } goto VT44b; Aq3pS: function yourls_update_next_decimal($int = 0) { $int = $int == 0 ? yourls_get_next_decimal() + 1 : (int) $int; $update = yourls_update_option("\x6e\x65\x78\x74\137\151\144", $int); yourls_do_action("\x75\x70\x64\x61\x74\145\137\x6e\145\170\x74\x5f\144\x65\x63\x69\x6d\x61\154", $int, $update); return $update; } goto l1Db3; OMvI5: function yourls_check_IP_flood($ip = '') { $pre = yourls_apply_filter("\163\150\x75\x6e\x74\x5f\143\150\145\x63\153\x5f\x49\x50\x5f\x66\x6c\157\157\x64", false, $ip); if (false !== $pre) { return $pre; } yourls_do_action("\160\162\x65\137\143\150\x65\x63\153\137\151\160\137\x66\x6c\157\157\144", $ip); if (defined("\x59\117\125\x52\x4c\x53\137\x46\114\117\117\x44\137\104\x45\x4c\x41\131\137\123\105\103\x4f\116\104\123") && YOURLS_FLOOD_DELAY_SECONDS === 0 || !defined("\x59\x4f\x55\x52\114\x53\137\106\114\x4f\117\104\137\104\105\x4c\101\x59\137\123\105\103\x4f\116\104\x53") || yourls_is_installing()) { return true; } if (yourls_is_private()) { if (yourls_is_valid_user() === true) { return true; } } if (defined("\131\117\x55\x52\114\x53\137\106\x4c\117\x4f\104\137\x49\120\137\127\x48\111\x54\105\x4c\x49\x53\124") && YOURLS_FLOOD_IP_WHITELIST) { $whitelist_ips = explode("\x2c", YOURLS_FLOOD_IP_WHITELIST); foreach ((array) $whitelist_ips as $whitelist_ip) { $whitelist_ip = trim($whitelist_ip); if ($whitelist_ip == $ip) { return true; } } } $ip = $ip ? yourls_sanitize_ip($ip) : yourls_get_IP(); yourls_do_action("\x63\150\x65\143\x6b\137\151\x70\137\x66\154\x6f\157\144", $ip); $table = YOURLS_DB_TABLE_URL; $lasttime = yourls_get_db()->fetchValue("\123\105\x4c\x45\103\124\x20\140\x74\x69\x6d\x65\x73\x74\x61\x6d\160\140\x20\106\122\x4f\115\x20{$table}\x20\127\x48\x45\122\105\x20\140\x69\x70\x60\40\75\x20\72\x69\x70\40\117\122\x44\105\x52\x20\x42\131\40\x60\164\x69\155\145\x73\x74\141\155\x70\140\x20\x44\105\123\x43\x20\x4c\x49\115\x49\x54\40\61", array("\x69\x70" => $ip)); if ($lasttime) { $now = date("\x55"); $then = date("\x55", strtotime($lasttime)); if ($now - $then <= YOURLS_FLOOD_DELAY_SECONDS) { yourls_do_action("\151\160\x5f\146\x6c\157\157\144", $ip, $now - $then); yourls_die(yourls__("\124\157\157\x20\x6d\141\x6e\171\40\125\122\x4c\163\40\x61\x64\x64\145\x64\40\164\157\157\40\x66\x61\163\164\x2e\40\123\x6c\157\x77\x20\144\157\x77\x6e\40\160\x6c\x65\141\163\x65\56"), yourls__("\x54\x6f\x6f\40\115\141\156\x79\x20\x52\x65\x71\165\145\x73\164\163"), 429); } } return true; } goto JqSSb; iiosD: function yourls_redirect_javascript($location, $dontwait = true) { yourls_do_action("\x70\162\145\137\x72\145\144\x69\x72\145\143\164\137\x6a\141\x76\141\163\143\162\151\x70\x74", $location, $dontwait); $location = yourls_apply_filter("\162\x65\144\151\162\x65\x63\164\x5f\152\x61\166\141\x73\x63\162\151\x70\164", $location, $dontwait); if ($dontwait) { $message = yourls_s("\x69\146\x20\171\x6f\x75\40\141\162\145\x20\156\x6f\x74\x20\x72\145\144\x69\x72\x65\x63\164\145\144\x20\141\x66\164\x65\x72\x20\61\x30\x20\x73\x65\x63\x6f\156\x64\x73\54\x20\x70\154\x65\x61\163\x65\x20\74\x61\40\x68\162\x65\146\75\42\x25\163\42\x3e\143\x6c\151\x63\x6b\40\x68\145\162\145\x3c\57\141\x3e", $location); echo "\11\11\74\163\x63\x72\x69\x70\164\x20\x74\x79\x70\x65\x3d\42\164\145\170\x74\x2f\x6a\x61\x76\x61\163\x63\162\151\160\x74\x22\x3e\12\x9\11\167\x69\x6e\144\157\x77\56\154\x6f\x63\x61\x74\x69\157\x6e\x3d\42{$location}\x22\73\12\x9\11\74\x2f\x73\x63\x72\x69\160\164\x3e\12\11\11\74\163\x6d\141\x6c\x6c\76\x28{$message}\x29\74\x2f\x73\x6d\x61\154\154\x3e"; } else { echo "\x3c\160\x3e" . yourls_s("\120\x6c\x65\x61\163\145\40\x3c\x61\40\x68\162\145\146\75\42\45\x73\x22\76\143\x6c\x69\143\x6b\40\150\x65\162\x65\74\57\141\x3e", $location) . "\74\57\160\76"; } yourls_do_action("\160\157\163\164\x5f\x72\145\x64\x69\162\145\x63\164\137\152\x61\x76\141\x73\143\162\151\x70\x74", $location); } goto GG6gY; KCpz6: function yourls_is_admin() { return (bool) yourls_apply_filter("\151\x73\x5f\141\144\155\151\156", defined("\131\x4f\125\x52\114\123\137\x41\104\115\111\x4e") && YOURLS_ADMIN); } goto mAL4p; b3uns: function yourls_get_db_stats($where = array("\x73\161\154" => '', "\x62\151\x6e\144\163" => array())) { $table_url = YOURLS_DB_TABLE_URL; $totals = yourls_get_db()->fetchObject("\x53\x45\x4c\x45\103\124\x20\103\x4f\125\116\x54\x28\153\x65\171\x77\157\x72\144\51\40\141\x73\x20\x63\x6f\x75\156\x74\x2c\40\x53\125\x4d\50\143\154\x69\x63\x6b\x73\x29\x20\x61\x73\x20\163\165\155\40\x46\122\117\115\40\x60{$table_url}\140\x20\127\x48\105\x52\x45\40\61\75\61\40" . $where["\163\161\154"], $where["\x62\151\156\144\x73"]); $return = array("\x74\157\x74\141\x6c\x5f\x6c\151\x6e\x6b\163" => $totals->count, "\164\x6f\164\x61\x6c\137\x63\x6c\x69\x63\153\163" => $totals->sum); return yourls_apply_filter("\x67\x65\164\x5f\144\142\137\163\x74\141\164\x73", $return, $where); } goto Fom1B; MN0aD: function yourls_allow_duplicate_longurls() { if (yourls_is_API() && isset($_REQUEST["\x73\x6f\x75\x72\x63\x65"]) && $_REQUEST["\x73\157\165\162\x63\145"] == "\160\x6c\x75\x67\151\156") { return false; } return yourls_apply_filter("\x61\154\x6c\157\x77\x5f\x64\x75\160\154\x69\143\x61\164\145\137\x6c\x6f\x6e\x67\165\x72\x6c\163", defined("\x59\117\125\122\114\123\137\x55\116\111\121\125\105\137\125\x52\x4c\x53") && !YOURLS_UNIQUE_URLS); } goto OMvI5; cMnzQ: function yourls_is_API() { return (bool) yourls_apply_filter("\151\163\x5f\101\x50\x49", defined("\x59\x4f\125\x52\114\x53\x5f\x41\120\111") && YOURLS_API); } goto k2r31; zwL9u: function yourls_redirect_shorturl($url, $keyword) { yourls_do_action("\162\145\x64\151\x72\x65\143\164\137\x73\x68\x6f\x72\x74\165\x72\x6c", $url, $keyword); yourls_update_clicks($keyword); yourls_log_redirect($keyword); yourls_robots_tag_header(); yourls_redirect($url, 301); } goto x903k; kLqaB: function yourls_set_url_scheme($url, $scheme = '') { if (in_array($scheme, array("\150\x74\x74\160", "\150\164\x74\160\163"))) { $url = preg_replace("\41\x5e\133\x61\x2d\x7a\101\55\132\x30\x2d\71\x2b\x2e\x2d\135\x2b\72\57\x2f\x21", $scheme . "\72\57\x2f", $url); } return $url; } goto nTcSw; A2Fl3: function yourls_upgrade_is_needed() { list($currentver, $currentsql) = yourls_get_current_version_from_sql(); if ($currentsql < YOURLS_DB_VERSION) { return true; } if ($currentver < YOURLS_VERSION) { yourls_update_option("\166\x65\x72\163\x69\157\x6e", YOURLS_VERSION); } return false; } goto p8XEU; Fom1B: function yourls_get_user_agent() { $ua = "\55"; if (isset($_SERVER["\110\124\x54\x50\x5f\x55\x53\105\122\x5f\x41\107\105\x4e\124"])) { $ua = strip_tags(html_entity_decode($_SERVER["\110\124\124\x50\x5f\x55\123\x45\x52\137\101\x47\x45\116\x54"])); $ua = preg_replace("\x21\133\136\x30\x2d\71\x61\x2d\x7a\x41\x2d\132\x27\72\56\x2c\x20\57\x7b\175\x5c\50\134\51\134\x5b\134\x5d\134\x2b\100\46\x5c\x21\x5c\x3f\x3b\137\134\x2d\75\x7e\134\x2a\x5c\43\x5d\41", '', $ua); } return yourls_apply_filter("\147\x65\164\x5f\x75\x73\145\162\137\141\147\145\156\x74", substr($ua, 0, 255)); } goto Zb_ya; Gd2jG: function yourls_do_log_redirect() { return !defined("\131\x4f\x55\122\114\x53\137\116\x4f\x53\124\101\x54\123") || YOURLS_NOSTATS != true; } goto A2Fl3; k2r31: function yourls_is_Ajax() { return (bool) yourls_apply_filter("\x69\x73\x5f\x41\x6a\x61\170", defined("\131\x4f\125\x52\114\123\x5f\101\112\101\x58") && YOURLS_AJAX); } goto mBe1M; H0mDf: function yourls_get_relative_url($url, $strict = true) { $url = yourls_sanitize_url($url); $noproto_url = str_replace("\x68\x74\x74\160\163\x3a", "\150\164\x74\x70\x3a", $url); $noproto_site = str_replace("\x68\164\164\160\x73\x3a", "\x68\x74\164\160\72", yourls_get_yourls_site()); $_url = str_replace($noproto_site . "\57", '', $noproto_url); if ($_url == $noproto_url) { $_url = $strict ? '' : $url; } return yourls_apply_filter("\147\x65\x74\x5f\x72\x65\154\x61\x74\x69\x76\145\x5f\165\162\x6c", $_url, $url); } goto y6Z_7; wy3Fj: function yourls_get_request($yourls_site = '', $uri = '') { $pre = yourls_apply_filter("\x73\x68\x75\x6e\164\137\x67\145\164\137\x72\x65\161\165\145\x73\164", false); if (false !== $pre) { return $pre; } yourls_do_action("\x70\x72\145\137\147\x65\x74\x5f\162\145\x71\165\x65\x73\x74", $yourls_site, $uri); if ('' === $yourls_site) { $yourls_site = yourls_get_yourls_site(); } if ('' === $uri) { $uri = $_SERVER["\x52\x45\x51\125\105\123\x54\x5f\125\x52\x49"]; } $yourls_site = rtrim($yourls_site, "\x2f"); $yourls_site = parse_url($yourls_site, PHP_URL_PATH) . "\57"; $request = $uri; if (substr($uri, 0, strlen($yourls_site)) == $yourls_site) { $request = ltrim(substr($uri, strlen($yourls_site)), "\x2f"); } if (!preg_match("\100\x5e\x5b\x61\x2d\x7a\101\x2d\x5a\135\53\x3a\57\x2f\x2e\x2b\x40", $request)) { $request = current(explode("\x3f", $request)); } $request = yourls_sanitize_url($request); return (string) yourls_apply_filter("\x67\x65\164\137\x72\145\161\x75\x65\x73\164", $request); } goto np_Jq; mAL4p: function yourls_is_windows() { return defined("\x44\x49\x52\x45\x43\x54\x4f\122\x59\137\x53\105\120\101\x52\101\x54\x4f\x52") && DIRECTORY_SEPARATOR == "\x5c"; } goto RJatd; x903k: function yourls_robots_tag_header() { $pre = yourls_apply_filter("\x73\150\x75\156\164\x5f\162\x6f\x62\x6f\x74\163\x5f\x74\x61\147\137\x68\145\141\x64\145\x72", false); if (false !== $pre) { return $pre; } $tag = yourls_apply_filter("\x72\157\x62\x6f\164\163\x5f\x74\141\x67\137\150\145\141\x64\145\x72", "\x6e\x6f\151\156\144\x65\x78"); $replace = yourls_apply_filter("\x72\157\x62\x6f\164\163\137\x74\141\147\137\x68\x65\141\x64\145\162\137\x72\145\x70\x6c\141\x63\x65", true); if (!headers_sent()) { header("\x58\55\122\x6f\x62\157\x74\163\55\124\x61\147\72\40{$tag}", $replace); } } goto niKc3; k7INN: function yourls_check_maintenance_mode() { $dot_file = YOURLS_ABSPATH . "\57\x2e\x6d\141\x69\156\164\145\156\141\156\x63\x65"; if (!file_exists($dot_file) || yourls_is_upgrading() || yourls_is_installing()) { return; } global $maintenance_start; yourls_include_file_sandbox($dot_file); if (time() - $maintenance_start >= 600) { return; } $file = YOURLS_USERDIR . "\57\x6d\x61\151\156\164\x65\x6e\141\x6e\143\145\x2e\x70\x68\160"; if (file_exists($file)) { if (yourls_include_file_sandbox($file) == true) { die; } } $title = yourls__("\123\x65\x72\x76\x69\143\145\x20\x74\x65\155\x70\x6f\x72\x61\162\x69\x6c\x79\40\165\156\x61\x76\141\151\154\141\142\x6c\x65"); $message = yourls__("\x4f\x75\x72\x20\163\x65\162\x76\x69\143\145\40\151\x73\40\143\165\162\x72\x65\x6e\x74\x6c\171\40\x75\156\144\x65\x72\x67\x6f\x69\x6e\147\40\163\x63\150\145\144\165\154\145\144\x20\x6d\x61\x69\x6e\164\x65\x6e\141\x6e\x63\145\56") . "\74\x2f\x70\x3e\xa\74\160\76" . yourls__("\x54\150\x69\x6e\x67\x73\40\x73\150\157\165\x6c\144\40\156\x6f\164\x20\x6c\x61\x73\x74\x20\166\x65\162\171\x20\x6c\157\156\147\54\40\x74\x68\141\156\x6b\x20\x79\x6f\x75\40\146\x6f\x72\x20\x79\157\x75\x72\40\160\141\164\151\x65\156\143\145\40\141\156\144\40\x70\154\x65\141\163\145\x20\145\x78\x63\165\163\145\40\x74\x68\145\x20\x69\x6e\143\x6f\156\x76\x65\156\x69\145\156\143\145"); yourls_die($message, $title, 503); } goto SS2Ze; E746l: function yourls_log_redirect($keyword) { $pre = yourls_apply_filter("\163\x68\x75\x6e\x74\x5f\x6c\157\x67\137\x72\145\144\151\162\x65\x63\164", false, $keyword); if (false !== $pre) { return $pre; } if (!yourls_do_log_redirect()) { return true; } $table = YOURLS_DB_TABLE_LOG; $ip = yourls_get_IP(); $binds = array("\156\x6f\167" => date("\x59\55\155\55\x64\x20\x48\x3a\151\x3a\163"), "\153\x65\171\x77\x6f\x72\x64" => yourls_sanitize_keyword($keyword), "\x72\x65\x66\x65\x72\162\145\162" => substr(yourls_get_referrer(), 0, 200), "\x75\141" => substr(yourls_get_user_agent(), 0, 255), "\151\160" => $ip, "\154\157\x63\141\164\x69\157\x6e" => yourls_geo_ip_to_countrycode($ip)); try { $result = yourls_get_db()->fetchAffected("\x49\x4e\123\x45\122\x54\x20\111\116\x54\x4f\x20\140{$table}\140\40\50\143\x6c\151\143\x6b\137\x74\x69\155\x65\x2c\40\163\150\x6f\x72\x74\165\162\154\54\x20\x72\145\146\x65\x72\162\145\x72\54\x20\165\163\145\162\x5f\141\x67\145\x6e\164\54\40\x69\160\x5f\141\x64\144\x72\145\163\x73\x2c\x20\143\157\165\156\164\x72\x79\137\143\157\x64\145\x29\40\x56\101\x4c\125\105\123\x20\x28\72\156\157\167\54\40\72\153\x65\171\x77\157\x72\x64\54\x20\x3a\162\x65\x66\145\162\x72\x65\162\x2c\x20\x3a\165\x61\54\x20\72\x69\160\54\x20\x3a\154\157\143\141\164\x69\x6f\x6e\51", $binds); } catch (Exception $e) { $result = 0; } return $result; } goto Gd2jG; pbcow: function yourls_is_infos() { return (bool) yourls_apply_filter("\x69\x73\x5f\151\156\x66\x6f\x73", defined("\x59\117\x55\x52\x4c\123\x5f\111\x4e\x46\117\123") && YOURLS_INFOS); } goto KCpz6; l1Db3: function yourls_xml_encode($array) { return \Spatie\ArrayToXml\ArrayToXml::convert($array, '', true, "\x55\124\x46\55\70"); } goto sZgp9; RJatd: function yourls_needs_ssl() { return (bool) yourls_apply_filter("\x6e\x65\145\144\163\x5f\x73\163\154", defined("\131\x4f\125\122\114\x53\137\x41\x44\x4d\x49\x4e\x5f\123\x53\114") && YOURLS_ADMIN_SSL); } goto Pc9Rv; leAkx: function yourls_is_mobile_device() { $mobiles = array("\x61\x6e\x64\x72\x6f\151\144", "\142\154\141\x63\153\x62\x65\162\x72\171", "\x62\154\141\x7a\x65\162", "\143\157\x6d\x70\x61\154", "\x65\154\x61\x69\156\x65", "\146\x65\x6e\x6e\x65\x63", "\x68\151\160\x74\x6f\160", "\151\x65\155\157\142\x69\154\x65", "\151\x70\150\157\x6e\145", "\x69\160\157\144", "\151\x70\x61\x64", "\x69\x72\x69\x73", "\x6b\x69\156\x64\x6c\145", "\157\160\x65\162\141\40\x6d\157\142\x69", "\157\x70\x65\162\141\x20\x6d\151\156\151", "\x70\x61\154\x6d", "\160\150\x6f\156\x65", "\x70\157\x63\x6b\145\x74", "\160\163\x70", "\163\x79\x6d\x62\151\x61\x6e", "\x74\162\145\x6f", "\167\x61\160", "\167\151\156\x64\x6f\x77\163\x20\143\x65", "\167\151\x6e\144\x6f\167\x73\x20\x70\150\157\156\145"); $current = strtolower($_SERVER["\110\x54\124\x50\x5f\x55\123\105\x52\x5f\x41\x47\x45\x4e\x54"]); $is_mobile = str_replace($mobiles, '', $current) != $current; return (bool) yourls_apply_filter("\x69\x73\x5f\155\x6f\142\x69\x6c\x65\x5f\144\x65\x76\x69\x63\x65", $is_mobile); } goto wy3Fj; sZgp9: function yourls_update_clicks($keyword, $clicks = false) { $pre = yourls_apply_filter("\163\150\x75\156\x74\137\x75\x70\x64\141\x74\145\x5f\143\x6c\151\143\153\x73", false, $keyword, $clicks); if (false !== $pre) { return $pre; } $keyword = yourls_sanitize_keyword($keyword); $table = YOURLS_DB_TABLE_URL; if ($clicks !== false && is_int($clicks) && $clicks >= 0) { $update = "\x55\120\104\x41\124\x45\40\140{$table}\140\x20\x53\105\x54\x20\140\143\154\x69\143\153\x73\140\40\x3d\x20\x3a\x63\154\151\x63\153\163\40\127\x48\x45\x52\x45\40\x60\x6b\x65\x79\x77\x6f\x72\x64\140\x20\x3d\40\x3a\x6b\x65\171\167\157\x72\x64"; $values = array("\143\x6c\151\143\153\163" => $clicks, "\x6b\x65\171\x77\x6f\162\x64" => $keyword); } else { $update = "\125\120\104\101\x54\x45\x20\x60{$table}\x60\x20\123\x45\x54\40\x60\143\x6c\151\143\153\163\140\40\75\40\143\154\x69\143\x6b\x73\x20\x2b\40\61\40\127\x48\x45\x52\105\40\140\153\145\x79\x77\x6f\x72\144\140\x20\75\40\72\153\x65\171\167\157\x72\144"; $values = array("\153\x65\x79\x77\157\162\144" => $keyword); } try { $result = yourls_get_db()->fetchAffected($update, $values); } catch (Exception $e) { $result = 0; } yourls_do_action("\x75\160\x64\x61\x74\x65\x5f\x63\x6c\151\143\x6b\x73", $keyword, $result, $clicks); return $result; } goto oZpoF; oZpoF: function yourls_get_stats($filter = "\164\157\x70", $limit = 10, $start = 0) { switch ($filter) { case "\142\x6f\x74\164\157\155": $sort_by = "\x60\143\x6c\151\x63\153\x73\140"; $sort_order = "\x61\163\143"; break; case "\154\x61\163\164": $sort_by = "\x60\x74\151\x6d\x65\x73\164\x61\155\160\x60"; $sort_order = "\x64\x65\163\x63"; break; case "\x72\141\x6e\144": case "\x72\141\156\144\157\155": $sort_by = "\122\x41\x4e\x44\x28\x29"; $sort_order = ''; break; case "\x74\x6f\160": default: $sort_by = "\x60\143\x6c\151\143\x6b\x73\x60"; $sort_order = "\144\145\x73\143"; break; } $limit = intval($limit); $start = intval($start); if ($limit > 0) { $table_url = YOURLS_DB_TABLE_URL; $results = yourls_get_db()->fetchObjects("\x53\105\114\x45\x43\124\x20\x2a\40\x46\122\x4f\x4d\x20\140{$table_url}\x60\40\127\x48\105\122\x45\x20\61\75\x31\40\x4f\x52\104\105\x52\40\102\131\40{$sort_by}\x20{$sort_order}\x20\114\x49\x4d\x49\124\x20{$start}\x2c\x20{$limit}\73"); $return = array(); $i = 1; foreach ((array) $results as $res) { $return["\154\151\156\x6b\163"]["\x6c\x69\156\153\137" . $i++] = array("\x73\150\x6f\162\x74\165\162\x6c" => yourls_link($res->keyword), "\x75\x72\x6c" => $res->url, "\164\x69\164\x6c\145" => $res->title, "\x74\x69\x6d\x65\x73\164\141\x6d\160" => $res->timestamp, "\x69\x70" => $res->ip, "\x63\x6c\x69\143\153\163" => $res->clicks); } } $return["\163\x74\x61\164\163"] = yourls_get_db_stats(); $return["\163\x74\141\164\x75\x73\x43\x6f\144\x65"] = 200; return yourls_apply_filter("\147\145\x74\137\x73\164\x61\164\163", $return, $filter, $limit, $start); } goto b3uns; ctU1l: function yourls_no_frame_header() { $pre = yourls_apply_filter("\163\150\x75\x6e\164\x5f\x6e\157\x5f\146\x72\141\155\145\137\x68\x65\141\x64\x65\162", false); if (false !== $pre) { return $pre; } if (!headers_sent()) { header("\130\x2d\106\162\141\155\x65\x2d\117\x70\164\151\157\x6e\x73\72\x20\x53\x41\115\105\x4f\x52\x49\107\x49\x4e"); } } goto r9ilF; QE4m1: function yourls_get_remote_title($url) { $pre = yourls_apply_filter("\x73\150\165\x6e\164\x5f\x67\x65\164\137\x72\145\155\157\164\x65\x5f\x74\x69\164\154\145", false, $url); if (false !== $pre) { return $pre; } $url = yourls_sanitize_url($url); if (!in_array(yourls_get_protocol($url), array("\150\x74\164\x70\72\57\x2f", "\150\x74\164\x70\x73\x3a\57\x2f"))) { return $url; } $title = $charset = false; $max_bytes = yourls_apply_filter("\x67\x65\164\x5f\162\x65\x6d\157\164\145\x5f\x74\x69\164\x6c\145\137\x6d\x61\170\137\142\x79\164\x65", 32768); $response = yourls_http_get($url, array(), array(), array("\x6d\x61\170\137\x62\x79\x74\x65\x73" => $max_bytes)); if (is_string($response)) { return $url; } $content = $response->body; if (!$content) { return $url; } if (preg_match("\57\74\x74\151\x74\x6c\x65\76\x28\x2e\52\x3f\x29\74\x5c\57\164\151\164\x6c\145\x3e\57\151\163", $content, $found)) { $title = $found[1]; unset($found); } if (!$title) { return $url; } if (preg_match("\57\x3c\155\145\x74\141\x5b\x5e\x3e\135\52\143\x68\x61\x72\x73\145\x74\x5c\163\x2a\x3d\x5b\42\47\x20\135\52\x28\x5b\141\x2d\x7a\x41\55\x5a\x30\55\71\x5c\55\x5f\135\x2b\51\x2f\x69\x73", $content, $found)) { $charset = $found[1]; unset($found); } else { $_charset = current($response->headers->getValues("\x63\x6f\x6e\x74\145\156\164\55\x74\171\160\x65")); if (preg_match("\57\x63\x68\141\x72\163\145\x74\x3d\x28\x5c\123\x2b\x29\x2f", $_charset, $found)) { $charset = trim($found[1], "\73"); unset($found); } } if (strtolower($charset) != "\x75\164\146\55\x38" && function_exists("\155\x62\137\143\157\156\x76\145\162\x74\x5f\145\156\143\157\144\x69\156\147")) { if ($charset) { $title = @mb_convert_encoding($title, "\125\124\x46\55\x38", $charset); } else { $title = @mb_convert_encoding($title, "\125\x54\106\x2d\x38"); } } $title = html_entity_decode($title, ENT_QUOTES, "\125\x54\106\x2d\70"); $title = yourls_sanitize_title($title, $url); return (string) yourls_apply_filter("\x67\x65\164\x5f\x72\145\155\x6f\x74\x65\x5f\164\151\x74\x6c\x65", $title, $url); } goto leAkx; Pc9Rv: function yourls_is_ssl() { $is_ssl = false; if (isset($_SERVER["\x48\124\x54\120\123"])) { if ("\x6f\x6e" == strtolower($_SERVER["\110\124\124\x50\x53"])) { $is_ssl = true; } if ("\61" == $_SERVER["\x48\x54\124\x50\x53"]) { $is_ssl = true; } } elseif (isset($_SERVER["\x48\x54\124\120\x5f\x58\137\x46\x4f\x52\x57\101\x52\x44\105\x44\137\x50\122\117\x54\117"])) { if ("\x68\164\164\x70\x73" == strtolower($_SERVER["\110\124\x54\120\x5f\130\x5f\106\117\x52\x57\x41\x52\x44\105\x44\x5f\120\122\x4f\124\x4f"])) { $is_ssl = true; } } elseif (isset($_SERVER["\123\x45\x52\x56\105\122\x5f\120\x4f\x52\124"]) && "\64\64\63" == $_SERVER["\x53\x45\122\126\x45\x52\x5f\x50\117\x52\124"]) { $is_ssl = true; } return (bool) yourls_apply_filter("\x69\x73\137\163\x73\x6c", $is_ssl); } goto QE4m1; y6Z_7: function yourls_deprecated_function($function, $version, $replacement = null) { yourls_do_action("\x64\145\160\162\x65\143\141\x74\x65\144\137\x66\x75\x6e\143\164\x69\x6f\156", $function, $replacement, $version); if (yourls_get_debug_mode() && yourls_apply_filter("\144\145\160\162\x65\143\x61\x74\145\x64\x5f\x66\165\156\x63\164\x69\x6f\x6e\x5f\164\162\x69\147\x67\x65\162\137\x65\x72\162\x6f\162", true)) { if (!is_null($replacement)) { trigger_error(sprintf(yourls__("\45\x31\x24\x73\x20\151\163\40\74\x73\164\x72\157\x6e\x67\x3e\x64\x65\160\x72\x65\x63\141\164\145\144\x3c\57\163\x74\162\x6f\156\147\76\40\x73\151\156\x63\x65\40\166\145\162\163\x69\157\156\40\45\62\x24\163\41\40\x55\163\x65\x20\45\63\44\163\x20\151\x6e\163\164\x65\141\x64\x2e"), $function, $version, $replacement)); } else { trigger_error(sprintf(yourls__("\45\x31\x24\x73\40\151\x73\x20\x3c\163\x74\162\157\156\147\76\144\145\x70\x72\145\x63\141\164\x65\144\x3c\x2f\163\x74\x72\x6f\x6e\147\76\x20\163\151\156\x63\x65\x20\166\x65\162\163\x69\x6f\x6e\x20\x25\62\44\163\40\x77\151\164\x68\40\x6e\x6f\x20\x61\154\x74\145\x72\156\141\x74\x69\x76\145\40\x61\166\x61\x69\154\141\x62\154\x65\56"), $function, $version)); } } } goto ZAju4; OQjnW: function yourls_is_installed() { return (bool) yourls_apply_filter("\x69\163\137\x69\x6e\163\x74\141\154\x6c\x65\144", yourls_get_db()->is_installed()); } goto tBdrA; XhVB5: function yourls_redirect($location, $code = 301) { yourls_do_action("\x70\162\145\x5f\x72\x65\144\151\162\x65\143\x74", $location, $code); $location = yourls_apply_filter("\162\x65\x64\x69\162\x65\143\x74\137\154\x6f\143\141\x74\x69\x6f\156", $location, $code); $code = yourls_apply_filter("\x72\145\144\151\162\x65\x63\x74\x5f\143\157\x64\x65", $code, $location); if (!headers_sent()) { yourls_status_header($code); header("\x4c\157\x63\141\x74\x69\x6f\x6e\72\40{$location}"); return 1; } if (php_sapi_name() !== "\x63\154\x69") { yourls_redirect_javascript($location); return 2; } return 3; } goto zwL9u; ZAju4: function yourls_get_protocol_slashes_and_rest($url, $array = array("\160\x72\x6f\164\x6f\143\157\154", "\163\154\x61\163\x68\x65\163", "\x72\x65\x73\x74")) { $proto = yourls_get_protocol($url); if (!$proto or count($array) != 3) { return false; } list($null, $rest) = explode($proto, $url, 2); list($proto, $slashes) = explode("\x3a", $proto); return array($array[0] => $proto . "\72", $array[1] => $slashes, $array[2] => $rest); } goto kLqaB; GG6gY: function yourls_get_HTTP_status($code) { $code = intval($code); $headers_desc = array(100 => "\103\157\x6e\x74\x69\x6e\165\145", 101 => "\x53\x77\151\164\x63\x68\151\156\x67\40\x50\x72\157\164\x6f\x63\x6f\x6c\x73", 102 => "\120\162\157\143\145\x73\x73\x69\156\x67", 200 => "\x4f\x4b", 201 => "\103\162\x65\x61\164\145\x64", 202 => "\101\143\143\145\x70\x74\145\144", 203 => "\116\157\156\55\x41\x75\164\x68\x6f\162\x69\164\141\x74\151\166\145\x20\x49\156\146\157\162\x6d\x61\x74\151\x6f\x6e", 204 => "\x4e\x6f\x20\x43\157\x6e\x74\145\x6e\x74", 205 => "\x52\x65\x73\145\x74\40\x43\x6f\156\164\x65\156\164", 206 => "\120\x61\x72\164\x69\141\154\x20\103\157\156\x74\x65\x6e\x74", 207 => "\115\165\154\164\151\55\123\164\141\x74\165\x73", 226 => "\x49\x4d\40\x55\x73\x65\x64", 300 => "\x4d\165\154\x74\x69\x70\x6c\145\40\103\x68\157\151\x63\145\163", 301 => "\115\157\166\145\x64\40\120\145\x72\x6d\x61\156\145\156\x74\x6c\x79", 302 => "\x46\x6f\x75\x6e\144", 303 => "\x53\x65\145\x20\117\164\x68\x65\162", 304 => "\x4e\157\164\x20\115\x6f\144\151\x66\151\x65\144", 305 => "\x55\163\145\40\x50\x72\x6f\x78\x79", 306 => "\122\x65\163\x65\x72\x76\145\x64", 307 => "\124\x65\155\x70\x6f\162\141\x72\171\40\122\x65\144\151\162\x65\143\164", 400 => "\102\x61\x64\40\122\x65\x71\x75\145\x73\x74", 401 => "\125\x6e\141\165\164\150\x6f\162\x69\172\x65\x64", 402 => "\120\141\171\x6d\145\156\x74\x20\x52\x65\x71\165\x69\x72\x65\144", 403 => "\x46\x6f\x72\142\x69\144\144\145\x6e", 404 => "\116\157\x74\40\106\157\165\156\144", 405 => "\115\x65\x74\150\x6f\x64\x20\116\x6f\x74\40\x41\154\x6c\x6f\167\x65\x64", 406 => "\x4e\157\164\x20\x41\143\143\145\160\x74\x61\x62\154\145", 407 => "\x50\162\x6f\x78\x79\x20\101\x75\164\x68\145\x6e\x74\151\x63\141\x74\x69\157\x6e\40\122\x65\161\x75\151\162\145\144", 408 => "\122\x65\161\x75\145\163\x74\40\124\x69\x6d\x65\x6f\x75\164", 409 => "\103\x6f\156\146\x6c\151\143\x74", 410 => "\107\157\156\x65", 411 => "\114\x65\156\147\x74\x68\x20\122\145\161\x75\151\162\145\x64", 412 => "\120\x72\x65\143\x6f\x6e\144\151\164\151\157\x6e\40\x46\141\x69\x6c\x65\144", 413 => "\122\145\x71\x75\x65\163\164\40\105\156\x74\x69\x74\x79\40\124\157\157\40\x4c\x61\162\x67\x65", 414 => "\122\145\161\x75\x65\x73\164\55\125\122\111\x20\124\x6f\x6f\x20\x4c\157\x6e\147", 415 => "\x55\156\x73\x75\160\160\x6f\162\x74\x65\x64\40\115\145\144\x69\x61\x20\x54\x79\x70\x65", 416 => "\122\x65\x71\x75\x65\163\x74\x65\x64\40\x52\x61\x6e\147\x65\x20\x4e\x6f\164\40\x53\x61\164\x69\x73\x66\x69\x61\x62\154\145", 417 => "\x45\170\160\145\x63\164\141\x74\x69\157\156\x20\106\x61\151\154\x65\x64", 422 => "\125\156\x70\162\157\x63\x65\x73\x73\x61\142\154\145\40\x45\x6e\x74\151\164\171", 423 => "\x4c\x6f\143\153\x65\x64", 424 => "\x46\141\x69\x6c\145\x64\x20\104\145\160\x65\x6e\x64\145\156\143\171", 426 => "\x55\160\x67\x72\x61\144\145\x20\122\145\x71\x75\x69\x72\x65\144", 500 => "\x49\156\164\145\x72\156\141\154\40\123\x65\162\166\145\162\40\105\162\x72\157\x72", 501 => "\116\x6f\x74\x20\111\x6d\x70\154\145\155\x65\x6e\x74\x65\144", 502 => "\x42\x61\144\x20\x47\141\x74\145\167\141\x79", 503 => "\x53\x65\162\x76\x69\x63\145\x20\x55\x6e\x61\166\x61\151\154\141\x62\154\x65", 504 => "\x47\141\164\x65\167\141\x79\x20\124\151\155\145\x6f\x75\164", 505 => "\110\x54\x54\x50\x20\x56\145\162\x73\x69\157\x6e\x20\116\157\x74\40\123\165\160\160\157\x72\164\145\x64", 506 => "\126\x61\162\151\x61\156\164\40\x41\x6c\x73\157\40\x4e\145\x67\x6f\164\x69\141\x74\x65\x73", 507 => "\x49\x6e\x73\x75\146\146\151\143\x69\x65\156\x74\40\x53\x74\157\162\x61\147\145", 510 => "\x4e\157\164\x20\x45\x78\x74\145\156\144\145\x64"); return $headers_desc[$code] ?? ''; } goto E746l; l6d3U: function yourls_rnd_string($length = 5, $type = 0, $charlist = '') { $length = intval($length); switch ($type) { case "\61": $possible = "\62\x33\x34\x35\66\67\x38\x39\x62\x63\x64\x66\147\150\x6a\153\155\156\x70\x71\x72\163\164\166\x77\170\171\172"; break; case "\x32": $possible = "\62\x33\x34\65\x36\67\70\x39\142\143\144\146\147\150\x6a\x6b\x6d\156\x70\161\162\x73\x74\166\x77\170\x79\x7a\x42\x43\x44\x46\107\x48\112\x4b\x4d\116\120\x51\x52\x53\x54\x56\127\130\x59\132"; break; case "\x33": $possible = "\141\x62\x63\144\145\146\147\150\x69\152\x6b\154\155\x6e\157\x70\x71\x72\x73\164\x75\166\167\x78\x79\172"; break; case "\x34": $possible = "\x61\x62\143\x64\x65\146\x67\x68\x69\152\153\x6c\155\156\157\x70\x71\x72\x73\x74\x75\166\167\170\171\172\x41\102\103\x44\105\106\107\110\111\112\113\x4c\x4d\116\x4f\120\121\122\x53\x54\x55\126\x57\130\x59\132"; break; case "\65": $possible = "\x30\x31\62\x33\64\65\x36\x37\x38\71\141\142\x63\144\x65\146\x67\150\151\152\153\x6c\x6d\x6e\157\160\161\x72\163\164\x75\x76\x77\170\x79\x7a"; break; case "\x36": $possible = "\x30\61\62\63\x34\65\66\x37\70\x39\x61\x62\143\x64\x65\146\x67\x68\x69\152\153\x6c\155\156\157\160\161\x72\x73\x74\165\x76\x77\x78\x79\172\x41\102\x43\x44\x45\x46\x47\x48\111\112\x4b\114\x4d\116\x4f\120\121\122\123\x54\x55\126\127\x58\x59\x5a"; break; default: case "\60": $possible = $charlist ? $charlist : yourls_get_shorturl_charset(); break; } $str = substr(str_shuffle($possible), 0, $length); return yourls_apply_filter("\x72\156\144\x5f\x73\x74\162\151\156\147", $str, $length, $type, $charlist); } goto cMnzQ; p8XEU: function yourls_get_current_version_from_sql() { $currentver = yourls_get_option("\166\x65\x72\x73\x69\x6f\156"); $currentsql = yourls_get_option("\x64\142\137\166\145\162\163\x69\157\156"); if (!$currentver) { $currentver = "\61\56\63"; } if (!$currentsql) { $currentsql = "\x31\60\x30"; } return array($currentver, $currentsql); } goto A1TzY; nTcSw: function yourls_tell_if_new_version() { yourls_debug_log("\x43\x68\145\x63\153\x20\146\157\162\x20\x6e\145\167\40\x76\x65\x72\163\151\157\156\x3a\x20" . (yourls_maybe_check_core_version() ? "\171\x65\163" : "\156\157")); yourls_new_core_version_notice(YOURLS_VERSION); } goto EvwX5; JqSSb: function yourls_is_installing() { return (bool) yourls_apply_filter("\151\x73\x5f\x69\x6e\163\164\141\154\154\151\156\147", defined("\x59\117\125\x52\114\x53\137\x49\116\x53\x54\101\x4c\114\111\116\x47") && YOURLS_INSTALLING); } goto SS0a9; zxEHM: function yourls_get_next_decimal() { return (int) yourls_apply_filter("\x67\x65\x74\x5f\156\145\x78\x74\x5f\144\x65\143\x69\155\x61\x6c", (int) yourls_get_option("\156\x65\170\x74\137\151\x64")); } goto Aq3pS; uR67_: function yourls_status_header($code = 200) { yourls_do_action("\x73\x74\141\164\165\x73\137\x68\145\141\144\145\162", $code); if (headers_sent()) { return false; } $protocol = $_SERVER["\123\x45\122\126\105\x52\137\x50\x52\x4f\x54\x4f\103\117\x4c"]; if ("\x48\x54\124\120\x2f\x31\x2e\x31" != $protocol && "\110\x54\124\120\57\61\x2e\x30" != $protocol) { $protocol = "\x48\x54\x54\120\x2f\x31\56\60"; } $code = intval($code); $desc = yourls_get_HTTP_status($code); @header("{$protocol}\40{$code}\40{$desc}"); return true; } goto iiosD; tBdrA: function yourls_set_installed($bool) { yourls_get_db()->set_installed($bool); } goto l6d3U; RZcV4: function yourls_get_IP() { $ip = ''; $headers = array("\130\55\x46\x6f\x72\x77\141\162\144\x65\x64\x2d\106\157\x72", "\110\x54\x54\120\x5f\x58\x5f\x46\117\x52\127\x41\x52\x44\105\x44\x5f\106\117\x52", "\x48\124\x54\120\x5f\x43\114\111\105\x4e\x54\137\111\120", "\110\124\x54\x50\x5f\x56\111\101", "\122\x45\x4d\117\124\105\x5f\x41\104\104\122"); foreach ($headers as $header) { if (!empty($_SERVER[$header])) { $ip = $_SERVER[$header]; break; } } if (strpos($ip, "\x2c") !== false) { $ip = substr($ip, 0, strpos($ip, "\x2c")); } return (string) yourls_apply_filter("\x67\145\x74\137\x49\x50", yourls_sanitize_ip($ip)); } goto zxEHM; EvwX5: function yourls_include_file_sandbox($file) { try { if (is_readable($file)) { include_once $file; yourls_debug_log("\154\x6f\141\144\145\144\x20{$file}"); return true; } } catch (\Throwable $e) { yourls_debug_log("\x63\x6f\165\x6c\144\40\156\157\x74\x20\x6c\157\x61\144\x20{$file}"); return sprintf("\45\163\x20\x28\x25\163\x20\x3a\x20\45\163\51", $e->getMessage(), $e->getFile(), $e->getLine()); } }
Function Calls
None |
Stats
MD5 | cd152ba36a0a51564d2327f1930d05ba |
Eval Count | 0 |
Decode Time | 108 ms |