bernd
Link zu phpMyAdmin prominent platzieren
bernd commited e716167 at 2011-01-04 10:32:18
<?php
require_once('session/start.php');
require_once('inc/icons.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':
if (! has_mysql_database($_GET['db']))
system_failure('Ungültige Datenbank');
$sure = user_is_sure();
if ($sure === NULL)
{
are_you_sure("action=delete_db&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':
if (! has_mysql_user($_GET['user']))
system_failure('Ungültiger Benutzer');
$sure = user_is_sure();
if ($sure === NULL)
{
are_you_sure("action=delete_user&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;
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX