cvs了大概8号的代码。
下载了htmlarea3.0rc1,并对htmlarea.js作了如下修改:
++++++++++
if (typeof a != "undefined") {
for (var i in a) {
//a[i]();
if(!a[i]()) return false;
}
}
return true;
};
++++++++++
但是访问 index.php?id=**时在firefox有如下提示错误信息:
++++++++++
XML解析错误:未结束的记号
位置:
http://fqyy.org/pc2/index.php?id=SYSOP行:1,列:1<?xml version="1.0" encoding="
^
+++++++++++++
后来把以前能用的pcfuncs.php,就可以了。
以下的diff对比:
++++++++++++++++++++++
--- pcfuncs.php_old 2005-01-13 14:58:48.000000000 +0800
+++ pcfuncs.php 2005-01-13 15:11:31.000000000 +0800
@@ -30,9 +30,8 @@
global $cssFile;
if ($cachemode=="")
{
- cache_header("no-cache");
- Header("Cache-Control: no-cache");
- }
+ cache_header("nocache");
+ }
?>
<?xml version="1.0" encoding="<?php echo $charset; ?>"?>
<!DOCTYPE html
@@ -40,7 +39,8 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
-<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $
charset; ?>"/>
+<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
+<script src="pc.js"></script>
<?php
if ( func_num_args() > 1) {
?>
@@ -62,49 +62,17 @@
{
?>
<script type="text/javascript">
-_editor_url = "htmlarea/";
+var _editor_url = "htmlarea/";
+var editor = null;
</script>
<!-- load the main HTMLArea files -->
<script type="text/javascript" src="htmlarea/htmlarea.js"></script>
-<script type="text/javascript" src="htmlarea/lang/en.js"></script>
-<script type="text/javascript" src="htmlarea/dialog.js"></script>
-<script type="text/javascript" src="htmlarea/popupwin.js"></script>
<style type="text/css">
-@import url(htmlarea/htmlarea.css);
textarea { background-color: #fff; border: 1px solid 00f; }
</style>
-<?php /*
-** 去掉表格编辑器和输入检查 否则下载量太大 **
-** by windinsn **
-*/ ?>
-<?php
-/*
-<!-- load the plugins -->
-<script type="text/javascript">
- HTMLArea.loadPlugin("TableOperations");
- HTMLArea.loadPlugin("SpellChecker");
-</script>
-*/
-?>
-<script type="text/javascript" defer="1">
-var editor = null;
-function initEditor() {
- editor = new HTMLArea("blogbody");
-<?php
-/*
- editor.registerPlugin("TableOperations");
- editor.registerPlugin("SpellChecker");
-*/
-?>
- editor.generate();
- return false;
-}
-
-</script>
<?php
}
?>
-<script src="pc.js"></script>
</head>
<body TOPMARGIN="0" leftmargin="0"
<?php
@@ -1135,7 +1103,7 @@
}
}
- if (!$pcconfig["SECTION"][$theme])
+ if (!isset($pcconfig["SECTION"][$theme]))
$theme = "others";
$theme = addslashes($theme);
+++++++++++++++++++++++
--
FROM 210.33.23.*