Skip to content
GitLab
Explore
Sign in
Commits on Source (2)
Close #37: untested fix for using symlinks to view files as the apache user
· c1fe7de7
Imran Hussain
authored
Mar 31, 2017
c1fe7de7
Merge branch 'master' of projects.sucs.org:sucssite/sucs-site
· e7d69442
Imran Hussain
authored
Mar 31, 2017
e7d69442
Hide whitespace changes
Inline
Side-by-side
components/members.php
View file @
e7d69442
...
...
@@ -48,11 +48,11 @@ if ($session->loggedin) {
$homedir
=
explode
(
'/'
,
$usernames
[
0
][
'homedir'
]);
$usernames
[
0
][
'acctype'
]
=
ucfirst
(
$homedir
[
2
]);
// Project
if
(
file_exists
(
$usernames
[
0
][
'homedir'
]
.
'/.project'
))
{
if
(
file_exists
(
$usernames
[
0
][
'homedir'
]
.
'/.project'
)
&&
!
is_link
(
$usernames
[
0
][
'homedir'
]
.
'/.project'
))
{
$usernames
[
0
][
'project'
]
=
file_get_contents
(
$usernames
[
0
][
'homedir'
]
.
'/.project'
);
}
// Plan
if
(
file_exists
(
$usernames
[
0
][
'homedir'
]
.
'/.plan'
))
{
if
(
file_exists
(
$usernames
[
0
][
'homedir'
]
.
'/.plan'
)
&&
!
is_link
(
$usernames
[
0
][
'homedir'
]
.
'/.plan'
))
{
$usernames
[
0
][
'plan'
]
=
file_get_contents
(
$usernames
[
0
][
'homedir'
]
.
'/.plan'
);
}
// Website
...
...