Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
d89614ab
Commit
d89614ab
authored
Sep 18, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
theme: fix selection; closes #388
parent
cd4b8267
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
16 deletions
+15
-16
guiconfig.inc
src/www/guiconfig.inc
+15
-16
No files found.
src/www/guiconfig.inc
View file @
d89614ab
...
...
@@ -30,16 +30,15 @@
require_once
(
"config.inc"
);
require_once
(
"util.inc"
);
/* Include authentication routines */
/* THIS MUST BE ABOVE ALL OTHER CODE */
if
(
empty
(
$nocsrf
))
{
function
csrf_startup
()
{
if
(
empty
(
$nocsrf
))
{
function
csrf_startup
()
{
csrf_conf
(
'rewrite-js'
,
'/csrf/csrf-magic.js'
);
$timeout_minutes
=
isset
(
$config
[
'system'
][
'webgui'
][
'session_timeout'
])
?
$config
[
'system'
][
'webgui'
][
'session_timeout'
]
:
240
;
csrf_conf
(
'expires'
,
$timeout_minutes
*
60
);
}
require_once
(
"csrf/csrf-magic.php"
);
require_once
(
'csrf/csrf-magic.php'
);
}
function
set_language
(
$lang
)
...
...
@@ -54,7 +53,18 @@ function set_language($lang)
bind_textdomain_codeset
(
$textdomain
,
$lang_encoding
);
}
function
get_current_theme
()
{
global
$config
;
$theme
=
'opnsense'
;
if
(
isset
(
$config
[
'theme'
])
&&
is_dir
(
'/usr/local/opnsense/www/themes/'
.
$config
[
'theme'
]))
{
$theme
=
$config
[
'theme'
];
}
return
$theme
;
}
/* make sure nothing is cached */
if
(
isset
(
$omit_nocacheheaders
)
&&
$omit_nocacheheaders
)
{
...
...
@@ -699,14 +709,3 @@ function get_menu_messages()
return
(
$menu_messages
);
}
function
get_current_theme
()
{
$theme
=
'opnsense'
;
if
(
isset
(
$config
[
'theme'
])
&&
is_dir
(
'/usr/local/opnsense/www/themes/'
.
$config
[
'theme'
]))
{
$theme
=
$config
[
'theme'
];
}
return
$theme
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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