SQL mode added

Chose MySQL as the default dialect, others possible so added a comment
on that
This commit is contained in:
Matt Pass
2013-08-11 17:07:50 +01:00
parent c0983e0a62
commit fd2197eace
6 changed files with 33 additions and 30 deletions

View File

@@ -33,7 +33,7 @@ if ($_GET['action']=="load") {
} else {
$fileExt = explode(" ",pathinfo($file, PATHINFO_EXTENSION));
$fileExt = $fileExt[0];
if (array_search($fileExt,array("coffee","css","htm","html","js","less","md","php","py","rb","ruby","txt","xml"))!==false) {$finfo = "text";};
if (array_search($fileExt,array("coffee","css","htm","html","js","less","md","php","py","rb","ruby","sql","txt","xml"))!==false) {$finfo = "text";};
if (array_search($fileExt,array("gif","jpg","jpeg","png"))!==false) {$finfo = "image";};
}
if (strpos($finfo,"text")===0 || strpos($finfo,"empty")!==false) {