';
echo sprintf(
'',
__('Ask the owner of the remote instance for a sync account on their instance, log into their MISP using the sync user\'s credentials and retrieve your API key by navigating to Global actions -> My profile. This key is used to authenticate with the remote instance.'),
$this->Form->input('authkey', [
'type' => 'text',
'placeholder' => __('Leave empty to use current key'),
'autocomplete' => 'off',
])
);
echo '
';
echo '';
echo $this->Form->input('push', array());
echo $this->Form->input('pull', array());
echo $this->Form->input('push_sightings', array());
echo $this->Form->input('caching_enabled', array());
echo $this->Form->input('push_galaxy_clusters', array());
echo $this->Form->input('pull_galaxy_clusters', array());
echo '
' . __('Misc settings') . '
';
echo $this->Form->input('unpublish_event', array(
'type' => 'checkbox',
));
echo '';
echo $this->Form->input('publish_without_email', array(
'type' => 'checkbox',
));
echo '';
echo $this->Form->input('self_signed', array(
'type' => 'checkbox',
'label' => 'Allow self signed certificates (unsecure)'
));
echo '';
echo $this->Form->input('skip_proxy', array('type' => 'checkbox', 'label' => 'Skip proxy (if applicable)'));
?>
Not set.';
?>
Form->input('Server.submitted_cert', array(
'label' => 'submitted_cert',
'type' => 'file',
'div' => false
));
?>
Not set.';
?>
Form->input('Server.submitted_client_cert', array(
'label' => 'submitted_client_cert',
'type' => 'file',
'div' => false
));
?>
Form->input('push_rules', array('style' => 'display:none;', 'label' => false, 'div' => false));
echo $this->Form->input('pull_rules', array('style' => 'display:none;', 'label' => false, 'div' => false));
echo $this->Form->input('json', array('style' => 'display:none;', 'label' => false, 'div' => false));
echo $this->Form->checkbox('delete_cert', array('style' => 'display:none;', 'label' => false, 'div' => false));
echo $this->Form->checkbox('delete_client_cert', array('style' => 'display:none;', 'label' => false, 'div' => false));
?>
Form->end();
?>
[
'title' => __('Set PUSH rules'),
'content' => [
[
'html' => sprintf('
%s
', __('Configure the rules to be applied when PUSHing data to the server'))
],
[
'html' => $this->element('serverRuleElements/push', [
'allTags' => $allTags,
'allOrganisations' => $allOrganisations,
'ruleObject' => $pushRules
])
]
],
],
'type' => 'xl',
'class' => 'push-rule-modal',
'confirm' => [
'title' => __('Update'),
'onclick' => "serverRulesUpdateState('push');"
]
];
echo $this->element('genericElements/infoModal', $modalData);
$modalData['data']['title'] = __('Set PULL rules');
$modalData['data']['content'][0]['html'] = sprintf('%s
', __('Configure the rules to be applied when PULLing data from the server'));
$modalData['data']['content'][1]['html'] = $this->element('serverRuleElements/pull', [
'context' => 'servers',
'ruleObject' => $pullRules
]);
$modalData['class'] = 'pull-rule-modal';
$modalData['confirm']['onclick'] = "serverRulesUpdateState('pull');";
echo $this->element('genericElements/infoModal', $modalData);
?>
= $this->element('/genericElements/SideMenu/side_menu', array('menuList' => 'sync', 'menuItem' => $this->action)); ?>