Hi,
I have a problem with detect of $baseurl. When I use session I can check if the user is authorized, but how can I detect which section can I open?
For example I have two sections (e.g. News and Articles) and I have for each of section different folder in "userfiles". I can't use sessions for this, because user can open each section in new window and work with them at random (in session can I save only one of section - the latest).
Have you an idea?
I have a problem with detect of $baseurl. When I use session I can check if the user is authorized, but how can I detect which section can I open?
For example I have two sections (e.g. News and Articles) and I have for each of section different folder in "userfiles". I can't use sessions for this, because user can open each section in new window and work with them at random (in session can I save only one of section - the latest).
Have you an idea?
Re: $baseurl
This is a situation where "Id" property may come in handy.
Check the documentation for more details.
In short, the "id" variable will be passed to the server connector on each request. You can use it to check in the config.php file whether the "News" or "Articles" folder should be used.
(remember to sanitize the "$_GET['id']" variable before using it to set the working directory).
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+