} } else { if (!$logging_trackerImpressions && $logging_trackerImpressionsCurrent) { // Conversion tracking has been turned off, need to update // account preferences to not display any of the conversion // tracking columns in statistics screens require_once MAX_PATH . '/lib/OA/Admin/Statistics/Fields/Delivery/Affiliates.php'; require_once MAX_PATH . '/lib/OA/Admin/Statistics/Fields/Delivery/Default.php'; $aStatisticsFieldsDelivery['affiliates'] = new OA_StatisticsFieldsDelivery_Affiliates(); $aStatisticsFieldsDelivery['default'] = new OA_StatisticsFieldsDelivery_Default(); foreach ($aStatisticsFieldsDelivery as $obj) { // Get all of the column preference names that relate to // conversion tracking $aPrefs = $obj->getConversionColumnPreferenceNames(); // Disable these preferences OA_Preferences::disableStatisticsColumns($aPrefs); } } } // The settings configuration file was written correctly, // go to the "next" settings page from here // Queue confirmation message $setPref = $oOptions->getSettingsPreferences($prefSection); $title = $setPref[$prefSection]['name']; $translation = new OX_Translation(); $translated_message = $translation->translate($GLOBALS['strXSettingsHaveBeenUpdated'], array(htmlspecialchars($title))); OA_Admin_UI::queueMessage($translated_message, 'local', 'confirm', 0); OX_Admin_Redirect::redirect(basename($_SERVER['SCRIPT_NAME'])); } // Could not write the settings configuration file, store this // error message and continue