0, AND
// - The file is present in the DOWNLOAD directory, AND EITHER
// - No expiry date is enforced (maxdays == 0), OR
// - The expiry date is not reached
if ( ($downloads['download_count'] > 0) && (file_exists(DIR_FS_DOWNLOAD . $downloads['orders_products_filename'])) && ( ($downloads['download_maxdays'] == 0) || ($download_timestamp > time())) ) {
echo ' ' . $downloads['products_name'] . ' | ' . "\n";
} else {
echo ' ' . $downloads['products_name'] . ' | ' . "\n";
}
?>
' . TABLE_HEADING_DOWNLOAD_DATE . tep_date_long($download_expiry) . '' . "\n" .
' ' . $downloads['download_count'] . TABLE_HEADING_DOWNLOAD_COUNT . ' | ' . "\n" .
'
' . "\n";
}
?>