"; ?>
diff --git a/src/admin/templets/makehtml_homepage.htm b/src/admin/templets/makehtml_homepage.htm
index ac994a17..b9401a7a 100644
--- a/src/admin/templets/makehtml_homepage.htm
+++ b/src/admin/templets/makehtml_homepage.htm
@@ -74,9 +74,17 @@
$client->appid = $cfg_bizcore_appid;
$client->key = $cfg_bizcore_key;
$data = $client->AdminPWDExists();
- $data = json_decode($data->data);
- $rs = (array)($data->result);
- if($rs["admin_pwd_exists"] == "false") {
+ if($data->code == -1){
+ ?>
+
+ 尚未开启DedeBIZ商业组件 如何启动组件
+ |
+
+ data);
+ $rs = (array)($data->result);
+ if($rs["admin_pwd_exists"] == "false") {
?>
设置操作密码: |
@@ -105,7 +113,8 @@
diff --git a/src/install/templates/step-1.html b/src/install/templates/step-1.html
index 5de3a6f3..712c7518 100755
--- a/src/install/templates/step-1.html
+++ b/src/install/templates/step-1.html
@@ -2,7 +2,7 @@
- 安装程序
+ DedeCMSV6安装程序
@@ -101,7 +101,7 @@
在根目录安装时不必理会
- 安装即表示您同意站点授权协议
+ 安装即表示您同意《站点授权协议》
diff --git a/src/static/ckeditor/plugins/mimage/plugin.js b/src/static/ckeditor/plugins/mimage/plugin.js
index c5db4d95..c2eb36e2 100644
--- a/src/static/ckeditor/plugins/mimage/plugin.js
+++ b/src/static/ckeditor/plugins/mimage/plugin.js
@@ -4,7 +4,17 @@ CKEDITOR.plugins.add("mimage", {
a.addCommand("openMImageDialog",
{
exec: function (a) {
- var posLeft = 100; var posTop = 100;
+ var w = 800;
+ var h = 600;
+ var dualScreenLeft = window.screenLeft !== undefined ? window.screenLeft : window.screenX;
+ var dualScreenTop = window.screenTop !== undefined ? window.screenTop : window.screenY;
+
+ var width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width;
+ var height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height;
+
+ var systemZoom = width / window.screen.availWidth;
+ var posLeft = (width - w) / 2 / systemZoom + dualScreenLeft;
+ var posTop = (height - h) / 2 / systemZoom + dualScreenTop;
window.open("./dialog/select_mimages.php?f=" + a.name, "popUpImagesWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + posLeft + ", top=" + posTop);
}
});
diff --git a/src/system/database/dedesqli.class.php b/src/system/database/dedesqli.class.php
index 5aeaa7e2..446c3166 100755
--- a/src/system/database/dedesqli.class.php
+++ b/src/system/database/dedesqli.class.php
@@ -492,6 +492,7 @@ EOT;
{
$errorTrackFile = DEDEDATA.'/mysqli_error_trace.inc';
if ($this->showError) {
+ $msg = str_replace(array("\r","\n"),"",addslashes($msg));
ShowMsg("{$msg}", "javascript:;", -1);
exit;
}
diff --git a/src/system/database/dedesqlite.class.php b/src/system/database/dedesqlite.class.php
index 76e9a262..1bd48a80 100755
--- a/src/system/database/dedesqlite.class.php
+++ b/src/system/database/dedesqlite.class.php
@@ -505,6 +505,7 @@ EOT;
{
$errorTrackFile = DEDEDATA.'/sqlite_error_trace.inc';
if ($this->showError) {
+ $msg = str_replace(array("\r","\n"),"",addslashes($msg));
ShowMsg("{$msg}", "javascript:;", -1);
exit;
}