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
Container Registry
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
Helmo
ISPConfig 3
Commits
af4c7ab6
Commit
af4c7ab6
authored
9 years ago
by
Marius Cramer
Browse files
Options
Downloads
Patches
Plain Diff
- ported some patches
parent
b418037a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
interface/lib/classes/remote.d/sites.inc.php
+6
-6
6 additions, 6 deletions
interface/lib/classes/remote.d/sites.inc.php
interface/lib/classes/remoting.inc.php
+1
-0
1 addition, 0 deletions
interface/lib/classes/remoting.inc.php
with
7 additions
and
6 deletions
interface/lib/classes/remote.d/sites.inc.php
+
6
−
6
View file @
af4c7ab6
...
@@ -405,7 +405,7 @@ class remoting_sites extends remoting {
...
@@ -405,7 +405,7 @@ class remoting_sites extends remoting {
return
false
;
return
false
;
}
}
$app
->
uses
(
'remoting_lib'
);
$app
->
uses
(
'remoting_lib'
);
$app
->
remoting_lib
->
loadFormDef
(
'../sites/form/web_domain.tform.php'
);
$app
->
remoting_lib
->
loadFormDef
(
'../sites/form/web_
vhost_
domain.tform.php'
);
return
$app
->
remoting_lib
->
getDataRecord
(
$primary_id
);
return
$app
->
remoting_lib
->
getDataRecord
(
$primary_id
);
}
}
...
@@ -434,7 +434,7 @@ class remoting_sites extends remoting {
...
@@ -434,7 +434,7 @@ class remoting_sites extends remoting {
if
(
$params
[
'pm_min_spare_servers'
]
==
''
)
$params
[
'pm_min_spare_servers'
]
=
1
;
if
(
$params
[
'pm_min_spare_servers'
]
==
''
)
$params
[
'pm_min_spare_servers'
]
=
1
;
if
(
$params
[
'pm_max_spare_servers'
]
==
''
)
$params
[
'pm_max_spare_servers'
]
=
1
;
if
(
$params
[
'pm_max_spare_servers'
]
==
''
)
$params
[
'pm_max_spare_servers'
]
=
1
;
$domain_id
=
$this
->
insertQuery
(
'../sites/form/web_domain.tform.php'
,
$client_id
,
$params
,
'sites:web_domain:on_after_insert'
);
$domain_id
=
$this
->
insertQuery
(
'../sites/form/web_
vhost_
domain.tform.php'
,
$client_id
,
$params
,
'sites:web_domain:on_after_insert'
);
if
(
$readonly
===
true
)
if
(
$readonly
===
true
)
$app
->
db
->
query
(
"UPDATE web_domain SET `sys_userid` = '1' WHERE domain_id = ?"
,
$domain_id
);
$app
->
db
->
query
(
"UPDATE web_domain SET `sys_userid` = '1' WHERE domain_id = ?"
,
$domain_id
);
return
$domain_id
;
return
$domain_id
;
...
@@ -454,7 +454,7 @@ class remoting_sites extends remoting {
...
@@ -454,7 +454,7 @@ class remoting_sites extends remoting {
if
(
$params
[
'pm_min_spare_servers'
]
==
''
)
$params
[
'pm_min_spare_servers'
]
=
1
;
if
(
$params
[
'pm_min_spare_servers'
]
==
''
)
$params
[
'pm_min_spare_servers'
]
=
1
;
if
(
$params
[
'pm_max_spare_servers'
]
==
''
)
$params
[
'pm_max_spare_servers'
]
=
1
;
if
(
$params
[
'pm_max_spare_servers'
]
==
''
)
$params
[
'pm_max_spare_servers'
]
=
1
;
$affected_rows
=
$this
->
updateQuery
(
'../sites/form/web_domain.tform.php'
,
$client_id
,
$primary_id
,
$params
);
$affected_rows
=
$this
->
updateQuery
(
'../sites/form/web_
vhost_
domain.tform.php'
,
$client_id
,
$primary_id
,
$params
);
return
$affected_rows
;
return
$affected_rows
;
}
}
...
@@ -465,7 +465,7 @@ class remoting_sites extends remoting {
...
@@ -465,7 +465,7 @@ class remoting_sites extends remoting {
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
return
false
;
}
}
$affected_rows
=
$this
->
deleteQuery
(
'../sites/form/web_domain.tform.php'
,
$primary_id
);
$affected_rows
=
$this
->
deleteQuery
(
'../sites/form/web_
vhost_
domain.tform.php'
,
$primary_id
);
return
$affected_rows
;
return
$affected_rows
;
}
}
...
@@ -864,11 +864,11 @@ class remoting_sites extends remoting {
...
@@ -864,11 +864,11 @@ class remoting_sites extends remoting {
}
else
{
}
else
{
$status
=
'n'
;
$status
=
'n'
;
}
}
$app
->
remoting_lib
->
loadFormDef
(
'../sites/form/web_domain.tform.php'
);
$app
->
remoting_lib
->
loadFormDef
(
'../sites/form/web_
vhost_
domain.tform.php'
);
$params
=
$app
->
remoting_lib
->
getDataRecord
(
$primary_id
);
$params
=
$app
->
remoting_lib
->
getDataRecord
(
$primary_id
);
$params
[
'active'
]
=
$status
;
$params
[
'active'
]
=
$status
;
$affected_rows
=
$this
->
updateQuery
(
'../sites/form/web_domain.tform.php'
,
0
,
$primary_id
,
$params
);
$affected_rows
=
$this
->
updateQuery
(
'../sites/form/web_
vhost_
domain.tform.php'
,
0
,
$primary_id
,
$params
);
return
$affected_rows
;
return
$affected_rows
;
}
else
{
}
else
{
throw
new
SoapFault
(
'status_undefined'
,
'The status is not available'
);
throw
new
SoapFault
(
'status_undefined'
,
'The status is not available'
);
...
...
This diff is collapsed.
Click to expand it.
interface/lib/classes/remoting.inc.php
+
1
−
0
View file @
af4c7ab6
...
@@ -340,6 +340,7 @@ class remoting {
...
@@ -340,6 +340,7 @@ class remoting {
//* Get the SQL query
//* Get the SQL query
$sql
=
$app
->
remoting_lib
->
getSQL
(
$params
,
'UPDATE'
,
$primary_id
);
$sql
=
$app
->
remoting_lib
->
getSQL
(
$params
,
'UPDATE'
,
$primary_id
);
// throw new SoapFault('debug', $sql);
// throw new SoapFault('debug', $sql);
if
(
$app
->
remoting_lib
->
errorMessage
!=
''
)
{
if
(
$app
->
remoting_lib
->
errorMessage
!=
''
)
{
throw
new
SoapFault
(
'data_processing_error'
,
$app
->
remoting_lib
->
errorMessage
);
throw
new
SoapFault
(
'data_processing_error'
,
$app
->
remoting_lib
->
errorMessage
);
...
...
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