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
eef47c12
Commit
eef47c12
authored
Jul 06, 2015
by
Ad Schellevis
Committed by
Franco Fichtner
Jul 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) fix some more php notices
parent
be6406d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
guiconfig.inc
src/www/guiconfig.inc
+4
-4
No files found.
src/www/guiconfig.inc
View file @
eef47c12
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
/* Include authentication routines */
/* Include authentication routines */
/* THIS MUST BE ABOVE ALL OTHER CODE */
/* THIS MUST BE ABOVE ALL OTHER CODE */
if
(
!
$nocsrf
)
{
if
(
isset
(
$nocsrf
)
&&
!
$nocsrf
)
{
function
csrf_startup
()
{
function
csrf_startup
()
{
csrf_conf
(
'rewrite-js'
,
'/csrf/csrf-magic.js'
);
csrf_conf
(
'rewrite-js'
,
'/csrf/csrf-magic.js'
);
...
@@ -42,7 +42,7 @@ function csrf_startup() {
...
@@ -42,7 +42,7 @@ function csrf_startup() {
}
}
/* make sure nothing is cached */
/* make sure nothing is cached */
if
(
!
$omit_nocacheheaders
)
{
if
(
isset
(
$omit_nocacheheaders
)
&&
$omit_nocacheheaders
)
{
header
(
"Expires: 0"
);
header
(
"Expires: 0"
);
header
(
"Last-Modified: "
.
gmdate
(
"D, d M Y H:i:s"
)
.
" GMT"
);
header
(
"Last-Modified: "
.
gmdate
(
"D, d M Y H:i:s"
)
.
" GMT"
);
header
(
"Cache-Control: no-store, no-cache, must-revalidate"
);
header
(
"Cache-Control: no-store, no-cache, must-revalidate"
);
...
@@ -58,9 +58,9 @@ require_once("functions.inc");
...
@@ -58,9 +58,9 @@ require_once("functions.inc");
$g
[
'theme'
]
=
get_current_theme
();
$g
[
'theme'
]
=
get_current_theme
();
/* Set the default interface language */
/* Set the default interface language */
if
(
$config
[
'system'
][
'language'
]
<>
""
)
{
if
(
isset
(
$config
[
'system'
][
'language'
])
&&
$config
[
'system'
][
'language'
]
<>
""
)
{
$g
[
'language'
]
=
$config
[
'system'
][
'language'
];
$g
[
'language'
]
=
$config
[
'system'
][
'language'
];
}
elseif
(
$g
[
'language'
]
==
""
)
{
}
elseif
(
!
isset
(
$g
[
'language'
])
||
$g
[
'language'
]
==
""
)
{
$g
[
'language'
]
=
'en_US'
;
$g
[
'language'
]
=
'en_US'
;
}
}
...
...
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