REDROOM
PHP 8.0.30
Path:
Logout
Edit File
Size: 1.34 KB
Close
/home/certprox/zang.certproxywizard.com/wp/wp-content/plugins/fluentform/app/ComposerScript.php
Text
Base64
<?php namespace FluentForm\App; use Composer\Script\Event; use InvalidArgumentException; use RecursiveIteratorIterator; use RecursiveDirectoryIterator; class ComposerScript { public static function postInstall(Event $event) { static::postUpdate($event); } public static function postUpdate(Event $event) { $vendorDir = $event->getComposer()->getConfig()->get('vendor-dir'); $composerJson = json_decode(file_get_contents($vendorDir . '/../composer.json'), true); $namespace = $composerJson['extra']['wpfluent']['namespace']['current']; if (!$namespace) { throw new InvalidArgumentException("Namespace not set in composer.json file."); } $itr = new RecursiveIteratorIterator(new RecursiveDirectoryIterator( $vendorDir.'/wpfluent/framework/src/', RecursiveDirectoryIterator::SKIP_DOTS ), RecursiveIteratorIterator::SELF_FIRST); foreach ($itr as $file) { if ($file->isDir()) { continue; } $fileName = $file->getPathname(); $content = file_get_contents($fileName); $content = str_replace( 'WPFluent\\', $namespace . '\\Framework\\', $content ); file_put_contents($fileName, $content); } } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 8 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Api
DIR
-
drwxr-xr-x
2026-03-30 10:23:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Helpers
DIR
-
drwxr-xr-x
2026-03-30 10:23:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Hooks
DIR
-
drwxr-xr-x
2026-03-30 10:23:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Http
DIR
-
drwxr-xr-x
2026-03-30 10:23:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Models
DIR
-
drwxr-xr-x
2026-03-30 10:23:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Modules
DIR
-
drwxr-xr-x
2026-03-30 10:23:21
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Services
DIR
-
drwxr-xr-x
2026-03-30 10:23:23
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Views
DIR
-
drwxr-xr-x
2026-03-30 10:23:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
App.php
132 B
lrw-r--r--
2026-03-30 10:23:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ComposerScript.php
1.34 KB
lrw-r--r--
2026-03-30 10:23:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.php
26 B
lrw-r--r--
2026-03-30 10:23:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).