Hi,
I've set up the PHP-FCKEditor successfully, but now I'm having a little problem with the Filemanager. I set up the config-File as recommended by adding this bit of code:
The problem is, config.php doesn't know anything about $_SESSION-variables. When I write print_r($_SESSION), nothing happens. That's kind of strange because the File in which the FCKEditor is included does know the $_SESSION.
This is the file's sourcecode:
It is included in the index.php which starts the session so actually config.php should know $_SESSION.
Does anyone here see what I did wrong?
I've set up the PHP-FCKEditor successfully, but now I'm having a little problem with the Filemanager. I set up the config-File as recommended by adding this bit of code:
if($_SESSION['rights']>0)
{
$Config['Enabled'] = true ;
}
else
{
$Config['Enabled'] = false;
}The problem is, config.php doesn't know anything about $_SESSION-variables. When I write print_r($_SESSION), nothing happens. That's kind of strange because the File in which the FCKEditor is included does know the $_SESSION.
This is the file's sourcecode:
<?php
include('checkrights.php');
include("./fckeditor/fckeditor.php") ;
$sBasePath = $_SERVER['PHP_SELF'] ;
$sBasePath = './fckeditor/';
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = $sBasePath ;
$oFCKeditor->Value = 'D<sup>ö</sup><i>n</i><sub>e</sub><b>r</b>';
$content .= $oFCKeditor->CreateHtml();
include('template.php');
?>It is included in the index.php which starts the session so actually config.php should know $_SESSION.
Does anyone here see what I did wrong?

Re: Filemanager-config doesn't get $_SESSION
at the start of config.php.
But now I have another problem:
What is wrong with $_SERVER variable in config.php? I can't access (or even manually set) $_SERVER['DOCUMENT_ROOT'] in it! I need it because need to set session.path differently then default.
Re: Filemanager-config doesn't get $_SESSION
Solved by using __FILE__ constant. But still don't know why FCKEditor doesn't get $_SERVER variable.