$mod = CMS_modulesCatalog::getByCodename(MOD_STANDARD_CODENAME); $mod->processValidation($validation, VALIDATION_OPTION_ACCEPT); } } } //then destroy website $website->destroy(); $cms_message = $cms_language->getMessage(MESSAGE_ACTION_OPERATION_DONE); } else { $cms_message = $cms_language->getMessage(MESSAGE_PAGE_ACTION_DELETE_ERROR); } break; case "change_order": if ($_POST['new_order']) { $orders = explode(',', $_POST['new_order']); if (CMS_websitesCatalog::setOrders($orders)) { $cms_message = $cms_language->getMessage(MESSAGE_ACTION_OPERATION_DONE); } else { $cms_message = $cms_language->getMessage(MESSAGE_PAGE_ACTION_ORDERING_ERROR); } } break; } if ($_GET["records_per_page"]) { CMS_session::setRecordsPerPage($_GET["records_per_page"]); } if ($_GET["bookmark"]) { CMS_session::setBookmark($_GET["bookmark"]); } $websites = CMS_websitesCatalog::getAll('order'); $records_per_page = CMS_session::getRecordsPerPage();