PNG  IHDR* pHYs+ IDATx]n#; cdLb Ǚ[at¤_:uP}>!Usă cag޿ ֵNu`ݼTâabO7uL&y^wFٝA"l[|ŲHLN밪4*sG3|Dv}?+y߉{OuOAt4Jj.u]Gz*҉sP'VQKbA1u\`& Af;HWj hsO;ogTu uj7S3/QzUr&wS`M$X_L7r2;aE+ώ%vikDA:dR+%KzƉo>eOth$z%: :{WwaQ:wz%4foɹE[9<]#ERINƻv溂E%P1i01 |Jvҗ&{b?9g=^wζXn/lK::90KwrюO\!ջ3uzuGv^;騢wq<Iatv09:tt~hEG`v;3@MNZD.1]L:{ծI3`L(÷ba")Y.iljCɄae#I"1 `3*Bdz>j<fU40⨬%O$3cGt]j%Fߠ_twJ;ABU8vP3uEԑwQ V:h%))LfraqX-ۿX]v-\9I gl8tzX ]ecm)-cgʒ#Uw=Wlێn(0hPP/ӨtQ“&J35 $=]r1{tLuǮ*i0_;NƝ8;-vݏr8+U-kruȕYr0RnC]*ެ(M:]gE;{]tg(#ZJ9y>utRDRMdr9㪩̞zֹb<ģ&wzJM"iI( .ꮅX)Qw:9,i좜\Ԛi7&N0:asϓc];=ΗOӣ APqz93 y $)A*kVHZwBƺnWNaby>XMN*45~ղM6Nvm;A=jֲ.~1}(9`KJ/V F9[=`~[;sRuk]rєT!)iQO)Y$V ی ۤmzWz5IM Zb )ˆC`6 rRa}qNmUfDsWuˤV{ Pݝ'=Kֳbg,UҘVz2ﴻnjNgBb{? ߮tcsͻQuxVCIY۠:(V뺕 ٥2;t`@Fo{Z9`;]wMzU~%UA蛚dI vGq\r82iu +St`cR.6U/M9IENDB` REDROOM
PHP 5.6.40
Preview: checkconfdutil.pm Size: 2.54 KB
//proc/thread-self/root/usr/share/lve/modlscapi/utils/checkconfdutil.pm

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

# Copyright (c) Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2018 All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

BEGIN { unshift @INC, '/usr/local/cpanel', '/scripts'; }

my $pckg_name = 'Cpanel';
use strict;

eval "use " .$pckg_name . "::CPAN::Hash::Merge          ();";
if ($@){
    $pckg_name = 'cPScript';
    eval "use " .$pckg_name . "::CPAN::Hash::Merge       ();";
}

use strict;
use warnings;

#eval "use " .$pckg_name . "::CPAN::Hash::Merge              ();";
eval "use  " .$pckg_name . "::DataStore          ();";


no warnings 'uninitialized';

my $main_conf_ref = Cpanel::DataStore::fetch_ref('/var/cpanel/conf/apache/main');
my $ref_type=ref($main_conf_ref->{'main'}{'include'}{'items'});

my $etalon_ref={"main"=>{"include"=>{"directive"=>"include","items"=>[{include=>"\"/usr/local/apache/conf/conf.d/*\""}]}}};

if ($ref_type eq 'ARRAY'){
    my $res=$main_conf_ref->{'main'}{'include'}{'items'};
    my $find=0;
    my $empty_find=0;
    for(my $index=0;$index<@$res;$index++)
    {
       my $item_ref=@$res[$index];
       if ( !defined($item_ref->{'include'})) {
            $empty_find = 1;
       } else { 
           if ( index($item_ref->{'include'},"/usr/local/apache/conf/conf.d/*.conf")!=-1 ){
    	       $find=1;
           }
       }
    }
    if ( $find==0 ){
	for(my $index=0;$index<@$res;$index++)
	{
    	    my $item_ref=@$res[$index];
    	    if ( index($item_ref->{'include'},"/usr/local/apache/conf/conf.d/*")!=-1 ){
    		delete @$res[$index];
    	    }
	}
	push(@$res,{ "include"=>"\"/usr/local/apache/conf/conf.d/*.conf\"" });
	Cpanel::DataStore::store_ref( '/var/cpanel/conf/apache/main', $main_conf_ref );
    }
    if( $empty_find==1 ) {
	@$res = grep { defined $_ } @$res;
	Cpanel::DataStore::store_ref( '/var/cpanel/conf/apache/main', $main_conf_ref );
    }
} else {
    $main_conf_ref->{'main'} = Cpanel::CPAN::Hash::Merge::merge($main_conf_ref->{'main'}, $etalon_ref->{'main'});
    Cpanel::DataStore::store_ref( '/var/cpanel/conf/apache/main', $main_conf_ref );
}

















Directory Contents

Dirs: 0 × Files: 10

Name Size Perms Modified Actions
2.54 KB lrwxr-xr-x 2026-01-21 23:14:30
Edit Download
1.93 KB lrwxr-xr-x 2026-01-21 23:14:30
Edit Download
4.47 KB lrwxr-xr-x 2026-01-21 23:14:30
Edit Download
984 B lrwxr-xr-x 2026-01-21 23:14:30
Edit Download
3.50 KB lrwxr-xr-x 2026-01-21 23:14:30
Edit Download
2.82 KB lrwxr-xr-x 2026-01-21 23:14:30
Edit Download
1.26 KB lrwxr-xr-x 2026-01-21 23:14:30
Edit Download
1.35 KB lrwxr-xr-x 2026-01-21 23:14:30
Edit Download
2.53 KB lrwxr-xr-x 2026-01-21 23:14:30
Edit Download
1.04 KB lrwxr-xr-x 2026-01-21 23:14:30
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).
© 2026 REDROOM — Secure File Manager. All rights reserved. Built with ❤️ & Red Dark UI