e); } /** * * @param string $file * @return int */ public function atime($file) { return @fileatime($file); } /** * * @param string $file * @return int */ public function mtime($file) { return @filemtime($file); } /** * * @param string $file * @return int */ public function size($file) { return @filesize($file); } /** * * @param string $file * @param int $time * @param int $atime * @return bool */ public function touch($file, $time = 0, $atime = 0) { if ($time == 0) $time = time(); if ($atime == 0) $atime = time(); return @touch($file, $time, $atime); } /** * * @param string $path * @param mixed $chmod * @param mixed $chown * @param mixed $chgrp * @return bool */ public function mkdir($path, $chmod = false, $chown = false, $chgrp = false) { // Safe mode fails with a trailing slash under certain PHP versions. $path = untrailingslashit($path); if ( empty($path) ) return false; if ( ! $chmod ) $chmod = FS_CHMOD_DIR; if ( ! @mkdir($path) ) return false; $this->chmod($path, $chmod); if ( $chown ) $this->chown($path, $chown); if ( $chgrp ) $this->chgrp($path, $chgrp); return true; } /** * * @param string $path * @param bool $recursive * @return bool */ public function rmdir($path, $recursive = false) { return $this->delete($path, $recursive); } /** * * @param string $path * @param bool $include_hidden * @param bool $recursive * @return bool|array */ public function dirlist($path, $include_hidden = true, $recursive = false) { if ( $this->is_file($path) ) { $limit_file = basename($path); $path = dirname($path); } else { $limit_file = false; } if ( ! $this->is_dir($path) ) return false; $dir = @dir($path); if ( ! $dir ) return false; $ret = array(); while (false !== ($entry = $dir->read()) ) { $struc = array(); $struc['name'] = $entry; if ( '.' == $struc['name'] || '..' == $struc['name'] ) continue; if ( ! $include_hidden && '.' == $struc['name'][0] ) continue; if ( $limit_file && $struc['name'] != $limit_file) continue; $struc['perms'] = $this->gethchmod($path.'/'.$entry); $struc['permsn'] = $this->getnumchmodfromh($struc['perms']); $struc['number'] = false; $struc['owner'] = $this->owner($path.'/'.$entry); $struc['group'] = $this->group($path.'/'.$entry); $struc['size'] = $this->size($path.'/'.$entry); $struc['lastmodunix']= $this->mtime($path.'/'.$entry); $struc['lastmod'] = date('M j',$struc['lastmodunix']); $struc['time'] = date('h:i:s',$struc['lastmodunix']); $struc['type'] = $this->is_dir($path.'/'.$entry) ? 'd' : 'f'; if ( 'd' == $struc['type'] ) { if ( $recursive ) $struc['files'] = $this->dirlist($path . '/' . $struc['name'], $include_hidden, $recursive); else $struc['files'] = array(); } $ret[ $struc['name'] ] = $struc; } $dir->close(); unset($dir); return $ret; } }
Fatal error: Uncaught Error: Class 'WP_Filesystem_direct' not found in /home/forge/bluntforcetruth.com/public/wp-admin/includes/file.php:1494 Stack trace: #0 /home/forge/bluntforcetruth.com/public/wp-content/plugins/wp-simple-firewall/src/common/icwp-wpfilesystem.php(484): WP_Filesystem() #1 /home/forge/bluntforcetruth.com/public/wp-content/plugins/wp-simple-firewall/src/common/icwp-wpfilesystem.php(473): ICWP_WPSF_WpFilesystem->initFileSystem() #2 /home/forge/bluntforcetruth.com/public/wp-content/plugins/wp-simple-firewall/src/common/icwp-wpfilesystem.php(47): ICWP_WPSF_WpFilesystem->getWpfs() #3 /home/forge/bluntforcetruth.com/public/wp-content/plugins/wp-simple-firewall/src/common/icwp-wpfilesystem.php(285): ICWP_WPSF_WpFilesystem->exists('/home/forge/blu...') #4 /home/forge/bluntforcetruth.com/public/wp-content/plugins/wp-simple-firewall/src/common/icwp-wpfilesystem.php(267): ICWP_WPSF_WpFilesystem->getTime('/home/forge/blu...', 'modified') #5 /home/forge/bluntforcetruth.com/public/wp-content/plugins/wp-simple-firewal in /home/forge/bluntforcetruth.com/public/wp-admin/includes/file.php on line 1494