Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/wpforms-.../vendor/symfony/polyfill...
File: Mbstring.php
return iconv_strpos($haystack, $needle, $offset, $encoding);
[500] Fix | Delete
}
[501] Fix | Delete
[502] Fix | Delete
public static function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null)
[503] Fix | Delete
{
[504] Fix | Delete
$encoding = self::getEncoding($encoding);
[505] Fix | Delete
if ('CP850' === $encoding || 'ASCII' === $encoding) {
[506] Fix | Delete
return strrpos($haystack, $needle, $offset);
[507] Fix | Delete
}
[508] Fix | Delete
[509] Fix | Delete
if ($offset != (int) $offset) {
[510] Fix | Delete
$offset = 0;
[511] Fix | Delete
} elseif ($offset = (int) $offset) {
[512] Fix | Delete
if ($offset < 0) {
[513] Fix | Delete
if (0 > $offset += self::mb_strlen($needle)) {
[514] Fix | Delete
$haystack = self::mb_substr($haystack, 0, $offset, $encoding);
[515] Fix | Delete
}
[516] Fix | Delete
$offset = 0;
[517] Fix | Delete
} else {
[518] Fix | Delete
$haystack = self::mb_substr($haystack, $offset, 2147483647, $encoding);
[519] Fix | Delete
}
[520] Fix | Delete
}
[521] Fix | Delete
[522] Fix | Delete
$pos = iconv_strrpos($haystack, $needle, $encoding);
[523] Fix | Delete
[524] Fix | Delete
return false !== $pos ? $offset + $pos : false;
[525] Fix | Delete
}
[526] Fix | Delete
[527] Fix | Delete
public static function mb_str_split($string, $split_length = 1, $encoding = null)
[528] Fix | Delete
{
[529] Fix | Delete
if (null !== $string && !\is_scalar($string) && !(\is_object($string) && \method_exists($string, '__toString'))) {
[530] Fix | Delete
trigger_error('mb_str_split() expects parameter 1 to be string, '.\gettype($string).' given', E_USER_WARNING);
[531] Fix | Delete
[532] Fix | Delete
return null;
[533] Fix | Delete
}
[534] Fix | Delete
[535] Fix | Delete
if (1 > $split_length = (int) $split_length) {
[536] Fix | Delete
trigger_error('The length of each segment must be greater than zero', E_USER_WARNING);
[537] Fix | Delete
[538] Fix | Delete
return false;
[539] Fix | Delete
}
[540] Fix | Delete
[541] Fix | Delete
if (null === $encoding) {
[542] Fix | Delete
$encoding = mb_internal_encoding();
[543] Fix | Delete
}
[544] Fix | Delete
[545] Fix | Delete
if ('UTF-8' === $encoding = self::getEncoding($encoding)) {
[546] Fix | Delete
$rx = '/(';
[547] Fix | Delete
while (65535 < $split_length) {
[548] Fix | Delete
$rx .= '.{65535}';
[549] Fix | Delete
$split_length -= 65535;
[550] Fix | Delete
}
[551] Fix | Delete
$rx .= '.{'.$split_length.'})/us';
[552] Fix | Delete
[553] Fix | Delete
return preg_split($rx, $string, null, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
[554] Fix | Delete
}
[555] Fix | Delete
[556] Fix | Delete
$result = array();
[557] Fix | Delete
$length = mb_strlen($string, $encoding);
[558] Fix | Delete
[559] Fix | Delete
for ($i = 0; $i < $length; $i += $split_length) {
[560] Fix | Delete
$result[] = mb_substr($string, $i, $split_length, $encoding);
[561] Fix | Delete
}
[562] Fix | Delete
[563] Fix | Delete
return $result;
[564] Fix | Delete
}
[565] Fix | Delete
[566] Fix | Delete
public static function mb_strtolower($s, $encoding = null)
[567] Fix | Delete
{
[568] Fix | Delete
return self::mb_convert_case($s, MB_CASE_LOWER, $encoding);
[569] Fix | Delete
}
[570] Fix | Delete
[571] Fix | Delete
public static function mb_strtoupper($s, $encoding = null)
[572] Fix | Delete
{
[573] Fix | Delete
return self::mb_convert_case($s, MB_CASE_UPPER, $encoding);
[574] Fix | Delete
}
[575] Fix | Delete
[576] Fix | Delete
public static function mb_substitute_character($c = null)
[577] Fix | Delete
{
[578] Fix | Delete
if (0 === strcasecmp($c, 'none')) {
[579] Fix | Delete
return true;
[580] Fix | Delete
}
[581] Fix | Delete
[582] Fix | Delete
return null !== $c ? false : 'none';
[583] Fix | Delete
}
[584] Fix | Delete
[585] Fix | Delete
public static function mb_substr($s, $start, $length = null, $encoding = null)
[586] Fix | Delete
{
[587] Fix | Delete
$encoding = self::getEncoding($encoding);
[588] Fix | Delete
if ('CP850' === $encoding || 'ASCII' === $encoding) {
[589] Fix | Delete
return (string) substr($s, $start, null === $length ? 2147483647 : $length);
[590] Fix | Delete
}
[591] Fix | Delete
[592] Fix | Delete
if ($start < 0) {
[593] Fix | Delete
$start = iconv_strlen($s, $encoding) + $start;
[594] Fix | Delete
if ($start < 0) {
[595] Fix | Delete
$start = 0;
[596] Fix | Delete
}
[597] Fix | Delete
}
[598] Fix | Delete
[599] Fix | Delete
if (null === $length) {
[600] Fix | Delete
$length = 2147483647;
[601] Fix | Delete
} elseif ($length < 0) {
[602] Fix | Delete
$length = iconv_strlen($s, $encoding) + $length - $start;
[603] Fix | Delete
if ($length < 0) {
[604] Fix | Delete
return '';
[605] Fix | Delete
}
[606] Fix | Delete
}
[607] Fix | Delete
[608] Fix | Delete
return (string) iconv_substr($s, $start, $length, $encoding);
[609] Fix | Delete
}
[610] Fix | Delete
[611] Fix | Delete
public static function mb_stripos($haystack, $needle, $offset = 0, $encoding = null)
[612] Fix | Delete
{
[613] Fix | Delete
$haystack = self::mb_convert_case($haystack, self::MB_CASE_FOLD, $encoding);
[614] Fix | Delete
$needle = self::mb_convert_case($needle, self::MB_CASE_FOLD, $encoding);
[615] Fix | Delete
[616] Fix | Delete
return self::mb_strpos($haystack, $needle, $offset, $encoding);
[617] Fix | Delete
}
[618] Fix | Delete
[619] Fix | Delete
public static function mb_stristr($haystack, $needle, $part = false, $encoding = null)
[620] Fix | Delete
{
[621] Fix | Delete
$pos = self::mb_stripos($haystack, $needle, 0, $encoding);
[622] Fix | Delete
[623] Fix | Delete
return self::getSubpart($pos, $part, $haystack, $encoding);
[624] Fix | Delete
}
[625] Fix | Delete
[626] Fix | Delete
public static function mb_strrchr($haystack, $needle, $part = false, $encoding = null)
[627] Fix | Delete
{
[628] Fix | Delete
$encoding = self::getEncoding($encoding);
[629] Fix | Delete
if ('CP850' === $encoding || 'ASCII' === $encoding) {
[630] Fix | Delete
$pos = strrpos($haystack, $needle);
[631] Fix | Delete
} else {
[632] Fix | Delete
$needle = self::mb_substr($needle, 0, 1, $encoding);
[633] Fix | Delete
$pos = iconv_strrpos($haystack, $needle, $encoding);
[634] Fix | Delete
}
[635] Fix | Delete
[636] Fix | Delete
return self::getSubpart($pos, $part, $haystack, $encoding);
[637] Fix | Delete
}
[638] Fix | Delete
[639] Fix | Delete
public static function mb_strrichr($haystack, $needle, $part = false, $encoding = null)
[640] Fix | Delete
{
[641] Fix | Delete
$needle = self::mb_substr($needle, 0, 1, $encoding);
[642] Fix | Delete
$pos = self::mb_strripos($haystack, $needle, $encoding);
[643] Fix | Delete
[644] Fix | Delete
return self::getSubpart($pos, $part, $haystack, $encoding);
[645] Fix | Delete
}
[646] Fix | Delete
[647] Fix | Delete
public static function mb_strripos($haystack, $needle, $offset = 0, $encoding = null)
[648] Fix | Delete
{
[649] Fix | Delete
$haystack = self::mb_convert_case($haystack, self::MB_CASE_FOLD, $encoding);
[650] Fix | Delete
$needle = self::mb_convert_case($needle, self::MB_CASE_FOLD, $encoding);
[651] Fix | Delete
[652] Fix | Delete
return self::mb_strrpos($haystack, $needle, $offset, $encoding);
[653] Fix | Delete
}
[654] Fix | Delete
[655] Fix | Delete
public static function mb_strstr($haystack, $needle, $part = false, $encoding = null)
[656] Fix | Delete
{
[657] Fix | Delete
$pos = strpos($haystack, $needle);
[658] Fix | Delete
if (false === $pos) {
[659] Fix | Delete
return false;
[660] Fix | Delete
}
[661] Fix | Delete
if ($part) {
[662] Fix | Delete
return substr($haystack, 0, $pos);
[663] Fix | Delete
}
[664] Fix | Delete
[665] Fix | Delete
return substr($haystack, $pos);
[666] Fix | Delete
}
[667] Fix | Delete
[668] Fix | Delete
public static function mb_get_info($type = 'all')
[669] Fix | Delete
{
[670] Fix | Delete
$info = array(
[671] Fix | Delete
'internal_encoding' => self::$internalEncoding,
[672] Fix | Delete
'http_output' => 'pass',
[673] Fix | Delete
'http_output_conv_mimetypes' => '^(text/|application/xhtml\+xml)',
[674] Fix | Delete
'func_overload' => 0,
[675] Fix | Delete
'func_overload_list' => 'no overload',
[676] Fix | Delete
'mail_charset' => 'UTF-8',
[677] Fix | Delete
'mail_header_encoding' => 'BASE64',
[678] Fix | Delete
'mail_body_encoding' => 'BASE64',
[679] Fix | Delete
'illegal_chars' => 0,
[680] Fix | Delete
'encoding_translation' => 'Off',
[681] Fix | Delete
'language' => self::$language,
[682] Fix | Delete
'detect_order' => self::$encodingList,
[683] Fix | Delete
'substitute_character' => 'none',
[684] Fix | Delete
'strict_detection' => 'Off',
[685] Fix | Delete
);
[686] Fix | Delete
[687] Fix | Delete
if ('all' === $type) {
[688] Fix | Delete
return $info;
[689] Fix | Delete
}
[690] Fix | Delete
if (isset($info[$type])) {
[691] Fix | Delete
return $info[$type];
[692] Fix | Delete
}
[693] Fix | Delete
[694] Fix | Delete
return false;
[695] Fix | Delete
}
[696] Fix | Delete
[697] Fix | Delete
public static function mb_http_input($type = '')
[698] Fix | Delete
{
[699] Fix | Delete
return false;
[700] Fix | Delete
}
[701] Fix | Delete
[702] Fix | Delete
public static function mb_http_output($encoding = null)
[703] Fix | Delete
{
[704] Fix | Delete
return null !== $encoding ? 'pass' === $encoding : 'pass';
[705] Fix | Delete
}
[706] Fix | Delete
[707] Fix | Delete
public static function mb_strwidth($s, $encoding = null)
[708] Fix | Delete
{
[709] Fix | Delete
$encoding = self::getEncoding($encoding);
[710] Fix | Delete
[711] Fix | Delete
if ('UTF-8' !== $encoding) {
[712] Fix | Delete
$s = iconv($encoding, 'UTF-8//IGNORE', $s);
[713] Fix | Delete
}
[714] Fix | Delete
[715] Fix | Delete
$s = preg_replace('/[\x{1100}-\x{115F}\x{2329}\x{232A}\x{2E80}-\x{303E}\x{3040}-\x{A4CF}\x{AC00}-\x{D7A3}\x{F900}-\x{FAFF}\x{FE10}-\x{FE19}\x{FE30}-\x{FE6F}\x{FF00}-\x{FF60}\x{FFE0}-\x{FFE6}\x{20000}-\x{2FFFD}\x{30000}-\x{3FFFD}]/u', '', $s, -1, $wide);
[716] Fix | Delete
[717] Fix | Delete
return ($wide << 1) + iconv_strlen($s, 'UTF-8');
[718] Fix | Delete
}
[719] Fix | Delete
[720] Fix | Delete
public static function mb_substr_count($haystack, $needle, $encoding = null)
[721] Fix | Delete
{
[722] Fix | Delete
return substr_count($haystack, $needle);
[723] Fix | Delete
}
[724] Fix | Delete
[725] Fix | Delete
public static function mb_output_handler($contents, $status)
[726] Fix | Delete
{
[727] Fix | Delete
return $contents;
[728] Fix | Delete
}
[729] Fix | Delete
[730] Fix | Delete
public static function mb_chr($code, $encoding = null)
[731] Fix | Delete
{
[732] Fix | Delete
if (0x80 > $code %= 0x200000) {
[733] Fix | Delete
$s = \chr($code);
[734] Fix | Delete
} elseif (0x800 > $code) {
[735] Fix | Delete
$s = \chr(0xC0 | $code >> 6).\chr(0x80 | $code & 0x3F);
[736] Fix | Delete
} elseif (0x10000 > $code) {
[737] Fix | Delete
$s = \chr(0xE0 | $code >> 12).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F);
[738] Fix | Delete
} else {
[739] Fix | Delete
$s = \chr(0xF0 | $code >> 18).\chr(0x80 | $code >> 12 & 0x3F).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F);
[740] Fix | Delete
}
[741] Fix | Delete
[742] Fix | Delete
if ('UTF-8' !== $encoding = self::getEncoding($encoding)) {
[743] Fix | Delete
$s = mb_convert_encoding($s, $encoding, 'UTF-8');
[744] Fix | Delete
}
[745] Fix | Delete
[746] Fix | Delete
return $s;
[747] Fix | Delete
}
[748] Fix | Delete
[749] Fix | Delete
public static function mb_ord($s, $encoding = null)
[750] Fix | Delete
{
[751] Fix | Delete
if ('UTF-8' !== $encoding = self::getEncoding($encoding)) {
[752] Fix | Delete
$s = mb_convert_encoding($s, 'UTF-8', $encoding);
[753] Fix | Delete
}
[754] Fix | Delete
[755] Fix | Delete
if (1 === \strlen($s)) {
[756] Fix | Delete
return \ord($s);
[757] Fix | Delete
}
[758] Fix | Delete
[759] Fix | Delete
$code = ($s = unpack('C*', substr($s, 0, 4))) ? $s[1] : 0;
[760] Fix | Delete
if (0xF0 <= $code) {
[761] Fix | Delete
return (($code - 0xF0) << 18) + (($s[2] - 0x80) << 12) + (($s[3] - 0x80) << 6) + $s[4] - 0x80;
[762] Fix | Delete
}
[763] Fix | Delete
if (0xE0 <= $code) {
[764] Fix | Delete
return (($code - 0xE0) << 12) + (($s[2] - 0x80) << 6) + $s[3] - 0x80;
[765] Fix | Delete
}
[766] Fix | Delete
if (0xC0 <= $code) {
[767] Fix | Delete
return (($code - 0xC0) << 6) + $s[2] - 0x80;
[768] Fix | Delete
}
[769] Fix | Delete
[770] Fix | Delete
return $code;
[771] Fix | Delete
}
[772] Fix | Delete
[773] Fix | Delete
private static function getSubpart($pos, $part, $haystack, $encoding)
[774] Fix | Delete
{
[775] Fix | Delete
if (false === $pos) {
[776] Fix | Delete
return false;
[777] Fix | Delete
}
[778] Fix | Delete
if ($part) {
[779] Fix | Delete
return self::mb_substr($haystack, 0, $pos, $encoding);
[780] Fix | Delete
}
[781] Fix | Delete
[782] Fix | Delete
return self::mb_substr($haystack, $pos, null, $encoding);
[783] Fix | Delete
}
[784] Fix | Delete
[785] Fix | Delete
private static function html_encoding_callback(array $m)
[786] Fix | Delete
{
[787] Fix | Delete
$i = 1;
[788] Fix | Delete
$entities = '';
[789] Fix | Delete
$m = unpack('C*', htmlentities($m[0], ENT_COMPAT, 'UTF-8'));
[790] Fix | Delete
[791] Fix | Delete
while (isset($m[$i])) {
[792] Fix | Delete
if (0x80 > $m[$i]) {
[793] Fix | Delete
$entities .= \chr($m[$i++]);
[794] Fix | Delete
continue;
[795] Fix | Delete
}
[796] Fix | Delete
if (0xF0 <= $m[$i]) {
[797] Fix | Delete
$c = (($m[$i++] - 0xF0) << 18) + (($m[$i++] - 0x80) << 12) + (($m[$i++] - 0x80) << 6) + $m[$i++] - 0x80;
[798] Fix | Delete
} elseif (0xE0 <= $m[$i]) {
[799] Fix | Delete
$c = (($m[$i++] - 0xE0) << 12) + (($m[$i++] - 0x80) << 6) + $m[$i++] - 0x80;
[800] Fix | Delete
} else {
[801] Fix | Delete
$c = (($m[$i++] - 0xC0) << 6) + $m[$i++] - 0x80;
[802] Fix | Delete
}
[803] Fix | Delete
[804] Fix | Delete
$entities .= '&#'.$c.';';
[805] Fix | Delete
}
[806] Fix | Delete
[807] Fix | Delete
return $entities;
[808] Fix | Delete
}
[809] Fix | Delete
[810] Fix | Delete
private static function title_case(array $s)
[811] Fix | Delete
{
[812] Fix | Delete
return self::mb_convert_case($s[1], MB_CASE_UPPER, 'UTF-8').self::mb_convert_case($s[2], MB_CASE_LOWER, 'UTF-8');
[813] Fix | Delete
}
[814] Fix | Delete
[815] Fix | Delete
private static function getData($file)
[816] Fix | Delete
{
[817] Fix | Delete
if (file_exists($file = __DIR__.'/Resources/unidata/'.$file.'.php')) {
[818] Fix | Delete
return require $file;
[819] Fix | Delete
}
[820] Fix | Delete
[821] Fix | Delete
return false;
[822] Fix | Delete
}
[823] Fix | Delete
[824] Fix | Delete
private static function getEncoding($encoding)
[825] Fix | Delete
{
[826] Fix | Delete
if (null === $encoding) {
[827] Fix | Delete
return self::$internalEncoding;
[828] Fix | Delete
}
[829] Fix | Delete
[830] Fix | Delete
if ('UTF-8' === $encoding) {
[831] Fix | Delete
return 'UTF-8';
[832] Fix | Delete
}
[833] Fix | Delete
[834] Fix | Delete
$encoding = strtoupper($encoding);
[835] Fix | Delete
[836] Fix | Delete
if ('8BIT' === $encoding || 'BINARY' === $encoding) {
[837] Fix | Delete
return 'CP850';
[838] Fix | Delete
}
[839] Fix | Delete
[840] Fix | Delete
if ('UTF8' === $encoding) {
[841] Fix | Delete
return 'UTF-8';
[842] Fix | Delete
}
[843] Fix | Delete
[844] Fix | Delete
return $encoding;
[845] Fix | Delete
}
[846] Fix | Delete
}
[847] Fix | Delete
[848] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function