Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: Security integration for kcfinder  (Read 35 times)

stephane

  • Full Member
  • ***
  • Karma: 6
  • Posts: 208
Security integration for kcfinder
« on: June 16, 2017, 11:21:28 AM »

Hello,
I would like to test ckeditor + kcfinder (https://kcfinder.sunhater.com/
kcfinder is like ckfinder but it's free with the same functionality  ;)

I have a problem about security option. How to disable upload function when we are not login as Admin ?
Documentation about that say : use Session https://kcfinder.sunhater.com/integrate#session

Code: [Select]
$_SESSION['KCFINDER'] = array(
    'disabled' => false,
    'uploadURL' => "/users/" . $user['username'] . "/upload",
    'uploadDir' = ""
);

Any idea of how to integrate this in sNews php file ?

Many thanks
Stef.
Logged

stephane

  • Full Member
  • ***
  • Karma: 6
  • Posts: 208
Re: Security integration for kcfinder
« Reply #1 on: June 23, 2017, 04:46:20 PM »

No idea ? Anybody ?  :(

Logged