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
0fe4a0f0
Commit
0fe4a0f0
authored
10 years ago
by
Côme Bernigaud
Committed by
Benoit Mortier
10 years ago
Browse files
Options
Download
Patches
Plain Diff
Ease use of menu providers
parent
246b3696
dev
6342-update-the-locales-for-1-5
6344-template-issue-when-creating-a-template-with-empty-password-error-message-should-not-be-seen
6365-core-locking-mechanism-is-not-changing-the-mail-ressource-it-does-lock-the-mail-account
6365-core-when-lock-mechanism-is-trigger-the-user-should-not-be-editable-if-not-unlock
6378-orcid-test-method-is-wrong-and-break-orcid-saving
core-php8
master
fusiondirectory-1.5
fusiondirectory-1.4
fusiondirectory-1.3.1
fusiondirectory-1.3
fusiondirectory-1.2.3
fusiondirectory-1.2.2
fusiondirectory-1.2.1
fusiondirectory-1.2
fusiondirectory-1.1.1
fusiondirectory-1.1
fusiondirectory-1.0.20
fusiondirectory-1.0.19
fusiondirectory-1.0.18
fusiondirectory-1.0.17
fusiondirectory-1.0.16
fusiondirectory-1.0.15
fusiondirectory-1.0.14
fusiondirectory-1.0.13
fusiondirectory-1.0.12
fusiondirectory-1.0.11
fusiondirectory-1.0.10
fusiondirectory-1.0.9.3
fusiondirectory-1.0.9.2
fusiondirectory-1.0.9.1
fusiondirectory-1.0.9
fusiondirectory-1.0.8.9
fusiondirectory-1.0.8.8
fusiondirectory-1.0.8.7
fusiondirectory-1.0.8.6
fusiondirectory-1.0.8.5
fusiondirectory-1.0.8.4
fusiondirectory-1.0.8.3
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
html/getbin.php
+11
-5
html/getbin.php
include/class_pluglist.inc
+12
-6
include/class_pluglist.inc
with
23 additions
and
11 deletions
+23
-11
html/getbin.php
+
11
−
5
View file @
0fe4a0f0
...
...
@@ -41,14 +41,20 @@ header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header
(
"Cache-Control: no-cache"
);
header
(
"Pragma: no-cache"
);
header
(
"Cache-Control: post-check=0, pre-check=0"
);
$bintype
=
session
::
is_set
(
'binarytype'
)
?
session
::
get
(
'binarytype'
)
:
"octet-stream"
;
$key
=
'binary'
;
if
(
isset
(
$_GET
[
'key'
]))
{
$key
.
=
$_GET
[
'key'
];
}
$bintype
=
session
::
is_set
(
$key
.
'type'
)
?
session
::
get
(
$key
.
'type'
)
:
"octet-stream"
;
header
(
"Content-type: "
.
$bintype
);
if
(
session
::
is_set
(
'binary
file'
))
{
if
(
session
::
is_set
(
$key
.
'
file'
))
{
header
(
"Content-disposition: attachment; filename="
.
session
::
get
(
'binary
file'
));
.
session
::
get
(
$key
.
'
file'
));
}
echo
session
::
get
(
'binary'
);
echo
session
::
get
(
$key
);
error_reporting
(
E_ALL
|
E_STRICT
);
?>
This diff is collapsed.
Click to expand it.
include/class_pluglist.inc
+
12
−
6
View file @
0fe4a0f0
...
...
@@ -307,15 +307,18 @@ class pluglist {
/* Parse sub-plugins */
foreach
(
$this
->
config
->
data
[
'MENU'
][
$section
]
as
$info
)
{
if
(
!
$this
->
check_access
(
$info
[
'ACL'
]))
{
continue
;
}
if
(
isset
(
$info
[
'CLASS'
])
&&
plugin_available
(
$info
[
'CLASS'
]))
{
if
(
!
$this
->
check_access
(
$info
[
'ACL'
]))
{
continue
;
}
$index
=
$this
->
get_index
(
$info
[
'CLASS'
]);
$this
->
allowed_plugins
[
$index
]
=
$index
;
list
(
$plHeadline
,
$plDescription
,
$href
,
)
=
$this
->
get_infos
(
$info
[
'CLASS'
]);
$id
=
$info
[
'CLASS'
];
}
elseif
(
!
isset
(
$info
[
'CLASS'
]))
{
if
(
isset
(
$info
[
'ACL'
])
&&
!
$this
->
check_access
(
$info
[
'ACL'
]))
{
continue
;
}
$plHeadline
=
$info
[
'TITLE'
];
$plDescription
=
$info
[
'DESCRIPTION'
];
$href
=
$info
[
'LINK'
];
...
...
@@ -376,14 +379,17 @@ class pluglist {
$menu
.
=
$section_infos
[
'NAME'
]
.
"</h1>
\n
"
;
foreach
(
$this
->
config
->
data
[
'MENU'
][
$section
]
as
$info
)
{
if
(
!
$this
->
check_access
(
$info
[
'ACL'
]))
{
continue
;
}
if
(
isset
(
$info
[
'CLASS'
])
&&
plugin_available
(
$info
[
'CLASS'
]))
{
if
(
!
$this
->
check_access
(
$info
[
'ACL'
]))
{
continue
;
}
/* Read information from class variable */
list
(
$plHeadline
,
$plDescription
,
$href
,
$plIcon
)
=
$this
->
get_infos
(
$info
[
'CLASS'
]);
$id
=
$info
[
'CLASS'
];
}
elseif
(
!
isset
(
$info
[
'CLASS'
]))
{
if
(
isset
(
$info
[
'ACL'
])
&&
!
$this
->
check_access
(
$info
[
'ACL'
]))
{
continue
;
}
$plHeadline
=
$info
[
'TITLE'
];
$plDescription
=
$info
[
'DESCRIPTION'
];
$href
=
$info
[
'LINK'
];
...
...
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