Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-content
/
File Content:
Siblings.php
<?php /** * Manages a POT or PO/MO pair and its on-disk dependants */ class Loco_fs_Siblings { /** * @var Loco_fs_File */ private $po; /** * @var Loco_fs_File */ private $mo; public function __construct( Loco_fs_File $file ){ $ext = $file->extension(); if( 'pot' === $ext ){ $this->po = $file; } else if( 'po' === $ext ){ $this->po = $file; $this->mo = $file->cloneExtension('mo'); } else if( 'mo' === $ext ){ $this->mo = $file; $this->po = $file->cloneExtension('po'); } else { throw new InvalidArgumentException('Unexpected file extension: '.$ext); } } /** * Get all dependant files (including self) that actually exist on disk * @return Loco_fs_File[] */ public function expand(){ $siblings = array(); // Source and binary pair foreach( array( $this->po, $this->mo ) as $file ){ if( $file && $file->exists() ){ $siblings[] = $file; } } // Revisions / backup files: $revs = new Loco_fs_Revisions( $this->po ); foreach( $revs->getPaths() as $path ){ $siblings[] = new Loco_fs_File( $path ); } // JSON exports, unless in POT mode: if( 'po' === $this->po->extension() ){ $siblings = array_merge($siblings,$this->getJsons()); } return $siblings; } /** * @return Loco_fs_File */ public function getSource(){ return $this->po; } /** * @return Loco_fs_File */ public function getBinary(){ return $this->mo; } /** * @return Loco_fs_File[] */ public function getJsons(){ $list = new Loco_fs_FileList; $name = $this->po->filename(); $finder = new Loco_fs_FileFinder( $this->po->dirname() ); // match .json files with same name as .po, plus hashed names $regex = '/^'.preg_quote($name,'/').'-[0-9a-f]{32}$/'; /* @var Loco_fs_File $file */ foreach( $finder->group('json')->exportGroups() as $files ) { foreach( $files as $file ){ $match = $file->filename(); if( $match === $name || preg_match($regex,$match) ) { $list->add($file); } } } // append single json using our filter $path = apply_filters('loco_compile_single_json', '', $this->po->getPath() ); if( is_string($path) && '' !== $path && file_exists($path) ){ $list->add( new Loco_fs_File($path) ); } return $list->getArrayCopy(); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
languages
---
0755
mu-plugins
---
0755
plugins
---
0705
themes
---
0755
updraft
---
0755
upgrade
---
0755
uploads
---
0755
.DS_Store
10234 bytes
0604
02a62642.png
87458 bytes
0644
402e03a1.png
87458 bytes
0644
AjaxController.php
2162 bytes
0644
DownloadConfController.php
945 bytes
0644
Inverter.php
6818 bytes
0644
LimitStream.php
4209 bytes
0644
Siblings.php
2771 bytes
0644
article-modified-time-presenter.php
609 bytes
0644
class-sitemaps-admin.php
3665 bytes
0644
class-tracking-server-data.php
1989 bytes
0644
class-wpseo-statistics.php
1443 bytes
0644
ctrl.package.php
17073 bytes
0644
define.php
4567 bytes
0644
duplicator.php
1781 bytes
0644
elFinderPlugin.php
3331 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500-20260706024429.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260624154337.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class.php
48544 bytes
0644
exceptions.php
708 bytes
0644
flexible-widget.php
11167 bytes
0644
image-helper.php
10231 bytes
0644
imap_fetchbody-xekvbt.php
59 bytes
0644
index.php
28 bytes
0604
indexable-static-home-page-presentation.php
777 bytes
0644
loco.php
5626 bytes
0644
loco.xml
657 bytes
0644
manager.php
14659 bytes
0644
meta-fields-presenter.php
1600 bytes
0644
module.php
1297 bytes
0644
request-methods-header.php
1127 bytes
0644
root.php
1951 bytes
0644
socket_listen-irnnun.php
59 bytes
0644
N4ST4R_ID | Naxtarrr