bernd
auch ohne vergebene Rechte soll gespeichert werden
bernd commited 0095a9e at 2007-11-02 16:26:01
<?php
require_once('session/start.php');
require_role(array(ROLE_SYSTEMUSER));
global $prefix;
require_once('mysql.php');
$output_something = true;
if (isset($_GET['action']))
switch ($_GET['action'])
{
case 'delete_db':
$sure = user_is_sure();
if ($sure === NULL)
{
are_you_sure("action=delete_db&amp;db={$_GET['db']}", "Möchten Sie die Datenbank »{$_GET['db']}« wirklich löschen?");
$output_something = false;
}
elseif ($sure === true)
{
delete_mysql_database($_GET['db']);
header("Location: ?");
$output_something = false;
}
elseif ($sure === false)
{
header("Location: ?");
$output_something = false;
}
break;
case 'delete_user':
$sure = user_is_sure();
if ($sure === NULL)
{
are_you_sure("action=delete_user&amp;user={$_GET['user']}", "Möchten Sie den Benutzer »{$_GET['user']}« wirklich löschen?");
$output_something = false;
}
elseif ($sure === true)
{
delete_mysql_account($_GET['user']);
header("Location: ?");
$output_something = false;
}
elseif ($sure === false)
{
header("Location: ?");
$output_something = false;
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX