<?php
if(isset($_REQUEST['report'])) {
if(preg_match('/^[a-zA-Z0-9\-_\.]*$/', $_REQUEST['report'])) {
if(is_file('/var/cpanel/addons/accountdnscheck/reports/' . $_REQUEST['report'])) {
ob_clean();
flush();
readfile('/var/cpanel/addons/accountdnscheck/reports/' . $_REQUEST['report']);
}
}
}