$cfgPtr['remotehost'] = $form->getTextFld('remotehost'); $cfgPtr['remoteport'] = $form->getTextFld('remoteport'); } // save configuration $retval = 0; write_config(); if (!file_exists($d_sysrebootreqd_path)) { config_lock(); $retval |= restartSyslog($config); config_unlock(); } $savemsg = get_std_save_message($retval); } } else { // prepare the configuration form $form->startFieldSet('fset_local', _('Local log')); if (($logPath = getSvcState($config, 'systemlog')) == !false) { $form->startBlock('rw_localmode'); $form->setLabel(null, _('Mode'), 'mode', 'class=labelcol'); $form->startBlock('rw_localmode', 'right'); $form->setField('mode', 'select', 'name=mode'); // $modeOptions = array('membuffer' => _('Shared memory circular buffer'), 'disk' => _('Disk') . " ({$logPath}/messages)"); $form->setSelectOptFill('mode', $modeOptions); $form->setFieldOptionsState('mode', $cfgPtr['mode'], 'membuffer'); $form->setBlockHint('hint-syslogmode', _('Choose where log application writes the log messages it receives.') . '<br>' . _('Messages written to shared memory will not survive across reboots.')); // $form->exitBlock(); } $form->startBlock('rw_buffer'); $form->setLabel(null, _('Buffer size'), 'buffer', 'class=labelcol');