\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"; if (isset($_POST['content'])) if (trim($_POST['content']) != "") { echo "
文件保存情况报告
\n"; if (!function_exists("get_magic_quotes_gpc") || !get_magic_quotes_gpc()) { $fcontent = $_POST['content']; } else { $fcontent = stripslashes($_POST['content']); } if (isset($_POST['charset'])) if (trim($_POST['charset']) != "") { $fcontent = ___convert($fcontent, trim($_POST['charset']), "UTF-8"); } echo "
\n"; if (file_put_contents($path, $fcontent)) { echo "文件数据已经成功存储!\n"; } else { echo "文件数据无法存入文件!\n"; } echo "
\n"; } $data = file_get_contents($path); if (!isset($_GET['charset'])) { $charset = null; $content = ___codepre($data, null); } elseif (($charset = trim($_GET['charset'])) == "") { $content = ___codepre($data, null); } else { $content = ___codepre(___convert($data, "UTF-8", $charset), null); } echo "
爱特文本编辑工具
\n"; echo "
\n"; echo "
\n"; echo "\n"; echo "\n
\n"; if (isset($_GET['charset'])) if ($charset != "") { echo "\n"; } echo "\n
\n"; echo "
\n"; echo "
\n"; xhtml_footer(); } ?>