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/wp-inclu.../sodium_c.../src
File: File.php
* @param resource $ifp
[1500] Fix | Delete
* @param string $tag
[1501] Fix | Delete
* @param int $mlen
[1502] Fix | Delete
* @return bool
[1503] Fix | Delete
* @throws SodiumException
[1504] Fix | Delete
* @throws TypeError
[1505] Fix | Delete
*/
[1506] Fix | Delete
protected static function onetimeauth_verify_core32(
[1507] Fix | Delete
ParagonIE_Sodium_Core32_Poly1305_State $state,
[1508] Fix | Delete
$ifp,
[1509] Fix | Delete
$tag = '',
[1510] Fix | Delete
$mlen = 0
[1511] Fix | Delete
) {
[1512] Fix | Delete
/** @var int $pos */
[1513] Fix | Delete
$pos = self::ftell($ifp);
[1514] Fix | Delete
[1515] Fix | Delete
while ($mlen > 0) {
[1516] Fix | Delete
$blockSize = $mlen > self::BUFFER_SIZE
[1517] Fix | Delete
? self::BUFFER_SIZE
[1518] Fix | Delete
: $mlen;
[1519] Fix | Delete
$ciphertext = fread($ifp, $blockSize);
[1520] Fix | Delete
if (!is_string($ciphertext)) {
[1521] Fix | Delete
throw new SodiumException('Could not read input file');
[1522] Fix | Delete
}
[1523] Fix | Delete
$state->update($ciphertext);
[1524] Fix | Delete
$mlen -= $blockSize;
[1525] Fix | Delete
}
[1526] Fix | Delete
$res = ParagonIE_Sodium_Core32_Util::verify_16($tag, $state->finish());
[1527] Fix | Delete
[1528] Fix | Delete
fseek($ifp, $pos, SEEK_SET);
[1529] Fix | Delete
return $res;
[1530] Fix | Delete
}
[1531] Fix | Delete
[1532] Fix | Delete
/**
[1533] Fix | Delete
* @param resource $resource
[1534] Fix | Delete
* @return int
[1535] Fix | Delete
* @throws SodiumException
[1536] Fix | Delete
*/
[1537] Fix | Delete
private static function ftell($resource)
[1538] Fix | Delete
{
[1539] Fix | Delete
$return = ftell($resource);
[1540] Fix | Delete
if (!is_int($return)) {
[1541] Fix | Delete
throw new SodiumException('ftell() returned false');
[1542] Fix | Delete
}
[1543] Fix | Delete
return (int) $return;
[1544] Fix | Delete
}
[1545] Fix | Delete
}
[1546] Fix | Delete
[1547] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function