Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Alto
/
rkn
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
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 718eac42
authored
2021-06-04 17:39:37 +0300
by
san58
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
наладил работу фильтров
1 parent
c2737f34
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
components/Collection.php
components/Collection.php
View file @
718eac4
...
@@ -31,13 +31,12 @@ class Collection extends Component
...
@@ -31,13 +31,12 @@ class Collection extends Component
{
{
$fiter_check
=
true
;
$fiter_check
=
true
;
foreach
(
$filtes_bd
as
$filter
)
foreach
(
$filtes_bd
as
$filter
)
if
(
$fiter_check
===
true
)
{
{
$find
=
preg_match
(
$filter
[
'pattern'
],
$host
);
$find
=
preg_match
(
$filter
[
'pattern'
],
$host
);
if
(
$host
===
'002cc20.icu'
)
echo
' > i:'
.
$filter
[
'include'
]
.
' result:'
.
$find
.
' if1:'
.
((
$find
===
1
&&
$filter
[
'include'
]
===
Filter
::
INCLUDE_OFF
)
?
1
:
0
)
.
' if2:'
.
((
$find
===
0
&&
$filter
[
'include'
]
===
Filter
::
INCLUDE_ON
)
?
1
:
0
)
.
"
\n
"
;
if
(
if
(
(
$find
===
1
&&
$filter
[
'include'
]
===
Filter
::
INCLUDE_OFF
)
||
(
$find
===
1
&&
(
int
)
$filter
[
'include'
]
===
Filter
::
INCLUDE_OFF
)
||
(
$find
===
0
&&
$filter
[
'include'
]
===
Filter
::
INCLUDE_ON
)
(
$find
===
0
&&
(
int
)
$filter
[
'include'
]
===
Filter
::
INCLUDE_ON
)
)
)
{
{
$fiter_check
=
false
;
$fiter_check
=
false
;
...
...
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