\n"; echo "返回目录错误提示\n"; echo "\n"; echo "
\n"; echo "此文件您没有读取权限!"; echo "
\n"; xhtml_footer(); } else { xhtml_head("查看文件"); echo "
\n"; echo "返回目录选择编码\n"; echo "
\n"; echo "
"; echo "
\n"; echo "\n"; echo ""; echo "\n"; echo "
\n"; echo "
\n"; echo "
爱特文件内容浏览
\n"; if (filesize($path) > (2 * 1024 * 1024)) { echo "
\n"; echo "文件过大,请下载后查看!\n"; echo "
\n"; } else { echo "
\n"; if (!($data = file_get_contents($path))) { echo "读取文件时发生了错误!\n"; } else { echo "
";
            if (!isset($_GET['charset'])) {
                echo nl2br(___codepre(___convert($data, "UTF-8")));
            } elseif (($charset = trim($_GET['charset'])) == "") {
                echo nl2br(___codepre(___convert($data, "UTF-8")));
            } else {
                echo nl2br(___codepre(___convert($data, "UTF-8", $charset)));
            }
            echo "
\n";
        }
        echo "
"; } xhtml_footer(); } ?>