Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Janis
/
btflags
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
f5e1fc6e
authored
2019-09-02 07:14:21 +0000
by
Janis
1
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch '17459_pci' into 'master'
17459_pci See merge request
!5
2 parents
5ceda9b9
9b45ff0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
src/BTFlags/FlagManager.php
src/BTFlags/FlagManager.php
View file @
f5e1fc6
...
...
@@ -156,8 +156,10 @@ class FlagManager {
if
(
!
$flags
)
return
[];
foreach
(
$flags
as
$flag
){
$value
=
$this
->
checkFlag
(
$flag
,
!
empty
(
$flag
[
'default'
])
?
$flag
[
'default'
]
:
null
);
setcookie
(
$flag
[
'name'
],
null
,
time
()
+
(
86400
*
30
),
"/"
);
setcookie
(
$flag
[
'encrypted_name'
],
$value
[
'cookie_value'
],
time
()
+
(
86400
*
30
),
"/"
);
if
(
isset
(
$_GET
[
$flag
[
'name'
]])){
setcookie
(
$flag
[
'name'
],
null
,
time
()
+
(
86400
*
30
),
"/"
);
setcookie
(
$flag
[
'encrypted_name'
],
$value
[
'cookie_value'
],
time
()
+
(
86400
*
30
),
"/"
);
}
}
}
...
...
Janis
@janis
mentioned in commit
b55e394c
2019-09-02 07:42:08 UTC
mentioned in commit
b55e394c
Toggle commit list
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment