dirname(__FILE__).'/inc/class.dc.import.flat.php', 'dcImportFeed' => dirname(__FILE__).'/inc/class.dc.import.feed.php', )); $modules['e'] = new ArrayObject(array( 'dcExportFlat' => dirname(__FILE__).'/inc/class.dc.export.flat.php' )); if ($core->auth->isSuperAdmin()) { $modules['i']['dcImportDC1'] = dirname(__FILE__).'/inc/class.dc.import.dc1.php'; $modules['i']['dcImportWP'] = dirname(__FILE__).'/inc/class.dc.import.wp.php'; } # --BEHAVIOR-- importExportModules $core->callBehavior('importExportModules',$modules); $type = null; if (!empty($_REQUEST['t']) && ($_REQUEST['t'] == 'e' || $_REQUEST['t'] == 'i')) { $type = $_REQUEST['t']; } $current_module = null; if ($type && !empty($_REQUEST['f'])) { if (isset($modules[$type][$_REQUEST['f']])) { require_once $modules[$type][$_REQUEST['f']]; $current_module = new $_REQUEST['f']($core); $current_module->init(); } } if ($type && $current_module !== null && !empty($_REQUEST['do'])) { try { $current_module->process($_REQUEST['do']); } catch (Exception $e) { $core->error->add($e->getMessage()); } } ?>