You are not logged in.
Hi,
I am new a bit in php as well as in xinha. In Extended File Manager configuration file I have this code:
session_start();
$path = '../../../img/reports/';
if (isset($SESSION['user_id']))
{
$path_final = $path.$SESSION['user_id']."/";
if(!file_exists($path_final))
{
if(mkdir($path_final))
{
$IMConfig['images_dir'] = $path_final;
}
else
{
$IMConfig['images_dir'] = $path;
}
}
else
{
$IMConfig['images_dir'] = $path_final;
}
}
else
{
$IMConfig['images_dir'] = $path;
}
as you can see I would like to provide logged user to get just into his folder and not any other, but unfortunatelly this is not working. How to get into this script my sessions which I use in every other scripts? Thanks a lot for your replies
Offline