Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Zvonimir
ISPConfig 3
Commits
eed9fb8f
Commit
eed9fb8f
authored
Aug 21, 2014
by
Sergio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
display IPs for default webserver
parent
a9e6315b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
interface/web/sites/web_vhost_domain_edit.php
interface/web/sites/web_vhost_domain_edit.php
+7
-3
No files found.
interface/web/sites/web_vhost_domain_edit.php
View file @
eed9fb8f
...
...
@@ -458,9 +458,13 @@ class page_action extends tform_actions {
}
$server_id
=
intval
(
@
$this
->
dataRecord
[
"server_id"
]);
}
else
{
// Get the first server ID
$tmp
=
$app
->
db
->
queryOneRecord
(
"SELECT server_id FROM server WHERE web_server = 1 ORDER BY server_name LIMIT 0,1"
);
$server_id
=
intval
(
$tmp
[
'server_id'
]);
$settings
=
$app
->
getconf
->
get_global_config
(
'sites'
);
$server_id
=
intval
(
$settings
[
'default_webserver'
]);
if
(
!
$server_id
)
{
// Get the first server ID
$tmp
=
$app
->
db
->
queryOneRecord
(
"SELECT server_id FROM server WHERE web_server = 1 ORDER BY server_name LIMIT 0,1"
);
$server_id
=
intval
(
$tmp
[
'server_id'
]);
}
}
//* get global web config
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment