1
0

Added new (clean) yii boilerplate

This commit is contained in:
2014-05-13 12:40:42 +02:00
parent 1d6d975a16
commit 99d29b432b
1983 changed files with 653465 additions and 17 deletions

View File

@@ -0,0 +1,16 @@
<?php
if($file->type==='php')
{
echo '<div class="content">';
highlight_string($file->content);
echo '</div>';
}
elseif(in_array($file->type,array('txt','js','css')))
{
echo '<div class="content">';
echo nl2br($file->content);
echo '</div>';
}
else
echo '<div class="error">Preview is not available for this file type.</div>';
?>