MOON
Server: Apache
System: Linux srvsg2.lunchactually.com 3.10.0-957.27.2.el7.x86_64 #1 SMP Mon Jul 29 17:46:05 UTC 2019 x86_64
User: matchmakinginsti (1004)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: //etc/cPMalScan/scan_all_accounts_debug.php
#!/usr/local/cpanel/3rdparty/bin/php
<?php

$whm_script_file_name = basename(__FILE__);

if(version_compare(PHP_VERSION, '7.1.0', '>=') && file_exists(dirname(__FILE__).'/php71/'.$whm_script_file_name)){
        include_once(dirname(__FILE__).'/php71/'.$whm_script_file_name);
}elseif(version_compare(PHP_VERSION, '5.6.0', '>=') && file_exists(dirname(__FILE__).'/php56/'.$whm_script_file_name)){
        include_once(dirname(__FILE__).'/php56/'.$whm_script_file_name);
}else{
        echo "Unsupported PHP Version ".PHP_VERSION;
}