Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory
Commits
a567089e
Verified
Commit
a567089e
authored
1 month ago
by
dockx thibault
Browse files
Options
Download
Patches
Plain Diff
Revert "
(html) - html folder php82"
This reverts commit
e7456f50
.
parent
68972a2b
core-php8
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
html/autocomplete.php
+9
-1
html/autocomplete.php
html/index.php
+13
-6
html/index.php
html/setup.php
+1
-1
html/setup.php
with
23 additions
and
8 deletions
+23
-8
html/autocomplete.php
+
9
−
1
View file @
a567089e
...
@@ -42,7 +42,7 @@ if (isset($_GET['type']) && $_GET['type'] == "base") {
...
@@ -42,7 +42,7 @@ if (isset($_GET['type']) && $_GET['type'] == "base") {
if
(
session
::
is_set
(
"pathMapping"
)
&&
count
(
$_POST
)
==
1
)
{
if
(
session
::
is_set
(
"pathMapping"
)
&&
count
(
$_POST
)
==
1
)
{
$res
=
""
;
$res
=
""
;
$pathMapping
=
session
::
get
(
"pathMapping"
);
$pathMapping
=
session
::
get
(
"pathMapping"
);
$search
=
preg_replace
(
'/"/'
,
'"'
,
(
string
)
current
(
$_POST
));
$search
=
preg_replace
(
'/"/'
,
'"'
,
current
(
$_POST
));
$config
=
session
::
get
(
'config'
);
$config
=
session
::
get
(
'config'
);
$departmentInfo
=
$config
->
getDepartmentInfo
();
$departmentInfo
=
$config
->
getDepartmentInfo
();
...
@@ -50,11 +50,19 @@ if (isset($_GET['type']) && $_GET['type'] == "base") {
...
@@ -50,11 +50,19 @@ if (isset($_GET['type']) && $_GET['type'] == "base") {
if
(
!
isset
(
$pathMapping
[
$dn
]))
{
if
(
!
isset
(
$pathMapping
[
$dn
]))
{
continue
;
continue
;
}
}
<<<<<<<
HEAD
if
(
mb_stristr
((
string
)
$info
[
'name'
],
(
string
)
$search
)
!==
FALSE
)
{
if
(
mb_stristr
((
string
)
$info
[
'name'
],
(
string
)
$search
)
!==
FALSE
)
{
$res
.
=
"<li>"
.
mark
(
$search
,
$pathMapping
[
$dn
])
.
(
$info
[
'description'
]
==
''
?
""
:
"<span class='informal'> ["
.
mark
(
$search
,
$info
[
'description'
])
.
"]</span>"
)
.
"</li>"
;
$res
.
=
"<li>"
.
mark
(
$search
,
$pathMapping
[
$dn
])
.
(
$info
[
'description'
]
==
''
?
""
:
"<span class='informal'> ["
.
mark
(
$search
,
$info
[
'description'
])
.
"]</span>"
)
.
"</li>"
;
continue
;
continue
;
}
}
if
(
mb_stristr
((
string
)
$info
[
'description'
],
(
string
)
$search
)
!==
FALSE
)
{
if
(
mb_stristr
((
string
)
$info
[
'description'
],
(
string
)
$search
)
!==
FALSE
)
{
=======
if
(
mb_stristr
(
$info
[
'name'
],
$search
)
!==
FALSE
)
{
$res
.
=
"<li>"
.
mark
(
$search
,
$pathMapping
[
$dn
])
.
(
$info
[
'description'
]
==
''
?
""
:
"<span class='informal'> ["
.
mark
(
$search
,
$info
[
'description'
])
.
"]</span>"
)
.
"</li>"
;
continue
;
}
if
(
mb_stristr
(
$info
[
'description'
],
$search
)
!==
FALSE
)
{
>>>>>>>
parent
of
e7456f50
(
:
sparkles
:
(
html
)
-
html
folder
php82
)
$res
.
=
"<li>"
.
mark
(
$search
,
$pathMapping
[
$dn
])
.
(
$info
[
'description'
]
==
''
?
""
:
"<span class='informal'> ["
.
mark
(
$search
,
$info
[
'description'
])
.
"]</span>"
)
.
"</li>"
;
$res
.
=
"<li>"
.
mark
(
$search
,
$pathMapping
[
$dn
])
.
(
$info
[
'description'
]
==
''
?
""
:
"<span class='informal'> ["
.
mark
(
$search
,
$info
[
'description'
])
.
"]</span>"
)
.
"</li>"
;
continue
;
continue
;
}
}
...
...
This diff is collapsed.
Click to expand it.
html/index.php
+
13
−
6
View file @
a567089e
...
@@ -146,12 +146,19 @@ if (($config->get_cfg_value('forcessl') == 'TRUE') && ($ssl != '')) {
...
@@ -146,12 +146,19 @@ if (($config->get_cfg_value('forcessl') == 'TRUE') && ($ssl != '')) {
}
}
if
(
isset
(
$_REQUEST
[
'message'
]))
{
if
(
isset
(
$_REQUEST
[
'message'
]))
{
$message
=
match
(
$_REQUEST
[
'message'
])
{
switch
(
$_REQUEST
[
'message'
])
{
'expired'
=>
_
(
'Your FusionDirectory session has expired!'
),
case
'expired'
:
'invalidparameter'
=>
sprintf
(
_
(
'Invalid plugin parameter "%s"!'
),
$_REQUEST
[
'plug'
]),
$message
=
_
(
'Your FusionDirectory session has expired!'
);
'nosession'
=>
_
(
'No session found!'
),
break
;
default
=>
$_REQUEST
[
'message'
],
case
'invalidparameter'
:
};
$message
=
sprintf
(
_
(
'Invalid plugin parameter "%s"!'
),
$_REQUEST
[
'plug'
]);
break
;
case
'nosession'
:
$message
=
_
(
'No session found!'
);
break
;
default
:
$message
=
$_REQUEST
[
'message'
];
}
}
}
LoginMethod
::
loginProcess
();
LoginMethod
::
loginProcess
();
This diff is collapsed.
Click to expand it.
html/setup.php
+
1
−
1
View file @
a567089e
...
@@ -82,7 +82,7 @@ if (isset($_POST['lang_selected']) && $_POST['lang_selected'] != '') {
...
@@ -82,7 +82,7 @@ if (isset($_POST['lang_selected']) && $_POST['lang_selected'] != '') {
$lang
=
$_POST
[
'lang_selected'
];
$lang
=
$_POST
[
'lang_selected'
];
/* Append .UTF-8 to language string if necessary */
/* Append .UTF-8 to language string if necessary */
if
(
!
preg_match
(
'/utf(-)?8$/i'
,
(
string
)
$lang
))
{
if
(
!
preg_match
(
'/utf(-)?8$/i'
,
$lang
))
{
$lang
.
=
'.UTF-8'
;
$lang
.
=
'.UTF-8'
;
}
}
}
elseif
(
session
::
is_set
(
'lang'
))
{
}
elseif
(
session
::
is_set
(
'lang'
))
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets