Query($sql); $rows = array(); while ($row = $res->FetchAssocArray()) { $rows[] = $row; if(file_exists(BASE_DIR . $row["import_default_file"])) { if(filemtime(BASE_DIR . $row["import_default_file"]) > $row['import_last_update']) { if (!(is_file(BASE_DIR . '/modules/import/class.import.php') && include_once(BASE_DIR . '/modules/import/class.import.php'))) module_error(); $import = new import; $import -> DoImport($row['Id']); } } } } if (defined('ACP') && $_REQUEST['moduleaction']) { if (! (is_file(BASE_DIR . '/modules/import/class.import.php'))) module_error(); include_once(BASE_DIR . '/modules/import/class.import.php'); $import = new import; $tpl_dir = BASE_DIR . '/modules/import/templates/'; $lang_file = BASE_DIR . '/modules/import/lang/' . $_SESSION['user_language'] . '.txt'; $AVE_Template->config_load($lang_file); switch ($_REQUEST['moduleaction']) { case '1': $import->importList($tpl_dir); break; case 'del': $import->importDelete($_REQUEST['id']); break; case 'edit': $import->importEdit(isset($_REQUEST['id']) ? $_REQUEST['id'] : null, $tpl_dir); break; case 'saveedit': $import->importSave(isset($_REQUEST['id']) ? $_REQUEST['id'] : null); break; case 'do': $import->DoImport($_REQUEST['id'], false); break; case 'tags': $import->DoImport(isset($_REQUEST['id']) ? $_REQUEST['id'] : null, true); break; } } ?>