Viewing File: /usr/local/cpanel/whostmgr/docroot/cgi/cwaf_cwatch.cgi

#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}; else exec /usr/bin/perl -x $0 ${1+"$@"}; fi;'
  if 0;
  
  
#!/usr/bin/perl -w
#ACLS:all
use lib '/usr/local/cpanel', '/usr/local/cpanel/whostmgr/docroot/cgi';

## load Comodo modules
BEGIN { require '/etc/cwaf/use_lib.pl' if -f '/etc/cwaf/use_lib.pl'; }
use Comodo::CWAF::Main;

require "/usr/local/cpanel/whostmgr/cgi/cwaf_sharedlib.pl";

use lib '/usr/local/cpanel';
use Whostmgr::ACLS			();

# get permissions
Whostmgr::ACLS::init_acls();
eval ('use Cpanel::Rlimit			();');
unless ($@) {Cpanel::Rlimit::set_rlimit_to_infinity()}

use strict;
no warnings "once";
no warnings "redefine";

our (%conf, %msconf, $pr_name);

#redefine log function
$pr_name = get_name();
local *do_log = \&do_log_stderr;
open(LOGFILE, ">&STDERR");

##################################### BEGIN ##################################

&print_cwatch_main();

####################################### END ######################################
Back to Directory File Manager