srchub

srchub Commit Details


Date:2016-05-01 15:40:07 (8 years 7 months ago)
Author:Natalie Adams
Branch:master
Commit:cc88235d78df053119ca16b4c90ac440df5f2e10
Parents: 8c42270a9ee96852cacb7d4a87560a0f73ffe9bf
Message:Issue 153: SQL preview support

Changes:

File differences

indefero/src/IDF/FileUtil.php
3636
3737
3838
39
39
4040
4141
4242
......
8484
8585
8686
87
87
8888
89
89
9090
91
91
9292
93
93
94
9495
95
96
9697
97
98
9899
99100
100101
'h', 'hh', 'hpp', 'hs', 'html', 'html', 'java', 'js', 'lisp', 'master',
'pas', 'perl', 'php', 'pl', 'pm', 'py', 'rb', 'scm', 'sh', 'sitemap',
'skin', 'sln', 'svc', 'vala', 'vb', 'vbproj', 'vbs', 'wsdl', 'xhtml',
'xml', 'xsd', 'xsl', 'xslt');
'xml', 'xsd', 'xsl', 'xslt', 'sql');
public static $imageExtensions = ["png", "gif", "jpeg", "jpg"];
return Pluf_Template::markSafe(implode("\n", $table));*/
//var_dump($fileinfo);
$ext = "";
if (in_array($fileinfo[2], self::$syntaxhighlightext))
if (in_array($fileinfo[2], self::$syntaxhighlightext)) {
$ext = $fileinfo[2];
elseif (array_key_exists($fileinfo[2], self::$map))
} elseif (array_key_exists($fileinfo[2], self::$map)) {
$ext = self::$map[$fileinfo[2]];
else
} else {
$ext = "text";
if ($ext == "php" || $ext == "html" || $ext == "htm" || $ext == "js")
}
if ($ext == "php" || $ext == "html" || $ext == "htm" || $ext == "js") {
$content = '<div id="highlight"><pre class="brush: ' . $ext . '">' . str_replace("<", "&lt;", $content) . '</pre></div>';
else
} else {
$content = '<div id="highlight"><script type="syntaxhighlighter" class="brush: ' . $ext . '">' . $content . '</script></div>';
}
}
if (self::isImage($fileinfo)) {

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05575s using 20 queries.