Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
ae2
Project overview
Project overview
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Antoine
ae2
Commits
93c878ba
Commit
93c878ba
authored
Aug 27, 2011
by
jlaval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unauthentified fsearch
parent
fc472be9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
include/cts/fsearch.inc.php
include/cts/fsearch.inc.php
+2
-2
phpcron/feed_redis.php
phpcron/feed_redis.php
+1
-1
No files found.
include/cts/fsearch.inc.php
View file @
93c878ba
...
...
@@ -65,7 +65,7 @@ class fsearch extends stdcontents
return
$res
;
}
function
fsearch
(
$site
,
$exhaustive
=
true
)
function
fsearch
(
$site
,
$exhaustive
=
true
,
$unauthentified
=
false
)
{
global
$wwwtopdir
,
$topdir
;
...
...
@@ -89,7 +89,7 @@ class fsearch extends stdcontents
$pattern
=
'/'
.
$pattern
.
'/i'
;
// Utilisateurs
if
(
$
site
->
user
->
is_valid
()
&&
(
$site
->
user
->
cotisant
||
$site
->
user
->
utbm
))
{
if
(
$
unauthentified
||
(
$site
->
user
->
is_valid
()
&&
(
$site
->
user
->
cotisant
||
$site
->
user
->
utbm
)
))
{
if
(
!
$site
->
user
->
is_in_group
(
"gestion_ae"
)
&&
!
$site
->
user
->
is_asso_role
(
27
,
1
)
&&
!
$site
->
user
->
is_in_group
(
"visu_cotisants"
)
)
{
if
(
$site
->
user
->
cotisant
)
...
...
phpcron/feed_redis.php
View file @
93c878ba
...
...
@@ -48,7 +48,7 @@ function compute_pattern_with_size ($size)
$_REQUEST
[
'pattern'
]
=
$str
;
$fsearch
=
new
fsearch
(
$site
,
false
);
$fsearch
=
new
fsearch
(
$site
,
false
,
true
);
if
(
!
empty
(
$fsearch
->
buffer
))
$redis
->
set
(
$str
,
addslashes
(
$fsearch
->
buffer
));
}
...
...
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