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)) { ...@@ -37,7 +37,7 @@ if (!$oUser->getUsername() && array_key_exists('user', $aParams)) {
$sUrl=$_SESSION["goback"]; $sUrl=$_SESSION["goback"];
unset($_SESSION["goback"]); unset($_SESSION["goback"]);
} else { } else {
$sUrl='?'; $sUrl='/deployment';
} }
header("location: $sUrl"); header("location: $sUrl");
} }
...@@ -54,15 +54,29 @@ if ($oUser->getUsername()) { ...@@ -54,15 +54,29 @@ if ($oUser->getUsername()) {
// ------------------------------------------------------------ // ------------------------------------------------------------
$sGrouplist=''; $sGrouplist='';
foreach ($oUser->getUserGroups() as $sGroupname){ 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.='' $sOut.=''
. '<h2>' . t("page-login-info") . '</h2>' . '<h2>' . t("page-login-profile") . '</h2>'
. '<p>' .'<table>
. t("page-login-userloggedin") . '<br><br>' <tr>
. '<strong>' . $oUser->getUsername() . '</strong><br><br>' <td>'.t("page-login-userloggedin") . '</td>
. t("page-login-usergroups") . '<br>' <td><strong>' . $oUser->getUsername() . '</strong></td>
. '<ul>'.$sGrouplist . '</ul><br>' </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>' . '<div style="clear: both; margin-bottom: 1em;"></div>'
. ' ' . aPrjHome() . ' ' . ' ' . aPrjHome() . ' '
. '<a href="?logoff=1" class="btn btn-danger">' . $oHtml->getIcon('poweroff') . t('logoff') . '</a>' . '<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