mirror of
https://github.com/wheelybird/ldap-user-manager.git
synced 2025-01-18 23:42:54 +01:00
86c82a402e
* Custom email body (#51) * get email body from ENV * read subject from env * html mail * replace special string with username and password * missing ; * more str_replace * utf8 in mail * typo * docs * fix var * count accounts * fix print * Add the ability to set the server path. Get directed to the appropriate module when you log in. * Fixes to allow overriding attribute labels properly * Fix server_path in various places, update to cookies use 'samesite', include boostrap and queryjs files so LUM can run without internet access. Co-authored-by: Monsieur X <xgaia@gmx.com>
38 lines
708 B
PHP
38 lines
708 B
PHP
<?php
|
|
|
|
|
|
|
|
##################################
|
|
|
|
function render_submenu() {
|
|
|
|
global $THIS_MODULE_PATH;
|
|
|
|
$submodules = array( 'users' => 'index.php',
|
|
'groups' => 'groups.php'
|
|
);
|
|
?>
|
|
<nav class="navbar navbar-default">
|
|
<div class="container-fluid">
|
|
<ul class="nav navbar-nav">
|
|
<?php
|
|
foreach ($submodules as $submodule => $path) {
|
|
|
|
if (basename($_SERVER['SCRIPT_FILENAME']) == $path) {
|
|
print "<li class='active'>";
|
|
}
|
|
else {
|
|
print '<li>';
|
|
}
|
|
print "<a href='${THIS_MODULE_PATH}/{$path}'>" . ucwords($submodule) . "</a></li>\n";
|
|
|
|
}
|
|
?>
|
|
</ul>
|
|
</div>
|
|
</nav>
|
|
<?php
|
|
}
|
|
|
|
?>
|