ldap-user-manager/www/account_manager/module_functions.inc.php
Brian Lycett 86c82a402e
Next release (#107)
* 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>
2021-07-22 09:12:55 +01:00

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
}
?>