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
lolo888
ISPConfig 3
Commits
87c1a07e
Commit
87c1a07e
authored
May 23, 2011
by
latham
Browse files
Use the theme and common settings from config.inc.php or config.inc.local.php
parent
de676ef1
Changes
2
Hide whitespace changes
Inline
Side-by-side
interface/web/client/form/client.tform.php
View file @
87c1a07e
...
...
@@ -164,7 +164,7 @@ $form["tabs"]['address'] = array (
'usertheme'
=>
array
(
'datatype'
=>
'VARCHAR'
,
'formtype'
=>
'SELECT'
,
'default'
=>
'default'
,
'default'
=>
$conf
[
"theme"
]
,
'value'
=>
$themes_list
,
'separator'
=>
''
,
'width'
=>
'30'
,
...
...
interface/web/client/form/reseller.tform.php
View file @
87c1a07e
...
...
@@ -50,6 +50,17 @@ $form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update,
$form
[
"auth_preset"
][
"perm_group"
]
=
'riud'
;
//r = read, i = insert, u = update, d = delete
$form
[
"auth_preset"
][
"perm_other"
]
=
''
;
//r = read, i = insert, u = update, d = delete
//* Load themes
$themes_list
=
array
();
$handle
=
@
opendir
(
ISPC_THEMES_PATH
);
while
(
$file
=
@
readdir
(
$handle
))
{
if
(
substr
(
$file
,
0
,
1
)
!=
'.'
)
{
if
(
@
is_dir
(
ISPC_THEMES_PATH
.
"/
$file
"
))
{
$themes_list
[
$file
]
=
$file
;
}
}
}
//* Languages
$language_list
=
array
();
$handle
=
@
opendir
(
ISPC_ROOT_PATH
.
'/lib/lang'
);
...
...
@@ -153,8 +164,8 @@ $form["tabs"]['address'] = array (
'usertheme'
=>
array
(
'datatype'
=>
'VARCHAR'
,
'formtype'
=>
'SELECT'
,
'default'
=>
'default'
,
'value'
=>
array
(
'default'
=>
'default'
)
,
'default'
=>
$conf
[
"theme"
]
,
'value'
=>
$themes_list
,
'separator'
=>
''
,
'width'
=>
'30'
,
'maxlength'
=>
'255'
,
...
...
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