Hi,
I'm looking to dynamically be able to control user access to certain folders & subfolders.
My idea is that when a folder is created, the path is added to a database table, then I can set a user's permissions for any folder/subfolder that I want, using my own admin panel. Then in the CKFinder config.php file I can dynamically create Access Control Lists based on the user's id.
Just wondering where I should look in the CKFinder code to have it manipulate the database when the folder is created/deleted/renamed. Can I get someone to point me in the right direction? I'm looking at the CreateFolder.php file in the core & thinking that I should add my code at this line:
FYI: I have a licensed version of CKFinder & I'm developing with PHP & MySQL.
Thank you
I'm looking to dynamically be able to control user access to certain folders & subfolders.
My idea is that when a folder is created, the path is added to a database table, then I can set a user's permissions for any folder/subfolder that I want, using my own admin panel. Then in the CKFinder config.php file I can dynamically create Access Control Lists based on the user's id.
Just wondering where I should look in the CKFinder code to have it manipulate the database when the folder is created/deleted/renamed. Can I get someone to point me in the right direction? I'm looking at the CreateFolder.php file in the core & thinking that I should add my code at this line:
else { $bCreated = @mkdir($sServerDir); //my code here??? }
FYI: I have a licensed version of CKFinder & I'm developing with PHP & MySQL.
Thank you
Re: CKFinder - Adding Folder paths to a database
In DeleteFolder add code after
and in RenameFolder after
$bMoved and $bCreated are boolean variables, they're set to FALSE on failure.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: CKFinder - Adding Folder paths to a database