Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
7c19f2db
Commit
7c19f2db
authored
Feb 28, 2014
by
Falko Timme
Browse files
- Databases: Make sure backup_interval is a string, not an integer.
parent
ceab233d
Changes
2
Hide whitespace changes
Inline
Side-by-side
interface/web/sites/database_edit.php
View file @
7c19f2db
...
...
@@ -421,7 +421,7 @@ class page_action extends tform_actions {
//* The Database user shall be owned by the same group then the website
$sys_groupid
=
$app
->
functions
->
intval
(
$web
[
'sys_groupid'
]);
$backup_interval
=
$web
[
'backup_interval'
];
$backup_interval
=
$app
->
db
->
quote
(
$web
[
'backup_interval'
]
)
;
$backup_copies
=
$app
->
functions
->
intval
(
$web
[
'backup_copies'
]);
$sql
=
"UPDATE web_database SET sys_groupid = '
$sys_groupid
', backup_interval = '
$backup_interval
', backup_copies = '
$backup_copies
' WHERE database_id = "
.
$this
->
id
;
...
...
@@ -437,7 +437,7 @@ class page_action extends tform_actions {
//* The Database user shall be owned by the same group then the website
$sys_groupid
=
$app
->
functions
->
intval
(
$web
[
'sys_groupid'
]);
$backup_interval
=
$web
[
'backup_interval'
];
$backup_interval
=
$app
->
db
->
quote
(
$web
[
'backup_interval'
]
)
;
$backup_copies
=
$app
->
functions
->
intval
(
$web
[
'backup_copies'
]);
$sql
=
"UPDATE web_database SET sys_groupid = '
$sys_groupid
', backup_interval = '
$backup_interval
', backup_copies = '
$backup_copies
' WHERE database_id = "
.
$this
->
id
;
...
...
interface/web/sites/web_domain_edit.php
View file @
7c19f2db
...
...
@@ -1012,7 +1012,7 @@ class page_action extends tform_actions {
//* Change database backup options when web backup options have been changed
if
(
isset
(
$this
->
dataRecord
[
'backup_interval'
])
&&
(
$this
->
dataRecord
[
'backup_interval'
]
!=
$this
->
oldDataRecord
[
'backup_interval'
]
||
$this
->
dataRecord
[
'backup_copies'
]
!=
$this
->
oldDataRecord
[
'backup_copies'
]))
{
//* Update all databases
$backup_interval
=
$app
->
functions
->
intval
(
$this
->
dataRecord
[
'backup_interval'
]);
$backup_interval
=
$app
->
db
->
quote
(
$this
->
dataRecord
[
'backup_interval'
]);
$backup_copies
=
$app
->
functions
->
intval
(
$this
->
dataRecord
[
'backup_copies'
]);
$records
=
$app
->
db
->
queryAllRecords
(
"SELECT database_id FROM web_database WHERE parent_domain_id = "
.
$this
->
id
);
foreach
(
$records
as
$rec
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment