Announcement

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

#1 2008-11-20 10:01:06

tuthtu
New member
Registered: 2008-11-20
Posts: 3

ExtendedFileManager ignores configuration

EFM ignores the config values from init sent by

  // pass the configuration to plugin
  if(xinha_config.ExtendedFileManager) {
    with(xinha_config.ExtendedFileManager){<?php
      // define backend configuration for the plugin
      $IMConfig = array();
      $IMConfig['images_dir'] = sprintf("'%s%s'", $pfade['base'], $Xinha_upimag);
      $IMConfig['images_url'] = sprintf("'%s'", $Xinha_upimag);
      $IMConfig['files_dir'] = sprintf("'%s%s'", $pfade['base'], $Xinha_upload);
      $IMConfig['files_url'] = sprintf("'%s'", $Xinha_upload);
      $IMConfig['thumbnail_prefix'] = 't_';
      $IMConfig['thumbnail_dir'] = 'temp';
      $IMConfig['resized_prefix'] = 'resz_';
      $IMConfig['resized_dir'] = '';
      $IMConfig['tmp_prefix'] = '_tmp_';
      $IMConfig['max_filesize_kb_image'] = 2000;
      // maximum size for uploading files in 'insert image' mode (2000 kB here)

      $IMConfig['max_filesize_kb_link'] = 5000;
      // maximum size for uploading files in 'insert link' mode (5000 kB here)

      // Maximum upload folder size in Megabytes.
      // Use 0 to disable limit
      $IMConfig['max_foldersize_mb'] = 0;

      $IMConfig['allowed_image_extensions'] = array("jpg","gif","png");
      $IMConfig['allowed_link_extensions'] = array("jpg","gif","pdf","ip","txt",
                                                   "psd","png","html","swf","doc","dot",
                                                   "xml","xls");

      require_once(sprintf("%s/contrib/php-xinha.php", $pfade['Xinh']));
      xinha_pass_to_php_backend($IMConfig);
    ?>
      }
   }

from xinha_init().
I always get the default demo_images folder, but i can not change the config.inc.php since i have several dest folders depending on the editor's page.
Any hints?
Thank you

Offline

#2 2008-11-21 05:57:15

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: ExtendedFileManager ignores configuration

Hard to say. Is $pfade['Xinh'] correct? Any Javascript or PHP errors?

Offline

#3 2008-11-21 13:27:59

tuthtu
New member
Registered: 2008-11-20
Posts: 3

Re: ExtendedFileManager ignores configuration

ray wrote:

Hard to say. Is $pfade['Xinh'] correct? Any Javascript or PHP errors?

$pfade is correct, no js or php errors. I even tried absolute / relative paths...
the only thing i noticed is that the sessionname has no surrounding '' in backend_data (js code)

Last edited by tuthtu (2008-11-21 13:52:33)

Offline

#4 2009-03-10 18:38:45

romus
New member
Registered: 2009-03-10
Posts: 1

Re: ExtendedFileManager ignores configuration

Check if backend.php in ExtendedFileManager directory see all GET parameters (that way config parameters are passed), specially "backend_data[data]".
I've discovered that PHP with suhosin cut long GET parameters (suhosin.get.max_value_length). When GET parameters are cuted, config isn't passed and You see default directory.

Offline

#5 2009-03-17 18:47:14

jimhans
New member
Registered: 2005-09-06
Posts: 5

Re: ExtendedFileManager ignores configuration

Hi, i had this error on different servers, too.
It was hard to find out the reason. I don´t know the exact reason :=)
But i know a solution.
Try it out and please tell me if it works.

Don´t use:
  $IMConfig['allowed_image_extensions'] = array("jpg","gif","png");
  $IMConfig['allowed_link_extensions'] = array("jpg","gif","pdf","ip","txt",
                                                   "psd","png","html","swf","doc","dot",
                                                   "xml","xls");

Comment this lines out and i guess that it will work.
Some servers don´t like this arrays.

Any body knows what server configuaration might be the reason.
On one Server i had to comment this lines complete out. On an other server i had to shorten it.
On my home server i have no problems with this arrays.

Nice Greatings

Offline

Board footer

Powered by FluxBB