Hanno Böck This code is published under a 0BSD license. Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code. */ require_once('session/start.php'); require_once('inc/icons.php'); require_role([ROLE_SYSTEMUSER]); global $prefix; require_once('mysql.php'); $dbs = get_mysql_databases($_SESSION['userinfo']['uid']); $users = get_mysql_accounts($_SESSION['userinfo']['uid']); $username = $_SESSION['userinfo']['username']; $section = 'mysql_overview'; title('Beschreibung ändern'); if (isset($_GET['db'])) { $thisdb = null; foreach ($dbs as $db) { if ($db['name'] == $_GET['db']) { $thisdb = $db; } } $form = '

Ändern Sie hier die Beschreibung der Datenbank ' . $thisdb['name'] . '.

'; $form .= '

'; output(html_form('mysql_description', 'save', "action=description&db={$thisdb['name']}", $form)); } if (isset($_GET['username'])) { $thisuser = null; foreach ($users as $user) { if ($user['username'] == $_GET['username']) { $thisuser = $user; } } $form = '

Ändern Sie hier die Beschreibung des DB-Benutzers ' . $thisuser['username'] . '.

'; $form .= '

'; output(html_form('mysql_description', 'save', "action=description&username={$thisuser['username']}", $form)); }