// process the options // ProcessMailOptions($aAllRawValues); ProcessCRMOptions($aAllRawValues); ProcessAROptions($aAllRawValues); ProcessFilterOptions($aAllRawValues); // // create any derived fields // NOTE: it's important that derivation occurs before cleaned values // are created. If derivation occurred after cleaning or it created // fields that were assumed to be clean, then an attack could create // forged email headers using derive_fields. The code is safe with // the logic sequence below. // $aAllRawValues = CreateDerived($aAllRawValues); list($aFieldOrder, $aCleanedValues, $aRawDataValues) = ParseInput($aAllRawValues); FilterFiles($aFileVars); // // if we're processing multi-forms, then merge in the raw data from previous // forms unless this is the first page of the form sequence // if (IsSetSession("FormList") && $SPECIAL_VALUES["multi_start"] != 1) { list($aFieldOrder, $aCleanedValues, $aRawDataValues, $aAllRawValues, $aFileVars) = GetMultiValues(GetSession("FormList"), GetSession("FormIndex"), $aFieldOrder, $aCleanedValues, $aRawDataValues, $aAllRawValues, $aFileVars); } if ($SPECIAL_VALUES["file_names"] !== "") { list($aFieldOrder, $aCleanedValues, $aRawDataValues, $aAllRawValues, $aFileVars) = SetFileNames($SPECIAL_VALUES["file_names"], $aFieldOrder, $aCleanedValues, $aRawDataValues, $aAllRawValues, $aFileVars); } // // Hook system: after loading and processing data // if ($HOOK_DIR !== "") {
unset($_SESSION['nfsend']); $out_list = nfsend_query('get-globals', array(), 0); if (!is_array($out_list)) { SetMessage('error', "Can not initialize globals"); SendHeader(0); ShowMessages(); exit; } foreach ($out_list['globals'] as $global) { eval($global); } $_SESSION['backend_version'] = $version; // check disk usage nfsend_query("get-du", array(), 0); // Parameter parsing: check for tab and profileswitch list($status, $tab_changed, $profile_changed) = ParseInput(); if ($status == FALSE) { SendHeader(1); ShowMessages(); exit; } if ($_SESSION['tab'] != 2 && !allowed_nfsen_section()) { $_SESSION['tab'] = 2; } // tab processing $label = $TabList[$_SESSION['tab']]; switch ($label) { // no further processing needed for tabs 0 - 3 case "Home": case "Graphs": if ($tab_changed || !array_key_exists('sub_tab', $_SESSION)) {