Index: openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/ImageManager/config.inc.php =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/ImageManager/config.inc.php,v diff -u -r1.3 -r1.4 --- openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/ImageManager/config.inc.php 4 Jun 2006 00:45:51 -0000 1.3 +++ openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/ImageManager/config.inc.php 2 Feb 2007 21:04:58 -0000 1.4 @@ -280,12 +280,22 @@ //////////////////////////////////////////////////////////////////////////////// - - - -// If config specified from front end, merge it -if(isset($_REQUEST['backend_config'])) +// Standard PHP Backend Data Passing +// if data was passed using xinha_pass_to_php_backend() we merge the items +// provided into the Config +require_once(realpath(dirname(__FILE__) . '/../../contrib/php-xinha.php')); +if($passed_data = xinha_read_passed_data()) { + $IMConfig = array_merge($IMConfig, $passed_data); + $IMConfig['backend_url'] .= xinha_passed_data_querystring() . '&'; +} +// Deprecated config passing, don't use this way any more! +elseif(isset($_REQUEST['backend_config'])) +{ + if(get_magic_quotes_gpc()) { + $_REQUEST['backend_config'] = stripslashes($_REQUEST['backend_config']); + } + // Config specified from front end, check that it's valid session_start(); $secret = $_SESSION[$_REQUEST['backend_config_secret_key_location']];