我對roxyfileman的微小MCE工作,我整合了成功TinyMCE的的Roxyfileman,它做工精細,PHP的RoxyFileMan設置FILES_ROOT路徑動態
但基於我想在列出目錄的用戶文件管理器列表。但我滯後如何值在conf.json分配用於FILES_ROOT動態針對各個用戶
例如:
--Uploads/userupload/{用戶ID} - {用戶名} {用戶標識} - {用戶名}是生成一個文件夾動態
我需要在FILES_ROOT在FILEMAN
{
"FILES_ROOT": "/uploads/userupload/",
"RETURN_URL_PREFIX": "",
"SESSION_PATH_KEY": "",
"THUMBS_VIEW_WIDTH": "140",
"THUMBS_VIEW_HEIGHT": "120",
"PREVIEW_THUMB_WIDTH": "100",
"PREVIEW_THUMB_HEIGHT":"100",
"MAX_IMAGE_WIDTH": "1000",
"MAX_IMAGE_HEIGHT": "1000",
"INTEGRATION": "tinymce4",
"DIRLIST": "php/dirtree.php",
"CREATEDIR": "php/createdir.php",
"DELETEDIR": "php/deletedir.php",
"MOVEDIR": "php/movedir.php",
"COPYDIR": "php/copydir.php",
"RENAMEDIR": "php/renamedir.php",
"FILESLIST": "php/fileslist.php",
"UPLOAD": "php/upload.php",
"DOWNLOAD": "php/download.php",
"DOWNLOADDIR": "php/downloaddir.php",
"DELETEFILE": "php/deletefile.php",
"MOVEFILE": "php/movefile.php",
"COPYFILE": "php/copyfile.php",
"RENAMEFILE": "php/renamefile.php",
"GENERATETHUMB": "php/thumb.php",
"DEFAULTVIEW": "list",
"FORBIDDEN_UPLOADS": "zip js jsp jsb mhtml mht xhtml xht php phtml php3 php4 php5 phps shtml jhtml pl sh py cgi exe application gadget hta cpl msc jar vb jse ws wsf wsc wsh ps1 ps2 psc1 psc2 msh msh1 msh2 inf reg scf msp scr dll msi vbs bat com pif cmd vxd cpl htpasswd htaccess",
"ALLOWED_UPLOADS": "",
"FILEPERMISSIONS": "0644",
"DIRPERMISSIONS": "0755",
"LANG": "auto",
"DATEFORMAT": "dd/MM/yyyy HH:mm",
"OPEN_LAST_DIR": "yes"
}
其中sholud添加此代碼? –
文件管理器的根目錄中有一個conf.json。您必須在您的應用代碼 – kasoft
中設置的會話可以引導我做什麼sholud? sholud我先設置FILES_ROOT?然後設置SESSION_PATH_KEY?我在我的管理頁面這樣做,我插入圖像到我的內容我設置$ _SESSION ['name'] = ROOT_PATH。「estekhdami/agahi_content_images /」; –