year = $year; $this->month = $month; $this->day = $day; $this->hour = $hour; $this->minute = $minute; $this->second = $second; $this->ampm = $ampm; $this->daySavingsAdjust = $daySavingsAdjust; $this->timezone = $timezone; $this->ntp = $ntp; $this->ntp_1 = $ntp_1; $this->ntp_2 = $ntp_2; $this->ntp_3 = $ntp_3; $this->usingCustomTZ = $usingCustomTZ; $this->customTZHourOffset = $customTZHourOffset; $this->customTZMinuteOffset = $customTZMinuteOffset; } }; //initialize variables $errorCode = 0; $returnMessage = " "; $url = " " ; if ($_SERVER['REQUEST_METHOD'] == "POST") { $url = $_REQUEST['url']; //$licenseKey = $_REQUEST['licenseKey']; $licenseKeys = split(":", $_REQUEST['licenseKey']); error_log("License Keys:".print_r($licenseKeys, true)); $partitionCount = $_REQUEST['numLogLibs']; $config = $_REQUEST['config']; $libNames = split(":", $_REQUEST['libNames']); $cSlots = $_REQUEST['cSlots']; $ioSlots = $_REQUEST['ioSlots']; $month = $_REQUEST['month']; $day = $_REQUEST['day']; $year = $_REQUEST['year']; $daytime = $_REQUEST['daytime']; $hour = intval($_REQUEST['hour']); if(get_snmp_audit_logging_enabled($user) == '1') { error_log("send_snmp_audit_logging_library_config_changed_trap"); send_snmp_audit_logging_library_config_changed_trap($user, "A library configuration setting has been changed from the Web UI"); } $ntp = $_POST['ntp']; if ($ntp == 0) { $ntp = 0; } else { $ntp = 1; } $returnMessage = "The following operations have been successfully completed:"; error_log("------------------------------------------io:".$ioSlots); if ($month != "Unspecified") { $datetext=$day."-".$month."-".$year; $timestamp = strtotime($datetext); $date = getdate($timestamp); if (($hour < 12) && ($daytime=="PM")) { $hour = $hour + 12; } else if (($hour == 12) && ($daytime == "AM")) { $hour = 0; } settype($hour, "string"); $minute = intval($_POST['minute']); settype($minute, "string"); $second = intval($_POST['second']); settype($second, "string"); $timezone = $_POST['timezone']; $datetime = new Date($date['year'], $date['mon'], $date['mday'], $hour, $minute, $second, $_REQUEST['ampm'], 0, $timezone, $ntp, $_REQUEST['ntp_1'], $_REQUEST['ntp_2'],$_REQUEST['ntp_2'],0,0,0); update_date_and_time($user,$datetime); $returnMessage = $returnMessage."
  • Set Library Date and Time
  • "; } error_log("after date and time"); foreach($licenseKeys as $licenseKey) { if ($licenseKey != "Unspecified") { error_log("Activating license key: ".$licenseKey); set_licensed_feature($user,$licenseKey); $returnMessage = "
  • Library Feature Activation
  • "; } } if ($ioSlots != "Unspecified") { // call the extension to do the actual change set_num_mailbox_slots( $user, $ioSlots ); $returnMessage = $returnMessage."
  • I/O Slot Configuration
  • "; } if ($cSlots != "Unspecified") { // call the extension to do the actual change set_num_cleaning_slots( $user, $cSlots ); $returnMessage = $returnMessage."
  • Cleaning Slot Configuration
  • "; } if ($partitionCount != "Unspecified") { $returnMessage = $returnMessage."
  • Logical Library Partitioning (Auto)
  • "; if ($config == "Unspecified") { auto_partition($user, $partitionCount); } else { auto_partition($user, $partitionCount, $libNames); $returnMessage = $returnMessage."
    Logical Libraries created: "; for ($i = 0; $i < $partitionCount; $i++) { $returnMessage = $returnMessage."
  • $libNames[$i]
  • "; } } } } ?> Setup Wizard