mirror of https://github.com/MISP/MISP
Replaced the footer text
- added link to the github page of MISP - made the text "Powered by MISP vversion_number" fixed - Replaced the surrounding text fields with two new fields (empty by default)pull/865/head
parent
be31148018
commit
eeb3dcc69b
|
@ -11,8 +11,8 @@ $config = array (
|
|||
'MISP' =>
|
||||
array (
|
||||
'baseurl' => '',
|
||||
'footerpart1' => 'Powered by MISP',
|
||||
'footerpart2' => '© Belgian Defense CERT & NCIRC',
|
||||
'footermidleft' => '',
|
||||
'footermidright' => '',
|
||||
'org' => 'ORGNAME',
|
||||
'showorg' => true,
|
||||
'background_jobs' => true,
|
||||
|
|
|
@ -90,7 +90,6 @@ class Organisation extends AppModel{
|
|||
}
|
||||
|
||||
public function captureOrg($org, $user, $force = false) {
|
||||
|
||||
if (is_array($org)) {
|
||||
if (isset($org['uuid']) && !empty($org['uuid'])) {
|
||||
$conditions = array('uuid' => $org['uuid']);
|
||||
|
|
|
@ -176,17 +176,33 @@ class Server extends AppModel {
|
|||
'test' => 'testForEmpty',
|
||||
'type' => 'string',
|
||||
),
|
||||
'footerpart1' => array(
|
||||
'footermidleft' => array(
|
||||
'level' => 2,
|
||||
'description' => 'Footer text prepending the version number.',
|
||||
'description' => 'Footer text prepending the "Powered by MISP" text.',
|
||||
'value' => '',
|
||||
'errorMessage' => '',
|
||||
'test' => 'testForEmpty',
|
||||
'type' => 'string',
|
||||
),
|
||||
'footermidright' => array(
|
||||
'level' => 2,
|
||||
'description' => 'Footer text following the "Powered by MISP" text.',
|
||||
'value' => '',
|
||||
'errorMessage' => '',
|
||||
'test' => 'testForEmpty',
|
||||
'type' => 'string',
|
||||
),
|
||||
'footerpart1' => array(
|
||||
'level' => 3,
|
||||
'description' => 'This setting is deprecated and can be safely removed.',
|
||||
'value' => '',
|
||||
'errorMessage' => '',
|
||||
'test' => 'testForEmpty',
|
||||
'type' => 'string',
|
||||
),
|
||||
'footerpart2' => array(
|
||||
'level' => 2,
|
||||
'description' => 'Footer text following the version number.',
|
||||
'level' => 3,
|
||||
'description' => 'This setting is deprecated and can be safely removed.',
|
||||
'value' => '',
|
||||
'errorMessage' => '',
|
||||
'test' => 'testForEmpty',
|
||||
|
|
|
@ -12,11 +12,7 @@
|
|||
<?php } ?>
|
||||
</div>
|
||||
<div class = "footerText footerCenterText">
|
||||
<?php
|
||||
$footerText = Configure::read('MISP.footerpart1') . ' ' . Configure::read('MISP.footerpart2');
|
||||
if (isset($me['id'])) $footerText = Configure::read('MISP.footerpart1') . ' version ' . $mispVersionFull . ' ' . Configure::read('MISP.footerpart2');
|
||||
?>
|
||||
<span> <?php echo h($footerText); ?> </span>
|
||||
<span><?php echo h(Configure::read('MISP.footermidleft')); ?> Powered by <a href="https://github.com/MISP/MISP">MISP <?php if (isset($me['id'])) echo h($mispVersionFull);?></a> <?php echo h(Configure::read('MISP.footermidleft')); ?></span>
|
||||
</div>
|
||||
<div class="pull-right" style="position:relative;padding-top:9px;z-index:2;">
|
||||
<?php
|
||||
|
|
Loading…
Reference in New Issue