<?php
require_once('inc/base.php');
require_once('useraccounts.php');
require_role([ROLE_CUSTOMER, ROLE_SYSTEMUSER]);
title("System-Benutzeraccounts");
$section = "systemuser_account";
$account = null;
$role = $_SESSION['role'];
if ($role & ROLE_CUSTOMER) {
$account = get_account_details($_GET['uid']);
} else {
$account = get_account_details($_SESSION['userinfo']['uid'], $_SESSION['userinfo']['customerno']);
}
headline("Bearbeiten von Benutzer »{$account['username']}«");
$shells = available_shells();
$defaultname = ($account['name'] ? '' : 'checked="checked" ');
$nondefaultname = ($account['name'] ? 'checked="checked" ' : '');
$customerquota = get_customer_quota();
$maxquota = $customerquota['max'] - $customerquota['assigned'] + $account['quota'];
$customer = get_customer_info($_SESSION['userinfo']['customerno']);
if ($role & ROLE_CUSTOMER) {
$customer = $_SESSION['customerinfo'];
}
$form = '';