type==='php') { echo '
'; highlight_string($file->content); echo '
'; } elseif(in_array($file->type,array('txt','js','css','sql'))) { echo '
'; echo nl2br($file->content); echo '
'; } else echo '
Preview is not available for this file type.
'; ?>