File manager - Edit - /usr/local/cpanel/whostmgr/docroot/cgi/monitoring/whm-360-monitoring.cgi
Back
#!/usr/local/cpanel/3rdparty/bin/perl # cpanel - whostmgr/docroot/cgi/monitoring/whm-360-monitoring.cgi # Copyright 2023 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 cPstrict; use Cpanel::App (); use Cpanel::Template (); use Cpanel::Config::LoadCpConf (); use Whostmgr::ACLS (); Whostmgr::ACLS::init_acls(); $Cpanel::App::appname = 'whostmgr'; my $cpconf_ref = Cpanel::Config::LoadCpConf::loadcpconf(); #This is redundent since we are validating ACLS elsewhere as well if ( !Whostmgr::ACLS::hasroot() ) { print "HTTP/1.0 403 Access Denied\r\nContent-type: text/plain; charset=\"utf-8\"\r\n\r\n"; print "Access Denied\n"; exit; } my $DEFAULT_PAGE = 'index.html'; my $ALLOWED_PAGES = { 'index.html' => 'spa/index.html.tt', '200.html' => 'spa/200.html.tt', '400.html' => 'spa/400.html.tt', }; my $QUERY_STRING = $ENV{QUERY_STRING}; my $PAGE_REQUESTED = $ALLOWED_PAGES->{$QUERY_STRING} || $ALLOWED_PAGES->{$DEFAULT_PAGE}; print "Content-type: text/html\r\n\r\n"; Cpanel::Template::process_template( 'whostmgr', { 'template_file' => "monitoring/$PAGE_REQUESTED", }, );
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.05 |
proxy
|
phpinfo
|
Settings