Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
e1f89db2
Commit
e1f89db2
authored
Mar 04, 2009
by
tbrehm
Browse files
No commit message
No commit message
parent
967cd65c
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/sites/database_edit.php
View file @
e1f89db2
...
...
@@ -239,8 +239,8 @@ class page_action extends tform_actions {
}
//* Database username and database name shall not be empty
if
(
$this
->
dataRecord
[
'database_name'
]
==
''
)
$app
->
tform
->
errorMessage
.
=
$app
->
tform
->
wordbook
[
"database_name_error_empty"
];
if
(
$this
->
dataRecord
[
'database_user'
]
==
''
)
$app
->
tform
->
errorMessage
.
=
$app
->
tform
->
wordbook
[
"database_user_error_empty"
];
if
(
$this
->
dataRecord
[
'database_name'
]
==
''
)
$app
->
tform
->
errorMessage
.
=
$app
->
tform
->
wordbook
[
"database_name_error_empty"
]
.
'<br />'
;
if
(
$this
->
dataRecord
[
'database_user'
]
==
''
)
$app
->
tform
->
errorMessage
.
=
$app
->
tform
->
wordbook
[
"database_user_error_empty"
]
.
'<br />'
;
//* Check if the server has been changed
// We do this only for the admin or reseller users, as normal clients can not change the server ID anyway
...
...
@@ -267,8 +267,8 @@ class page_action extends tform_actions {
global
$app
,
$conf
,
$interfaceConf
;
//* Database username and database name shall not be empty
if
(
$this
->
dataRecord
[
'database_name'
]
==
''
)
$app
->
tform
->
errorMessage
.
=
$app
->
tform
->
wordbook
[
"database_name_error_empty"
];
if
(
$this
->
dataRecord
[
'database_user'
]
==
''
)
$app
->
tform
->
errorMessage
.
=
$app
->
tform
->
wordbook
[
"database_user_error_empty"
];
if
(
$this
->
dataRecord
[
'database_name'
]
==
''
)
$app
->
tform
->
errorMessage
.
=
$app
->
tform
->
wordbook
[
"database_name_error_empty"
]
.
'<br />'
;
if
(
$this
->
dataRecord
[
'database_user'
]
==
''
)
$app
->
tform
->
errorMessage
.
=
$app
->
tform
->
wordbook
[
"database_user_error_empty"
]
.
'<br />'
;
//* Get the database name and database user prefix
$app
->
uses
(
'getconf'
);
...
...
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