File manager - Edit - /usr/local/cpanel/install/DeprecateSitePublisher.pm
Back
package Install::DeprecateSitePublisher; # cpanel - install/DeprecateSitePublisher.pm # 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 use strict; use warnings; use parent qw( Cpanel::Task ); use Cpanel::ServerTasks (); our $VERSION = '1.0'; =head1 DESCRIPTION Remove the deprecated Site Publisher templates pkg =over 1 =item Type: Sanity =item Frequency: once =item EOL: never Need to remove this pkg as Site Publisher is deprecated, and users should no longer be able to create new sites with it. =back =cut exit __PACKAGE__->runtask() unless caller; sub new { my $proto = shift; my $self = $proto->SUPER::new; $self->set_internal_name('deprecate_site_publisher'); return $self; } sub perform { my $self = shift; my $status = 1; $self->do_once( version => '134-deprecate_site_publisher', eol => 'never', code => sub { $status = $self->_remove_site_publisher_templates(); } ); return $status; } sub _remove_site_publisher_templates { return Cpanel::ServerTasks::queue_task( ['PluginTasks'], 'uninstall_plugin cpanel-site-publisher-templates' ); } 1;
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings