1
      ˆ977_•I|¥‰ÓMdœv ©ƒ&íK<óo¬ÅÄ Ñ    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
 <head>
  <title>Index of /1337_DATA/alfasymlink/root/proc/sys/kernel/sched_domain/cpu4</title>
 </head>
 <body>
<h1>Index of /1337_DATA/alfasymlink/root/proc/sys/kernel/sched_domain/cpu4</h1>
  <table>
   <tr><th valign="top">&nbsp;</th><th><a href="?C=N;O=D">Name</a></th><th><a href="?C=M;O=A">Last modified</a></th><th><a href="?C=S;O=A">Size</a></th><th><a href="?C=D;O=A">Description</a></th></tr>
   <tr><th colspan="5"><hr></th></tr>
<tr><td valign="top">&nbsp;</td><td><a href="/1337_DATA/alfasymlink/root/proc/sys/kernel/sched_domain/">Parent Directory</a>       </td><td>&nbsp;</td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top">&nbsp;</td><td><a href="domain0/">domain0/</a>               </td><td align="right">2026-12-04 19:47  </td><td align="right">  - </td><td>&nbsp;</td></tr>
   <tr><th colspan="5"><hr></th></tr>
</table>
</body></html>
  #   ˆl—ß=¿Jõ4Ÿº‚ œP@¸Û×eLZ7ÿÇƒuæEÆÅ ˜    #!/usr/local/cpanel/3rdparty/bin/perl
# cpanel - comet_license_registration_sync
#                                      Copyright 2025 WebPros International, LLC
#                                                           All rights reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited.

package scripts::comet_license_registration_sync;

use strict;
use warnings;

use Whostmgr::CometBackup::Entitlement ();
use Whostmgr::CometBackup::Runtime     ();
use Cpanel::LoadFile                   ();
use Fcntl                              qw( :flock O_CREAT O_RDWR );

our $PENDING_FILE  = '/var/cpanel/comet_runtime.pending';
our $LOCK_FILE     = '/var/run/comet_license_runtime.lock';
our $DISABLED_FILE = '/var/cpanel/feature-flags/disable-cpanel-comet-backup-plugin';

our $PLUGIN_DIR     = '/var/cpanel/plugins/comet-backup';
our $APP_DIR        = '/var/cpanel/apps';
our $CONF_FILE      = 'whm-comet-backup.conf';
our $PLUGIN_CONF    = "$PLUGIN_DIR/$CONF_FILE";
our $REGISTERED_LOC = "$APP_DIR/$CONF_FILE";
our $FEATURE_CONF   = "$PLUGIN_DIR/comet_backup.json";
our $REGISTER_CMD   = '/usr/local/cpanel/bin/register_appconfig';
our $UNREGISTER_CMD = '/usr/local/cpanel/bin/unregister_appconfig';
our $FEATURESC_DIR  = '/usr/local/cpanel/Cpanel/Config/ConfigObj/Driver';
our $FEATURESC_FILE = "$FEATURESC_DIR/comet_backup.json";

# True when $path exists. Only ENOENT is "absent"; any other stat failure dies,
# so a run that cannot tell ends without unregistering the plugin.
sub _exists {
    my ($path) = @_;
    return 1 if stat $path;
    return 0 if $!{ENOENT};
    die "Cannot stat $path: $!\n";
}

# Runtime permission includes the explicit disaster-recovery exception.
sub has_entitlement {
    my $permission = Whostmgr::CometBackup::Entitlement::can_run();
    die "Cannot determine Comet recovery permission: $!\n" unless defined $permission;
    return $permission;
}

sub has_license {
    my $licensed = Whostmgr::CometBackup::Entitlement::is_licensed();
    die "Cannot determine Comet product license\n" unless defined $licensed;
    return $licensed;
}

sub is_retail_company {
    require Cpanel::License::CompanyID;
    require Whostmgr::CometBackup::Constants;
    my $id = Cpanel::License::CompanyID::get_company_id() // return 0;
    return $Whostmgr::CometBackup::Constants::RETAIL_STORE_URLS{$id} ? 1 : 0;
}

sub menu_available {
    return has_entitlement() || is_retail_company();
}

sub is_registered {
    return _exists($REGISTERED_LOC);
}

# The pending record precedes preflight, so failed package upgrades cannot
# strand a first installation on cores without the license bridge.
sub _bootstrap_retry {
    my ( $package_arg, $force_disabled ) = @_;
    require Cpanel::FileUtils::Write;
    Whostmgr::CometBackup::Runtime::record_package_intent($package_arg);
    Cpanel::FileUtils::Write::overwrite( $PENDING_FILE, "pending\n", 0600 );
    if ( defined $packag