Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2009-03-14 15:42:27

xlilien
New member
Registered: 2009-03-14
Posts: 1

Extended File Manager - need my session

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

Board footer

Powered by FluxBB