// Begin Download Credit System
$extension = strtolower(file_extension($attachmentinfo['filename'])); switch($extension) { case 'gif': case 'jpg': case 'jpeg': case 'jpe': case 'png': case 'bmp': $vboptions['credit_mode']=0; $cmpt++; break; }