Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ISPConfig
ISPConfig 3
Commits
f5655fde
Commit
f5655fde
authored
7 years ago
by
Florian Schaal
Browse files
Options
Downloads
Patches
Plain Diff
extend last commit
parent
a268a1a6
No related branches found
No related tags found
1 merge request
!678
Prevent master from being a mirror (Fixs #4854)
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
interface/web/admin/server_edit.php
+2
-2
2 additions, 2 deletions
interface/web/admin/server_edit.php
interface/web/admin/templates/server_edit_services.htm
+9
-7
9 additions, 7 deletions
interface/web/admin/templates/server_edit_services.htm
with
11 additions
and
9 deletions
interface/web/admin/server_edit.php
+
2
−
2
View file @
f5655fde
...
@@ -72,8 +72,8 @@ class page_action extends tform_actions {
...
@@ -72,8 +72,8 @@ class page_action extends tform_actions {
function
onSubmit
()
{
function
onSubmit
()
{
global
$app
;
global
$app
;
//* We do not want to mirror the the server itself
//* We do not want to mirror the the server itself
and the master can not be a mirror
if
(
$this
->
id
==
$this
->
dataRecord
[
'mirror_server_id'
])
$this
->
dataRecord
[
'mirror_server_id'
]
=
0
;
if
(
$this
->
id
==
$this
->
dataRecord
[
'mirror_server_id'
]
||
$this
->
id
==
1
)
$this
->
dataRecord
[
'mirror_server_id'
]
=
0
;
parent
::
onSubmit
();
parent
::
onSubmit
();
...
...
This diff is collapsed.
Click to expand it.
interface/web/admin/templates/server_edit_services.htm
+
9
−
7
View file @
f5655fde
...
@@ -50,12 +50,14 @@
...
@@ -50,12 +50,14 @@
{tmpl_var name='xmpp_server'}
{tmpl_var name='xmpp_server'}
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<tmpl_if
name=
"id"
op=
"!="
value=
"1"
>
<label
for=
"mirror_server_id"
class=
"col-sm-3 control-label"
>
{tmpl_var name='mirror_server_id_txt'}
</label>
<div
class=
"form-group"
>
<div
class=
"col-sm-9"
><select
name=
"mirror_server_id"
id=
"server_id"
class=
"form-control"
>
<label
for=
"mirror_server_id"
class=
"col-sm-3 control-label"
>
{tmpl_var name='mirror_server_id_txt'}
</label>
{tmpl_var name='mirror_server_id'}
<div
class=
"col-sm-9"
><select
name=
"mirror_server_id"
id=
"server_id"
class=
"form-control"
>
</select></div>
{tmpl_var name='mirror_server_id'}
</div>
</select></div>
</div>
</tmpl_if>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"active"
class=
"col-sm-3 control-label"
>
{tmpl_var name='active_txt'}
</label>
<label
for=
"active"
class=
"col-sm-3 control-label"
>
{tmpl_var name='active_txt'}
</label>
<div
class=
"col-sm-9"
><select
name=
"active"
id=
"active"
class=
"form-control"
>
<div
class=
"col-sm-9"
><select
name=
"active"
id=
"active"
class=
"form-control"
>
...
@@ -69,4 +71,4 @@
...
@@ -69,4 +71,4 @@
<div
class=
"clear"
><div
class=
"right"
>
<div
class=
"clear"
><div
class=
"right"
>
<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_edit.php"
>
{tmpl_var name='btn_save_txt'}
</button>
<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_edit.php"
>
{tmpl_var name='btn_save_txt'}
</button>
<button
class=
"btn btn-default formbutton-default"
type=
"button"
value=
"{tmpl_var name='btn_cancel_txt'}"
data-load-content=
"admin/server_list.php"
>
{tmpl_var name='btn_cancel_txt'}
</button>
<button
class=
"btn btn-default formbutton-default"
type=
"button"
value=
"{tmpl_var name='btn_cancel_txt'}"
data-load-content=
"admin/server_list.php"
>
{tmpl_var name='btn_cancel_txt'}
</button>
</div></div>
</div></div>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment