function d3download_ratefile_check( $mydirname ) { require_once dirname( dirname(__FILE__) ).'/class/rate_download.php' ; $rate_download = new rate_download( $mydirname, 'Rate' ) ; $lid = intval( $_GET['lid'] ) ; if( ! empty( $lid ) ) { $check_result = $rate_download->Ratefile_check( $lid ) ; echo ( ! empty( $check_result ) ) ? str_replace( '<br />', '', $check_result ) : '' ; } }