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
664f54f6
Commit
664f54f6
authored
Sep 12, 2012
by
mcramer
Browse files
Bugfix: Database creation through remoting api failed
parent
54f1581b
Changes
3
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/remoting.inc.php
View file @
664f54f6
...
...
@@ -1255,6 +1255,8 @@ class remoting {
//* Add a record
public
function
sites_database_add
(
$session_id
,
$client_id
,
$params
)
{
global
$app
;
if
(
!
$this
->
checkPerm
(
$session_id
,
'sites_database_add'
))
{
$this
->
server
->
fault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
...
...
@@ -1277,6 +1279,8 @@ class remoting {
//* Update a record
public
function
sites_database_update
(
$session_id
,
$client_id
,
$primary_id
,
$params
)
{
global
$app
;
if
(
!
$this
->
checkPerm
(
$session_id
,
'sites_database_update'
))
{
$this
->
server
->
fault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
...
...
@@ -1298,6 +1302,7 @@ class remoting {
//* Delete a record
public
function
sites_database_delete
(
$session_id
,
$primary_id
)
{
global
$app
;
if
(
!
$this
->
checkPerm
(
$session_id
,
'sites_database_delete'
))
{
$this
->
server
->
fault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
...
...
interface/lib/classes/tform.inc.php
View file @
664f54f6
...
...
@@ -400,7 +400,7 @@ class tform {
$selected
=
(
$k
==
$val
)
?
' SELECTED'
:
''
;
if
(
!
empty
(
$this
->
wordbook
[
$v
]))
$v
=
$this
->
wordbook
[
$v
];
$out
.
=
"<option value='
$k
'
$selected
>
$v
</option>
\r\n
"
;
$out
.
=
"<option value='
$k
'
$selected
>
"
.
$this
->
lng
(
$v
)
.
"
</option>
\r\n
"
;
}
}
$new_record
[
$key
]
=
$out
;
...
...
interface/web/sites/form/database.tform.php
View file @
664f54f6
...
...
@@ -83,7 +83,7 @@ $form["tabs"]['database'] = array (
'keyfield'
=>
'domain_id'
,
'valuefield'
=>
'domain'
),
'value'
=>
array
(
'0'
=>
$app
->
tform
->
lng
(
'select_site_txt'
)
)
'value'
=>
array
(
'0'
=>
'select_site_txt'
)
),
'type'
=>
array
(
'datatype'
=>
'VARCHAR'
,
...
...
@@ -115,7 +115,7 @@ $form["tabs"]['database'] = array (
'keyfield'
=>
'database_user_id'
,
'valuefield'
=>
'database_user'
),
'value'
=>
array
(
'0'
=>
$app
->
tform
->
lng
(
'select_dbuser_txt'
)
)
'value'
=>
array
(
'0'
=>
'select_dbuser_txt'
)
),
'database_ro_user_id'
=>
array
(
'datatype'
=>
'INTEGER'
,
...
...
@@ -126,7 +126,7 @@ $form["tabs"]['database'] = array (
'keyfield'
=>
'database_user_id'
,
'valuefield'
=>
'database_user'
),
'value'
=>
array
(
'0'
=>
$app
->
tform
->
lng
(
'no_dbuser_txt'
)
)
'value'
=>
array
(
'0'
=>
'no_dbuser_txt'
)
),
'database_charset'
=>
array
(
'datatype'
=>
'VARCHAR'
,
...
...
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