Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
E
eonweb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Philipp STEINER
eonweb
Commits
b830d78e
Commit
b830d78e
authored
Jul 06, 2016
by
Jean-Philippe Levy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix no password modification link if ldap user
parent
054b5ba1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
side.php
side.php
+7
-0
No files found.
side.php
View file @
b830d78e
...
...
@@ -113,9 +113,16 @@ if( strpos($_SERVER["PHP_SELF"], "/module/module_frame") !== false ){
<i
class=
"fa fa-user fa-fw"
></i>
<?php
echo
$_COOKIE
[
'user_name'
];
?>
<i
class=
"fa fa-caret-down"
></i>
</a>
<ul
class=
"dropdown-menu dropdown-user"
>
<?php
// No password modification link if ldap user
$ldapsql
=
sqlrequest
(
$database_eonweb
,
"SELECT user_type FROM users WHERE user_name='"
.
$_COOKIE
[
"user_name"
]
.
"';"
);
$user_type
=
mysqli_result
(
$ldapsql
,
0
,
"user_type"
);
if
(
$user_type
!=
1
)
{
?>
<li><a
href=
"/module/module_password/index.php"
><i
class=
"fa fa-user fa-fw"
></i>
<?php
echo
getLabel
(
"menu.user.profile"
);
?>
</a>
</li>
<li
class=
"divider"
></li>
<?php
}
?>
<li><a
href=
"/logout.php"
><i
class=
"fa fa-sign-out fa-fw"
></i>
<?php
echo
getLabel
(
"menu.user.disconnect"
);
?>
</a>
</li>
</ul>
...
...
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