Here is the list of the most complex expressions used in the code. A complex expression is an expression that requires more than 20 tokens to be build.
Literal arrays are omitted.
File | Count | Expression |
---|---|---|
/includes/functions-html.php:644 | 1 | yourls_apply_filter('table_head_cells', array('shorturl' => yourls__('Short URL'), 'longurl' => yourls__('Original URL'), 'date' => yourls__('Date'), 'ip' => yourls__('IP'), 'clicks' => yourls__('Clicks'), 'actions' => yourls__('Actions'))) |
/includes/functions-html.php:538 | 1 | $actions = array('stats' => array('href' => $statlink, 'id' => "statlink-$id", 'title' => yourls_esc_attr__('Stats'), 'anchor' => yourls__('Stats'), ), 'share' => array('href' => '', 'id' => "share-button-$id", 'title' => yourls_esc_attr__('Share'), 'anchor' => yourls__('Share'), 'onclick' => "toggle_share('$id');return false;", ), 'edit' => array('href' => $edit_link, 'id' => "edit-button-$id", 'title' => yourls_esc_attr__('Edit'), 'anchor' => yourls__('Edit'), 'onclick' => "edit_link_display('$id');return false;", ), 'delete' => array('href' => $delete_link, 'id' => "delete-button-$id", 'title' => yourls_esc_attr__('Delete'), 'anchor' => yourls__('Delete'), 'onclick' => "remove_link('$id');return false;", )) |
/includes/functions-html.php:587 | 1 | $cells = array('keyword' => array('template' => '<a href="%shorturl%">%keyword_html%</a>', 'shorturl' => yourls_esc_url($shorturl), 'keyword_html' => yourls_esc_html($keyword), ), 'url' => array('template' => '<a href="%long_url%" title="%title_attr%">%title_html%</a><br/><small>%warning%<a href="%long_url%">%long_url_html%</a></small>', 'long_url' => yourls_esc_url($url), 'title_attr' => yourls_esc_attr($title), 'title_html' => yourls_esc_html(yourls_trim_long_string($title)), 'long_url_html' => yourls_esc_html(yourls_trim_long_string(urldecode($url))), 'warning' => $protocol_warning, ), 'timestamp' => array('template' => '<span class="timestamp" aria-hidden="true">%timestamp%</span> %date%', 'timestamp' => $timestamp, 'date' => yourls_date_i18n(yourls_get_datetime_format('M d, Y H:i'), yourls_get_timestamp($timestamp)), ), 'ip' => array('template' => '%ip%', 'ip' => $ip, ), 'clicks' => array('template' => '%clicks%', 'clicks' => yourls_number_format_i18n($clicks, 0, '', ''), ), 'actions' => array('template' => '%actions% <input type="hidden" id="keyword_%id%" value="%keyword%"/>', 'actions' => $action_links, 'id' => $id, 'keyword' => $keyword, ), ) |
/includes/functions-html.php:644 | 1 | $cells = yourls_apply_filter('table_head_cells', array('shorturl' => yourls__('Short URL'), 'longurl' => yourls__('Original URL'), 'date' => yourls__('Date'), 'ip' => yourls__('IP'), 'clicks' => yourls__('Clicks'), 'actions' => yourls__('Actions'))) |
/includes/vendor/rmccue/requests/library/Requests.php:503 | 1 | $defaults = array('timeout' => 10, 'connect_timeout' => 10, 'useragent' => 'php-requests/' . self::VERSION, 'protocol_version' => 1.1, 'redirected' => 0, 'redirects' => 10, 'follow_redirects' => true, 'blocking' => true, 'type' => self::GET, 'filename' => false, 'auth' => false, 'proxy' => false, 'cookies' => false, 'max_bytes' => false, 'idn' => true, 'hooks' => null, 'transport' => null, 'verify' => Requests::get_certificate_path( ), 'verifyname' => true, ) |
/includes/functions-http.php:288 | 1 | $stuff = array('md5' => md5(YOURLS_SITE . YOURLS_ABSPATH), 'failed_attempts' => $checks->failed_attempts, 'yourls_site' => defined('YOURLS_SITE') ? yourls_get_yourls_site( ) : 'unknown', 'yourls_version' => defined('YOURLS_VERSION') ? YOURLS_VERSION : 'unknown', 'php_version' => PHP_VERSION, 'mysql_version' => yourls_get_db( )->mysql_version( ), 'locale' => yourls_get_locale( ), 'db_driver' => defined('YOURLS_DB_DRIVER') ? YOURLS_DB_DRIVER : 'unset', 'db_ext_pdo' => extension_loaded('PDO') ? 1 : 0, 'db_ext_mysql' => extension_loaded('mysql') ? 1 : 0, 'db_ext_mysqli' => extension_loaded('mysqli') ? 1 : 0, 'ext_curl' => extension_loaded('curl') ? 1 : 0, 'num_users' => count($yourls_user_passwords), 'config_location' => $conf_loc, 'yourls_private' => defined('YOURLS_PRIVATE') && YOURLS_PRIVATE ? 1 : 0, 'yourls_unique' => defined('YOURLS_UNIQUE_URLS') && YOURLS_UNIQUE_URLS ? 1 : 0, 'yourls_url_convert' => defined('YOURLS_URL_CONVERT') ? YOURLS_URL_CONVERT : 'unknown', 'num_active_plugins' => yourls_has_active_plugins( ), 'num_pages' => defined('YOURLS_PAGEDIR') ? count((array) glob(YOURLS_PAGEDIR . '/*.php')) : 0, ) |
/includes/functions-shorturls.php:552 | 1 | $return = array('statusCode' => 200, 'message' => 'success', 'link' => array('shorturl' => yourls_link($res->keyword), 'url' => $res->url, 'title' => $res->title, 'timestamp' => $res->timestamp, 'ip' => $res->ip, 'clicks' => $res->clicks, )) |
/includes/functions-html.php:250 | 1 | $_options = array('keyword' => yourls__('Short URL'), 'url' => yourls__('URL'), 'title' => yourls__('Title'), 'timestamp' => yourls__('Date'), 'ip' => yourls__('IP'), 'clicks' => yourls__('Clicks'), ) |
/includes/functions-html.php:504 | 1 | $return = <<<RETURN <tr id="edit-$id" class="edit-row"><td colspan="5" class="edit-row"><strong>%s</strong>:<input type="text" id="edit-url-$id" name="edit-url-$id" value="$safe_url" class="text" size="70" /><br/><strong>%s</strong>: $www<input type="text" id="edit-keyword-$id" name="edit-keyword-$id" value="$safe_keyword" class="text" size="10" /><br/><strong>%s</strong>: <input type="text" id="edit-title-$id" name="edit-title-$id" value="$safe_title" class="text" size="60" /></td><td colspan="1"><input type="button" id="edit-submit-$id" name="edit-submit-$id" value="%s" title="%s" class="button" onclick="edit_link_save('$id');" /> <input type="button" id="edit-close-$id" name="edit-close-$id" value="%s" title="%s" class="button" onclick="edit_link_hide('$id');" /><input type="hidden" id="old_keyword_$id" value="$safe_keyword"/><input type="hidden" id="nonce_$id" value="$nonce"/></td></tr> RETURN |
/includes/vendor/symfony/polyfill-mbstring/Mbstring.php:798 | 1 | $c = (($m[$i++] - 0xF0) << 18) + (($m[$i++] - 0x80) << 12) + (($m[$i++] - 0x80) << 6) + $m[$i++] - 0x80 |
/admin/index.php:327 | 1 | $params = array('search' => $search, 'search_text' => $search_text, 'search_in' => $search_in, 'sort_by' => $sort_by, 'sort_order' => $sort_order, 'page' => $page, 'perpage' => $perpage, 'click_filter' => $click_filter, 'click_limit' => $click_limit, 'total_pages' => $total_pages, 'date_filter' => $date_filter, 'date_first' => $date_first, 'date_second' => $date_second, ) |
/includes/vendor/rmccue/requests/library/Requests/IRI.php:736 | 1 | $return = $this->set_scheme($parsed['scheme']) && $this->set_authority($parsed['authority']) && $this->set_path($parsed['path']) && $this->set_query($parsed['query']) && $this->set_fragment($parsed['fragment']) |
/includes/vendor/symfony/polyfill-php72/Php72.php:182 | 2 | $s = \chr(0xF0 | $code >> 18) . \chr(0x80 | $code >> 12 & 0x3F) . \chr(0x80 | $code >> 6 & 0x3F) . \chr(0x80 | $code & 0x3F) |
/includes/vendor/symfony/polyfill-mbstring/Mbstring.php:671 | 1 | $info = array('internal_encoding' => self::$internalEncoding, 'http_output' => 'pass', 'http_output_conv_mimetypes' => '^(text/|application/xhtml\+xml)', 'func_overload' => 0, 'func_overload_list' => 'no overload', 'mail_charset' => 'UTF-8', 'mail_header_encoding' => 'BASE64', 'mail_body_encoding' => 'BASE64', 'illegal_chars' => 0, 'encoding_translation' => 'Off', 'language' => self::$language, 'detect_order' => self::$encodingList, 'substitute_character' => 'none', 'strict_detection' => 'Off', ) |
/includes/vendor/symfony/polyfill-mbstring/Mbstring.php:740 | 2 | $s = \chr(0xF0 | $code >> 18) . \chr(0x80 | $code >> 12 & 0x3F) . \chr(0x80 | $code >> 6 & 0x3F) . \chr(0x80 | $code & 0x3F) |
/includes/functions-formatting.php:664 | 1 | $result = strtr(rawurlencode($result), array('%3B' => ';', '%2C' => ',', '%2F' => '/', '%3F' => '?', '%3A' => ':', '%40' => '@', '%26' => '&', '%3D' => '=', '%2B' => '+', '%24' => '$', '%21' => '!', '%2A' => '*', '%27' => '\'', '%28' => '(', '%29' => ')', '%23' => '#', )) |
/includes/functions.php:442 | 1 | $binds = ['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), ] |
/includes/functions.php:141 | 1 | $return['links']['link_' . $i++] = ['shorturl' => yourls_link($res->keyword), 'url' => $res->url, 'title' => $res->title, 'timestamp' => $res->timestamp, 'ip' => $res->ip, 'clicks' => $res->clicks, ] |
/includes/functions-http.php:406 | 1 | if(!empty($checks->last_result) AND (($checks->failed_attempts == 0 && ((time( ) - $checks->last_attempt) < 24 * 3600)) OR ($checks->failed_attempts > 0 && ((time( ) - $checks->last_attempt) < 2 * 3600))) AND ($checks->version_checked == YOURLS_VERSION)) /**/ |
/includes/vendor/composer/ca-bundle/src/CaBundle.php:279 | 1 | if(count($output) === 3 && $output[0] === sprintf('string(%d) "%s"', strlen(PHP_VERSION), PHP_VERSION) && $output[1] === 'string(27) "stefan.esser@sektioneins.de"' && $output[2] === 'int(-1)' && preg_match('{openssl_x509_parse\(\): illegal (?:ASN1 data type for|length in) timestamp in - on line \d+}', $errorOutput)) { /**/ } |
/includes/vendor/rmccue/requests/library/Requests/IRI.php:689 | 1 | if($this->ipath !== '' && ($isauthority && $this->ipath[0] !== '/' || ($this->scheme === null && !$isauthority && strpos($this->ipath, ':') !== false && (strpos($this->ipath, '/') === false ? true : strpos($this->ipath, ':') < strpos($this->ipath, '/'))))) { /**/ } |
/includes/vendor/rmccue/requests/library/Requests/IRI.php:613 | 1 | if(!$valid || $length > 1 && $character <= 0x7F || $length > 2 && $character <= 0x7FF || $length > 3 && $character <= 0xFFFF || $character < 0x2D || $character > 0xEFFFD || ($character & 0xFFFE) === 0xFFFE || $character >= 0xFDD0 && $character <= 0xFDEF || $character === 0x2F || $character > 0x39 && $character < 0x41 || $character > 0x5A && $character < 0x61 || $character > 0x7A && $character < 0x7E || $character > 0x7E && $character < 0xA0 || $character > 0xD7FF && $character < 0xF900) { /**/ } else { /**/ } |
/includes/vendor/rmccue/requests/library/Requests/IRI.php:493 | 1 | if(!$valid || $length > 1 && $character <= 0x7F || $length > 2 && $character <= 0x7FF || $length > 3 && $character <= 0xFFFF || ($character & 0xFFFE) === 0xFFFE || $character >= 0xFDD0 && $character <= 0xFDEF || ($character > 0xD7FF && $character < 0xF900 || $character < 0xA0 || $character > 0xEFFFD) && (!$iprivate || $character < 0xE000 || $character > 0x10FFFD)) { /**/ } |
/includes/vendor/rmccue/requests/library/Requests/IDNAEncoder.php:193 | 1 | if($length > 1 && $character <= 0x7F || $length > 2 && $character <= 0x7FF || $length > 3 && $character <= 0xFFFF || ($character & 0xFFFE) === 0xFFFE || $character >= 0xFDD0 && $character <= 0xFDEF || ($character > 0xD7FF && $character < 0xF900 || $character < 0x20 || $character > 0x7E && $character < 0xA0 || $character > 0xEFFFD)) { /**/ } |