Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-content
/
plugins
/
redirection
/
File Content:
json.php
<?php class Red_Json_File extends Red_FileIO { public function force_download() { parent::force_download(); header( 'Content-Type: application/json' ); header( 'Content-Disposition: attachment; filename="' . $this->export_filename( 'json' ) . '"' ); } public function get_data( array $items, array $groups ) { $version = red_get_plugin_data( dirname( dirname( __FILE__ ) ) . '/redirection.php' ); $items = array( 'plugin' => array( 'version' => trim( $version['Version'] ), 'date' => date( 'r' ), ), 'groups' => $groups, 'redirects' => array_map( function( $item ) { return $item->to_json(); }, $items ), ); return wp_json_encode( $items, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES ) . PHP_EOL; } public function load( $group, $filename, $data ) { global $wpdb; $count = 0; $json = @json_decode( $data, true ); if ( $json === false ) { return 0; } // Import groups $groups = array(); $group_map = array(); if ( isset( $json['groups'] ) ) { foreach ( $json['groups'] as $group ) { $old_group_id = $group['id']; unset( $group['id'] ); $group = Red_Group::create( $group['name'], $group['module_id'], $group['enabled'] ? true : false ); if ( $group ) { $group_map[ $old_group_id ] = $group->get_id(); } } } unset( $json['groups'] ); // Import redirects if ( isset( $json['redirects'] ) ) { foreach ( $json['redirects'] as $pos => $redirect ) { unset( $redirect['id'] ); if ( ! isset( $group_map[ $redirect['group_id'] ] ) ) { $new_group = Red_Group::create( 'Group', 1 ); $group_map[ $redirect['group_id'] ] = $new_group->get_id(); } if ( $redirect['match_type'] === 'url' && isset( $redirect['action_data'] ) && ! is_array( $redirect['action_data'] ) ) { $redirect['action_data'] = array( 'url' => $redirect['action_data'] ); } $redirect['group_id'] = $group_map[ $redirect['group_id'] ]; Red_Item::create( $redirect ); $count++; // Helps reduce memory usage unset( $json['redirects'][ $pos ] ); $wpdb->queries = array(); $wpdb->num_queries = 0; } } return $count; } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
actions
---
0755
fileio
---
0755
images
---
0755
locale
---
0755
matches
---
0755
models
---
0755
DownloadConfController.php
945 bytes
0644
README.md
2555 bytes
0644
SyncOptions.php
2310 bytes
0644
class.constants.php
150 bytes
0644
class.godaddy.host.php
714 bytes
0644
class.pack.database.php
30838 bytes
0644
class.password.php
6377 bytes
0644
class.web.services-20260623184852.php
7748 bytes
0644
class.web.services.php
7748 bytes
0644
ctrl.package.php
17073 bytes
0644
define-20260705153844.php
4567 bytes
0644
define.php
4567 bytes
0644
duplicator.php
1781 bytes
0644
elFinderPlugin.php
3331 bytes
0644
elFinderSession-20260624054021.php
8764 bytes
0644
elFinderSession.php
8764 bytes
0644
elFinderVolumeDropbox.class-20260706204611.php
41782 bytes
0644
elFinderVolumeDropbox.class.php
41782 bytes
0644
elFinderVolumeLocalFileSystem.class.php
48544 bytes
0644
exceptions.php
708 bytes
0644
index.php
157663 bytes
0644
json.php
2164 bytes
0644
license.txt
35147 bytes
0644
manager-20260705105121.php
14659 bytes
0644
manager.php
14659 bytes
0644
module-20260705133847.php
1297 bytes
0644
module.php
1297 bytes
0644
readme.txt
29032 bytes
0644
redirection.js
724034 bytes
0644
uninstall.php
4401 bytes
0644
N4ST4R_ID | Naxtarrr