Skip to content

Commit ef20902

Browse files
author
Till Brehm
committed
Merge branch 'stable-3.1' into 'stable-3.1'
Show server hostname under system > server config (#5063) See merge request ispconfig/ispconfig3!800
2 parents 67d81d3 + cbd3cd1 commit ef20902

14 files changed

+30
-22
lines changed

interface/web/admin/server_config_edit.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ function onShowEdit() {
7272
$app->tpl->setVar($record);
7373
}
7474

75+
function onShowEnd() {
76+
global $app;
77+
78+
$app->tpl->setVar('server_name', $app->db->queryOneRecord("SELECT server_name FROM server WHERE server_id = ? AND ((SELECT COUNT(*) FROM server) > 1)", $this->id)['server_name']);
79+
80+
parent::onShowEnd();
81+
}
82+
7583
function onUpdateSave($sql) {
7684
global $app, $conf;
7785

interface/web/admin/templates/server_config_cron_edit.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class='page-header'>
2-
<h1><tmpl_var name="list_head_txt"></h1>
2+
<h1><tmpl_var name="list_head_txt"> {tmpl_var name='server_name'}</h1>
33
</div>
44
<p><tmpl_var name="list_desc_txt"></p>
55

@@ -21,4 +21,4 @@ <h1><tmpl_var name="list_head_txt"></h1>
2121
<div class="clear"><div class="right">
2222
<button class="btn btn-default formbutton-success" type="button" value="{tmpl_var name='btn_save_txt'}" data-submit-form="pageForm" data-form-action="admin/server_config_edit.php">{tmpl_var name='btn_save_txt'}</button>
2323
<button class="btn btn-default formbutton-default" type="button" value="{tmpl_var name='btn_cancel_txt'}" data-load-content="admin/server_config_list.php">{tmpl_var name='btn_cancel_txt'}</button>
24-
</div></div>
24+
</div></div>

interface/web/admin/templates/server_config_dns_edit.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class='page-header'>
2-
<h1><tmpl_var name="list_head_txt"></h1>
2+
<h1><tmpl_var name="list_head_txt"> {tmpl_var name='server_name'}</h1>
33
</div>
44
<p><tmpl_var name="list_desc_txt"></p>
55

interface/web/admin/templates/server_config_fastcgi_edit.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class='page-header'>
2-
<h1><tmpl_var name="list_head_txt"></h1>
2+
<h1><tmpl_var name="list_head_txt"> {tmpl_var name='server_name'}</h1>
33
</div>
44
<p><tmpl_var name="list_desc_txt"></p>
55

@@ -39,4 +39,4 @@ <h1><tmpl_var name="list_head_txt"></h1>
3939
<div class="clear"><div class="right">
4040
<button class="btn btn-default formbutton-success" type="button" value="{tmpl_var name='btn_save_txt'}" data-submit-form="pageForm" data-form-action="admin/server_config_edit.php">{tmpl_var name='btn_save_txt'}</button>
4141
<button class="btn btn-default formbutton-default" type="button" value="{tmpl_var name='btn_cancel_txt'}" data-load-content="admin/server_config_list.php">{tmpl_var name='btn_cancel_txt'}</button>
42-
</div></div>
42+
</div></div>

interface/web/admin/templates/server_config_getmail_edit.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class='page-header'>
2-
<h1><tmpl_var name="list_head_txt"></h1>
2+
<h1><tmpl_var name="list_head_txt"> {tmpl_var name='server_name'}</h1>
33
</div>
44
<p><tmpl_var name="list_desc_txt"></p>
55

@@ -15,4 +15,4 @@ <h1><tmpl_var name="list_head_txt"></h1>
1515
<div class="clear"><div class="right">
1616
<button class="btn btn-default formbutton-success" type="button" value="{tmpl_var name='btn_save_txt'}" data-submit-form="pageForm" data-form-action="admin/server_config_edit.php">{tmpl_var name='btn_save_txt'}</button>
1717
<button class="btn btn-default formbutton-default" type="button" value="{tmpl_var name='btn_cancel_txt'}" data-load-content="admin/server_config_list.php">{tmpl_var name='btn_cancel_txt'}</button>
18-
</div></div>
18+
</div></div>

interface/web/admin/templates/server_config_jailkit_edit.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class='page-header'>
2-
<h1><tmpl_var name="list_head_txt"></h1>
2+
<h1><tmpl_var name="list_head_txt"> {tmpl_var name='server_name'}</h1>
33
</div>
44
<p><tmpl_var name="list_desc_txt"></p>
55

@@ -24,4 +24,4 @@ <h1><tmpl_var name="list_head_txt"></h1>
2424
<div class="clear"><div class="right">
2525
<button class="btn btn-default formbutton-success" type="button" value="{tmpl_var name='btn_save_txt'}" data-submit-form="pageForm" data-form-action="admin/server_config_edit.php">{tmpl_var name='btn_save_txt'}</button>
2626
<button class="btn btn-default formbutton-default" type="button" value="{tmpl_var name='btn_cancel_txt'}" data-load-content="admin/server_config_list.php">{tmpl_var name='btn_cancel_txt'}</button>
27-
</div></div>
27+
</div></div>

interface/web/admin/templates/server_config_mail_edit.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class='page-header'>
2-
<h1><tmpl_var name="list_head_txt"></h1>
2+
<h1><tmpl_var name="list_head_txt"> {tmpl_var name='server_name'}</h1>
33
</div>
44
<p><tmpl_var name="list_desc_txt"></p>
55

interface/web/admin/templates/server_config_rescue_edit.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class='page-header'>
2-
<h1><tmpl_var name="list_head_txt"></h1>
2+
<h1><tmpl_var name="list_head_txt"> {tmpl_var name='server_name'}</h1>
33
</div>
44
<p><tmpl_var name="list_desc_txt"></p>
55

interface/web/admin/templates/server_config_server_edit.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class='page-header'>
2-
<h1><tmpl_var name="list_head_txt"></h1>
2+
<h1><tmpl_var name="list_head_txt"> {tmpl_var name='server_name'}</h1>
33
</div>
44
<p><tmpl_var name="list_desc_txt"></p>
55

interface/web/admin/templates/server_config_ufw_edit.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class='page-header'>
2-
<h1><tmpl_var name="list_head_txt"></h1>
2+
<h1><tmpl_var name="list_head_txt"> {tmpl_var name='server_name'}</h1>
33
</div>
44
<p><tmpl_var name="list_desc_txt"></p>
55

@@ -60,4 +60,4 @@ <h1><tmpl_var name="list_head_txt"></h1>
6060
<div class="clear"><div class="right">
6161
<button class="btn btn-default formbutton-success" type="button" value="{tmpl_var name='btn_save_txt'}" data-submit-form="pageForm" data-form-action="admin/server_config_edit.php">{tmpl_var name='btn_save_txt'}</button>
6262
<button class="btn btn-default formbutton-default" type="button" value="{tmpl_var name='btn_cancel_txt'}" data-load-content="admin/server_config_list.php">{tmpl_var name='btn_cancel_txt'}</button>
63-
</div></div>
63+
</div></div>

0 commit comments

Comments
 (0)