* Version: Updated on 04-07-2006 by Krzysztof Kotowicz * Version: Updated on 29-10-2006 by Raimund Meyer * Version: Updated on 20-01-2008 by Raimund Meyer * Package: RyuXFileManager (EFM 1.4) * http://www.afrusoft.com/htmlarea */ if (isset($_REQUEST['mode'])) { $insertMode = $_REQUEST['mode']; } if (!isset($insertMode)) { $insertMode = "image"; } require_once 'config.inc.php'; require_once 'Classes/RyuXFileManager.php'; $manager = new RyuXFileManager($IMConfig); $dirs = $manager->getDirs(); // calculate number of table rows to span for the preview cell $num_rows = 4; // filename & upload & disk info message & width+margin if ($insertMode == 'image') { if ($IMConfig['images_enable_styling'] === false) { $hidden_fields[] = 'f_margin'; $hidden_fields[] = 'f_padding'; $hidden_fields[] = 'f_border'; $hidden_fields[] = 'f_backgroundColor'; $hidden_fields[] = 'f_borderColor'; $num_rows += 2; } else { if ($IMConfig['use_color_pickers'] === false) { $hidden_fields[] = 'f_backgroundColor'; $hidden_fields[] = 'f_borderColor';