Form->create('Server', array('type' => 'file', 'novalidate' => true)); echo '
'; echo sprintf('%s', $this->action === 'add' ? __('Add Server') : __('Edit Server')); echo '

' . __('Instance identification') . '

'; echo $this->Form->input('url', array( 'label' => __('Base URL'), )); echo $this->Form->input('name', array( 'label' => __('Instance name'), )); echo sprintf( '

%s

%s
', __('You can set this instance up as an internal instance by checking the checkbox below. This means that any synchronisation between this instance and the remote will not be automatically degraded as it would in a normal synchronisation scenario. Please make sure that you own both instances and that you are OK with this otherwise dangerous change. This also requires that the current instance\'s host organisation and the remote sync organisation are the same.'), $this->Form->input('internal', array( 'label' => __('Internal instance'), 'type' => 'checkbox', )) ); ?>

__('Organisation Type'), 'options' => $organisationOptions ); if (!empty($oldRemoteSetting)) { $org_type_form['default'] = $oldRemoteSetting; } echo $this->Form->input('organisation_type', $org_type_form); ?>
'; echo sprintf( '

%s

%s
', __('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 '

' . __('Enabled synchronisation methods') . '

'; 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); ?>
element('/genericElements/SideMenu/side_menu', array('menuList' => 'sync', 'menuItem' => $this->action)); ?>