Update server update form
This commit is contained in:
parent
0291f8f3cd
commit
60eb03416a
|
@ -95,7 +95,8 @@ abstract class AbstractServerController extends AbstractController
|
|||
`s`.`website_password`,
|
||||
`s`.`last_error`,
|
||||
`s`.`last_error_output`,
|
||||
`s`.`last_output`
|
||||
`s`.`last_output`,
|
||||
`s`.`custom_header`
|
||||
FROM `" . PSM_DB_PREFIX . "servers` AS `s`
|
||||
{$sql_join}
|
||||
{$sql_where}
|
||||
|
|
|
@ -246,6 +246,7 @@ class ServerController extends AbstractServerController
|
|||
'edit_pushover_selected' => $edit_server['pushover'],
|
||||
'edit_telegram_selected' => $edit_server['telegram'],
|
||||
'edit_jabber_selected' => $edit_server['jabber'],
|
||||
'edit_custom_header' => $edit_server['custom_header'],
|
||||
));
|
||||
}
|
||||
|
||||
|
@ -322,6 +323,7 @@ class ServerController extends AbstractServerController
|
|||
'webhook' => in_array($_POST['webhook'], array('yes', 'no')) ? $_POST['webhook'] : 'no',
|
||||
'telegram' => in_array($_POST['telegram'], array('yes', 'no')) ? $_POST['telegram'] : 'no',
|
||||
'jabber' => in_array($_POST['jabber'], array('yes', 'no')) ? $_POST['jabber'] : 'no',
|
||||
'custom_header' => empty(psm_POST('custom_header')) ? null : psm_POST('custom_header'),
|
||||
);
|
||||
// make sure websites start with http://
|
||||
if (
|
||||
|
@ -636,6 +638,8 @@ class ServerController extends AbstractServerController
|
|||
'label_log_no_logs' => psm_get_lang('log', 'no_logs'),
|
||||
'label_date' => psm_get_lang('system', 'date'),
|
||||
'label_message' => psm_get_lang('system', 'message'),
|
||||
'label_custom_header' => psm_get_lang('servers', 'custom_header'),
|
||||
'label_custom_header_description' => psm_get_lang('servers', 'custom_header_description'),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -120,6 +120,12 @@
|
|||
{{ macro.input_field("number", "timeout", null, "timeout", label_timeout, edit_value_timeout, default_value_timeout, "10", 'timeout_help', label_timeout_description) }}
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend>{{ label_custom_header }} ({{ label_optional }})</legend>
|
||||
<div class="col">
|
||||
{{ macro.input_field("text", "custom_header", null, "custom_header", label_custom_header, edit_custom_header, "Cookie:...", null, 'custom_header_help', label_custom_header_description) }}
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="types typeWebsite">
|
||||
<legend>{{ label_authentication_settings }} ({{ label_optional }})</legend>
|
||||
<div class="col">
|
||||
|
|
Loading…
Reference in New Issue