REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.87 KB
Close
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/unyson/uninstall.php
Text
Base64
<?php if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) die('Forbidden'); /** * Remove all plugin and extensions data * Search in all extensions and include the uninstall.php file * * WARNING! * The uninstall.php file must not contain: * <?php if ( !defined( 'FW' ) ) die('Forbidden'); * because the framework is not loaded at this point, use: * <?php if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) die('Forbidden'); */ function _include_file_isolated($path) { include $path; } class FW_Plugin_Uninstall { /** * All extensions with uninstall.php * @var array */ private $extensions = array(); public function __construct() { $this->read_extensions( dirname(__FILE__) .'/framework/extensions', $this->extensions ); { /** @var wpdb $wpdb */ global $wpdb; $this->uninstall(); if ( is_multisite() ) { // http://wordpress.stackexchange.com/a/80351/60424 $original_blog_id = get_current_blog_id(); foreach ( $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" ) as $blog_id ) { switch_to_blog( $blog_id ); $this->uninstall(); } switch_to_blog( $original_blog_id ); } } } private function read_extensions($dir, &$extensions) { $ext_dirs = glob($dir .'/*', GLOB_ONLYDIR); if (empty($ext_dirs)) { return; } foreach ($ext_dirs as $ext_dir) { if ( file_exists($ext_dir .'/manifest.php') && file_exists($ext_dir .'/uninstall.php') ) { $extensions[ basename($ext_dir) ] = $ext_dir .'/uninstall.php'; } $this->read_extensions($ext_dir .'/extensions', $extensions); } } private function uninstall() { // Remove framework data { // ... } // Remove extensions data foreach ($this->extensions as $uninstall_file) { _include_file_isolated($uninstall_file); } } } new FW_Plugin_Uninstall();
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
framework
DIR
-
drwxr-xr-x
2026-02-23 02:01:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
.htaccess
205 B
lr--r--r--
2026-02-23 02:01:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README.md
17 B
lrw-r--r--
2025-04-07 05:23:45
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
readme.txt
19.83 KB
lrw-r--r--
2025-04-07 05:23:45
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
uninstall.php
1.87 KB
lrw-r--r--
2025-04-07 05:23:45
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
unyson.php
4.91 KB
lrw-r--r--
2025-04-07 05:23:45
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).