Browse Source

上传问题处理

tags/6.3.2
tianya 1 year ago
parent
commit
c0f2bd0ed9
4 changed files with 4 additions and 4 deletions
  1. +1
    -1
      src/admin/dialog/select_images_post.php
  2. +1
    -1
      src/admin/dialog/select_soft_post.php
  3. +1
    -1
      src/static/ckeditor/plugins/ddfilebrowser/plugin.js
  4. +1
    -1
      src/static/ckeditor/plugins/image/dialogs/image.js

+ 1
- 1
src/admin/dialog/select_images_post.php View File

@@ -10,7 +10,7 @@
*/
require_once(dirname(__FILE__)."/config.php");
require_once(DEDEINC."/image.func.php");
//define("DEDE_DIALOG_UPLOAD", true);
define("DEDE_DIALOG_UPLOAD", true);
if (empty($activepath)) {
$activepath = '';
$activepath = str_replace('.', '', $activepath);


+ 1
- 1
src/admin/dialog/select_soft_post.php View File

@@ -14,7 +14,7 @@ if (!isset($cfg_basedir)) {
if (empty($uploadfile)) $uploadfile = '';
if (empty($uploadmbtype)) $uploadmbtype = '软件类型';
if (empty($bkurl)) $bkurl = 'select_soft.php';
//define("DEDE_DIALOG_UPLOAD", true);
define("DEDE_DIALOG_UPLOAD", true);
$CKEditorFuncNum = (isset($CKEditorFuncNum)) ? $CKEditorFuncNum : 1;
$newname = (empty($newname) ? '' : preg_replace("#[\\ \"\*\?\t\r\n<>':\/|]#", "", $newname));
$uploadfile = isset($imgfile) && empty($uploadfile) ? $imgfile : $uploadfile;


+ 1
- 1
src/static/ckeditor/plugins/ddfilebrowser/plugin.js View File

@@ -15,7 +15,7 @@ CKEDITOR.plugins.add("ddfilebrowser", {
var systemZoom = width / window.screen.availWidth;
var posLeft = (width - w) / 2 / systemZoom + dualScreenLeft;
var posTop = (height - h) / 2 / systemZoom + dualScreenTop;
window.open("./dialog/select_soft.php?f=" + a.name, "popUpImagesWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + posLeft + ", top=" + posTop);
window.open("./dialog/select_soft.php?f=" + a.name + "&noeditor=yes", "popUpImagesWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + posLeft + ", top=" + posTop);
}
});
a.ui.addButton("DDFileBrowser",


+ 1
- 1
src/static/ckeditor/plugins/image/dialogs/image.js View File

@@ -1106,7 +1106,7 @@
var systemZoom = width / window.screen.availWidth;
var posLeft = (width - w) / 2 / systemZoom + dualScreenLeft;
var posTop = (height - h) / 2 / systemZoom + dualScreenTop;
window.open("./dialog/select_images.php?iseditor=1&f="+editor.name, "popUpImagesWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + posLeft + ", top=" + posTop);
window.open("./dialog/select_images.php?noeditor=yes&iseditor=1&f="+editor.name, "popUpImagesWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + posLeft + ", top=" + posTop);
CKEDITOR.dialog.getCurrent().hide();
}
},


Loading…
Cancel
Save