webmum/include/php/template/header.php
ohartl 5fc9a7de91 Cleaning up and format code
Rebuild all forms and lists, also changes on css.
Adding user and redirect count on domain page (so you can figure out which domain might still be used easier.
Adding count at table foot of all lists.
Make length of generated password depend on MIN_PASS_LENGTH
2016-02-17 23:16:31 +01:00

40 lines
1.2 KiB
PHP

<!doctype html>
<html>
<head>
<title>WebMUM</title>
<link rel=stylesheet href="<?php echo url('include/css/style.css'); ?>" type="text/css" media=screen>
<script type="text/javascript">
function generatePassword() {
var length = <?php echo MIN_PASS_LENGTH + 1; ?>,
charset = "abcdefghijklnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!#",
retVal = "";
for (var i = 0, n = charset.length; i < length; ++i) {
retVal += charset.charAt(Math.floor(Math.random() * n));
}
return retVal;
}
</script>
</head>
<body>
<div id="header">
<div class="title"><a href="<?php echo url('/'); ?>">WebMUM - Web Mailserver User Manager</a></div>
<div class="header-menu">
<?php if(user_has_permission("admin")): ?>
<div class="header-button">
<a href="<?php echo url('admin'); ?>">[Admin Dashboard]</a>
</div>
<div class="header-button">
<a href="<?php echo url('private'); ?>">[Personal Dashboard]</a>
</div>
<?php endif; ?>
<?php if($user->isLoggedIn()): ?>
<div class="header-button">
Logged in as <?php echo $_SESSION['email']; ?>
<a href="<?php echo url('logout'); ?>">[Logout]</a>
</div>
<?php endif; ?>
</div>
</div>
<div id="content"> <!-- Opening content -->