| @@ -10,7 +10,7 @@ | |||||
| */ | */ | ||||
| require_once(dirname(__FILE__)."/config.php"); | require_once(dirname(__FILE__)."/config.php"); | ||||
| require_once(DEDEINC."/image.func.php"); | require_once(DEDEINC."/image.func.php"); | ||||
| //define("DEDE_DIALOG_UPLOAD", true); | |||||
| define("DEDE_DIALOG_UPLOAD", true); | |||||
| if (empty($activepath)) { | if (empty($activepath)) { | ||||
| $activepath = ''; | $activepath = ''; | ||||
| $activepath = str_replace('.', '', $activepath); | $activepath = str_replace('.', '', $activepath); | ||||
| @@ -14,7 +14,7 @@ if (!isset($cfg_basedir)) { | |||||
| if (empty($uploadfile)) $uploadfile = ''; | if (empty($uploadfile)) $uploadfile = ''; | ||||
| if (empty($uploadmbtype)) $uploadmbtype = '软件类型'; | if (empty($uploadmbtype)) $uploadmbtype = '软件类型'; | ||||
| if (empty($bkurl)) $bkurl = 'select_soft.php'; | if (empty($bkurl)) $bkurl = 'select_soft.php'; | ||||
| //define("DEDE_DIALOG_UPLOAD", true); | |||||
| define("DEDE_DIALOG_UPLOAD", true); | |||||
| $CKEditorFuncNum = (isset($CKEditorFuncNum)) ? $CKEditorFuncNum : 1; | $CKEditorFuncNum = (isset($CKEditorFuncNum)) ? $CKEditorFuncNum : 1; | ||||
| $newname = (empty($newname) ? '' : preg_replace("#[\\ \"\*\?\t\r\n<>':\/|]#", "", $newname)); | $newname = (empty($newname) ? '' : preg_replace("#[\\ \"\*\?\t\r\n<>':\/|]#", "", $newname)); | ||||
| $uploadfile = isset($imgfile) && empty($uploadfile) ? $imgfile : $uploadfile; | $uploadfile = isset($imgfile) && empty($uploadfile) ? $imgfile : $uploadfile; | ||||
| @@ -15,7 +15,7 @@ CKEDITOR.plugins.add("ddfilebrowser", { | |||||
| var systemZoom = width / window.screen.availWidth; | var systemZoom = width / window.screen.availWidth; | ||||
| var posLeft = (width - w) / 2 / systemZoom + dualScreenLeft; | var posLeft = (width - w) / 2 / systemZoom + dualScreenLeft; | ||||
| var posTop = (height - h) / 2 / systemZoom + dualScreenTop; | 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", | a.ui.addButton("DDFileBrowser", | ||||
| @@ -1106,7 +1106,7 @@ | |||||
| var systemZoom = width / window.screen.availWidth; | var systemZoom = width / window.screen.availWidth; | ||||
| var posLeft = (width - w) / 2 / systemZoom + dualScreenLeft; | var posLeft = (width - w) / 2 / systemZoom + dualScreenLeft; | ||||
| var posTop = (height - h) / 2 / systemZoom + dualScreenTop; | 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(); | CKEDITOR.dialog.getCurrent().hide(); | ||||
| } | } | ||||
| }, | }, | ||||