�PNG  IHDR��;���IDATx��ܻn�0���K�� �)(�pA��� ���7�LeG{�� �§㻢|��ذaÆ 6lذaÆ 6lذaÆ 6lom��$^�y���ذag�5bÆ 6lذaÆ 6lذa{���� 6lذaÆ �`����}H�Fkm�,�m����Ӫ���ô�ô!� �x�|'ܢ˟;�E:���9�&ᶒ�}�{�v]�n&�6� �h��_��t�ڠ͵-ҫ���Z;��Z$�.�P���k�ž)�!��o���>}l�eQfJ�T��u і���چ��\��X=8��Rن4`Vw�l�>����n�G�^��i�s��"ms�$�u��i��?w�bs[m�6�K4���O���.�4��%����/����b�C%��t ��M�ז� �-l�G6�mrz2���s�%�9��s@���-�k�9�=���)������k�B5����\��+͂�Zsٲ ��Rn��~G���R���C����� �wIcI��n7jJ���hۛNCS|���j0��8y�iHKֶۛ�k�Ɉ+;Sz������L/��F�*\��Ԕ�#"5��m�2��[S��������=�g��n�a�P�e�ғ�L�� lذaÆ 6l�^k��̱aÆ 6lذaÆ 6lذa;���� �_��ذaÆ 6lذaÆ 6lذaÆ ���R���IEND�B` #!/usr/local/cpanel/3rdparty/bin/perl package scripts::whmlogin; # cpanel - scripts/whmlogin Copyright 2022 cPanel L.L.C. # 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 Cpanel::SafeRun::Object (); use Cpanel::JSON (); exit( __PACKAGE__->run(@ARGV) ) unless caller(); sub run { my ( $self, @args ) = @_; unless ( $> == 0 || $< == 0 ) { print "You must run this program as the root user.\n"; return 1; } my $nowait; if (@args) { my $help = grep( m/help/, @args ) ? 1 : 0; my $msg = < 300 ) { print STDERR "\nGiving up on waiting.\n"; unlink $wait_file or print STDERR "Could not remove $wait_file: $!"; last; } } print STDERR "\n\n"; } my $run = Cpanel::SafeRun::Object->new_or_die( 'program' => '/usr/local/cpanel/bin/whmapi1', 'args' => [ '--output=json', 'create_user_session', 'user=root', 'service=whostmgrd' ] ); my $json = $run->stdout(); my $out = Cpanel::JSON::Load($json); if ( !$out->{'metadata'}{'result'} ) { die "whmapi1 create_user_session failed: $out->{'metadata'}{'reason'}" } print $out->{data}{url} . "\n"; return 0; }