File: //etc/cPMalScan/modsec_files.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;
}