Skip to content
Snippets Groups Projects
Commit 91f418ee authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update login / profile

parent 13ec96b0
No related branches found
No related tags found
1 merge request!62V2.0
This commit is part of merge request !62. Comments created here will be created in the context of that merge request.
......@@ -37,7 +37,7 @@ if (!$oUser->getUsername() && array_key_exists('user', $aParams)) {
$sUrl=$_SESSION["goback"];
unset($_SESSION["goback"]);
} else {
$sUrl='?';
$sUrl='/deployment';
}
header("location: $sUrl");
}
......@@ -54,15 +54,29 @@ if ($oUser->getUsername()) {
// ------------------------------------------------------------
$sGrouplist='';
foreach ($oUser->getUserGroups() as $sGroupname){
$sGrouplist.='<li>' . $sGroupname . '</li>';
$sGrouplist.='<i class="fa-regular fa-bookmark"></i> ' . $sGroupname . '<br>';
}
$sPermlist='';
foreach ($oUser->getUserPermission() as $sPerm){
$sPermlist.='<i class="fa-solid fa-caret-right"></i> ' . $sPerm . '<br>';
}
$sOut.=''
. '<h2>' . t("page-login-info") . '</h2>'
. '<p>'
. t("page-login-userloggedin") . '<br><br>'
. '<strong>' . $oUser->getUsername() . '</strong><br><br>'
. t("page-login-usergroups") . '<br>'
. '<ul>'.$sGrouplist . '</ul><br>'
. '<h2>' . t("page-login-profile") . '</h2>'
.'<table>
<tr>
<td>'.t("page-login-userloggedin") . '</td>
<td><strong>' . $oUser->getUsername() . '</strong></td>
</tr>
<tr>
<td>'.t("page-login-usergroups").'</td>
<td>'.$sGrouplist . '</td>
</tr>
<tr>
<td>'.t("page-login-userperms").'</td>
<td>'.$sPermlist . '</td>
</tr>
</table>'
. '<div style="clear: both; margin-bottom: 1em;"></div>'
. ' ' . aPrjHome() . ' '
. '<a href="?logoff=1" class="btn btn-danger">' . $oHtml->getIcon('poweroff') . t('logoff') . '</a>'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment