File manager - Edit - /usr/local/cpanel/whostmgr/docroot/cgi/api_shell/index.cgi
Back
#!/usr/local/cpanel/3rdparty/bin/perl # Copyright 2026 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 Cpanel::App (); use Cpanel::Template (); use Cpanel::Config::LoadCpConf (); use Whostmgr::ACLS (); Whostmgr::ACLS::init_acls(); Cpanel::App::set_appname('whostmgrd'); print "Content-type: text/html\r\n\r\n"; my $cpconf_ref = Cpanel::Config::LoadCpConf::loadcpconf(); #This is redundent since we are validating ACLS elsewhere as well if ( !Whostmgr::ACLS::hasroot() || !$cpconf_ref->{'api_shell'} ) { print "Access Denied\n"; exit; } Cpanel::Template::process_template( 'whostmgr', { 'template_file' => 'api_shell.tmpl', }, );
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings