You are not logged in.
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
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
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
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