+
+
file->preview;?>
-
file->charset, $charset, "onchange='setCharset(this.value)'");?>
+
file->charset, $charset, "onchange='setCharset(this.value)' class='chosen'");?>
-
-
- realPath);
- if($charset != $config->charset)
- {
- $fileContent = helper::convertEncoding($fileContent, $charset, $config->charset);
- }
- else
- {
- if(extension_loaded('mbstring'))
- {
- $encoding = mb_detect_encoding($fileContent, array('ASCII', 'UTF-8', 'GB2312', 'GBK', 'BIG5'));
- if($encoding != 'UTF-8') $fileContent = helper::convertEncoding($fileContent, $encoding, $config->charset);
- }
- else
- {
- $encoding = 'UTF-8';
- if($config->default->lang == 'zh-cn') $encoding = 'GBK';
- if($config->default->lang == 'zh-tw') $encoding = 'BIG5';
- $fileContent = helper::convertEncoding($fileContent, $encoding, $config->charset);
- }
- }
- a($fileContent);
- ?>
+
+
createLink('file', 'read', "fileID=$file->id"));?>
+
+
+ realPath);
+ if($charset != $config->charset)
+ {
+ $fileContent = helper::convertEncoding($fileContent, $charset, $config->charset);
+ }
+ else
+ {
+ if(extension_loaded('mbstring'))
+ {
+ $encoding = mb_detect_encoding($fileContent, array('ASCII', 'UTF-8', 'GB2312', 'GBK', 'BIG5'));
+ if($encoding != 'UTF-8') $fileContent = helper::convertEncoding($fileContent, $encoding, $config->charset);
+ }
+ else
+ {
+ $encoding = 'UTF-8';
+ if($config->default->lang == 'zh-cn') $encoding = 'GBK';
+ if($config->default->lang == 'zh-tw') $encoding = 'BIG5';
+ $fileContent = helper::convertEncoding($fileContent, $encoding, $config->charset);
+ }
+ }
+ echo "
" . htmlspecialchars($fileContent) . "
";
+ ?>
+
-
-
-
-
icons['edit']);?>
-
file->inputFileName;?>
+
+
+
file->inputFileName;?>
-
-
+
+
diff --git a/module/file/view/export.html.php b/module/file/view/export.html.php
index 7582f12939..c99a30da74 100644
--- a/module/file/view/export.html.php
+++ b/module/file/view/export.html.php
@@ -117,7 +117,7 @@ $(document).ready(function()
export;?>
-