Hello.
I have the following code in my pages, after a <TEXTAREA> tag:
I want every web user has its own unique folder name uid. It works fine, but I would like users can not look into the folders of other users.
Thanks.
I have the following code in my pages, after a <TEXTAREA> tag:
<script type="text/javascript"> var editor = CKEDITOR.replace( 'altbody' , { toolbar : 'Profes', filebrowserImageUploadUrl : '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images¤tFolder=/<?php echo $_SESSION[uid];?>/' }); CKFinder.setupCKEditor( editor, { basePath : '/ckfinder/', startupPath : "Images:/<?php echo $_SESSION[uid];?>/", startupFolderExpanded : false, rememberLastFolder : false } ) ; </script>
I want every web user has its own unique folder name uid. It works fine, but I would like users can not look into the folders of other users.
Thanks.
SOLVED: Selecting startupPath
I defined the variable $_SESSION['ckfinder_baseUrl'] with the complete URL of the images folder based on $_SESSION[uid] in the login script. Then I modified the config.php file as follows:
Thanks anyway