CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 ckfinder integration with CCS

Print topic Send  topic

Author Message
jacem

Posts: 87
Posted: 06/03/2009, 10:13 PM

Hello All,
I am trying integration with ckfinder (as part of using FCKEditor) in a CCS 3.2 project. It is working perfectly however I have not, as strongly suggested by the ckfinder in code comments/instructions, set the Checkauthorisation() function up correctly to authenticate CCS logged in users before they get to use ckfinder. I am just returning a 'true' from this function to get thing operating in a test.

I have tried to look up the 'UserID' and'GroupID' session variables within ckfinders php function CheckAuthorisation() but they don't seem to in context / available. The ckfinder talks about using session variables

I have tried

if($_SESSION['GroupID']=='Staff') {
return true;
}

But it seems the GroupID session variable is either not set or empty. ckfinder opens a new tab in the browser - does that mean the session variables are lost from the calling tab? Or am I mussing up this simple PHP code or is it something else I am missing?

The fckeditor is part of a secure CCS page's editable grid and ckfinder gets called by fckeditor when inserting an image into the blob fckeditor enabled field. A user would have to have their group set to 'Staff' to be on the CCS page that calls fckeditor for the field in question.

Your help and time considering this is appreciated...
View profile  Send private message
DonP
Posted: 06/04/2009, 8:29 AM

Generally the CCS-generated GroupID session value is numeric. You can
try creating a label on any page, set it as text, then add a Before Show
event to the label to show you what the value is:

$gridname->labelname->CCGetValue(CCGetSession("GroupID"));

Sorry, I am going from memory now as I haven't used CCS for a long time
since switching to Linux.

Don (DonP)

jacem wrote:
> Hello All,
> I am trying integration with ckfinder (as part of using FCKEditor) in a CCS 3.2
> project. It is working perfectly however I have not, as strongly suggested by
> the ckfinder in code comments/instructions, set the Checkauthorisation()
> function up correctly to authenticate CCS logged in users before they get to use
> ckfinder. I am just returning a 'true' from this function to get thing operating
> in a test.
>
> I have tried to look up the 'UserID' and'GroupID' session variables within
> ckfinders php function CheckAuthorisation() but they don't seem to in context /
> available. The ckfinder talks about using session variables
>
> I have tried
>
> if($_SESSION['GroupID']=='Staff') {
> return true;
> }
>
> But it seems the GroupID session variable is either not set or empty. ckfinder
> opens a new tab in the browser - does that mean the session variables are lost
> from the calling tab? Or am I mussing up this simple PHP code or is it something
> else I am missing?
>
> The fckeditor is part of a secure CCS page's editable grid and ckfinder gets
> called by fckeditor when inserting an image into the blob fckeditor enabled
> field. A user would have to have their group set to 'Staff' to be on the CCS
> page that calls fckeditor for the field in question.
>
> Your help and time considering this is appreciated...
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.