$lang['L_VARIABELN'], "status" => $lang['L_STATUS'], "prozesse" => $lang['L_PROZESSE']);
echo '
'.$lang['L_MYSQLVARS'].'
'.$Titelausgabe[$var].' ';
echo ''.$lang['L_PROZESSE'].' ';
echo ''.$lang['L_STATUS'].' ';
echo ''.$lang['L_VARIABELN'].' ';
echo '
';
//Variabeln
switch ($var)
{
case "variables":
$res=@mysqli_query($GLOBALS["___mysqli_ston"], "SHOW variables");
if ($res) $numrows=mysqli_num_rows($res);
if ($numrows==0)
{
echo $lang['L_INFO_NOVARS'];
}
else
{
echo 'Name | '.$lang['L_INHALT'].' |
';
for ($i=0; $i<$numrows; $i++)
{
$row=mysqli_fetch_array($res);
$cl=($i%2) ? "dbrow" : "dbrow1";
echo ''.$row[0].' | '.$row[1].' |
';
}
}
echo '
';
break;
case "status":
$res=@mysqli_query($GLOBALS["___mysqli_ston"], "SHOW STATUS");
if ($res) $numrows=mysqli_num_rows($res);
if ($numrows==0)
{
echo $lang['L_INFO_NOSTATUS'];
}
else
{
echo 'Name | '.$lang['L_INHALT'].' |
';
for ($i=0; $i<$numrows; $i++)
{
$cl=($i%2) ? "dbrow" : "dbrow1";
$row=mysqli_fetch_array($res);
echo ''.$row[0].' | '.$row[1].' |
';
}
}
echo '
';
break;
case "prozesse":
if ($config['processlist_refresh']<1000) $config['processlist_refresh']=2000;
if (isset($_GET['killid'])&&$_GET['killid']>0)
{
$killid=(isset($_GET['killid'])) ? $_GET['killid'] : 0;
$wait=(isset($_GET['wait'])) ? $_GET['wait'] : 0;
if ($wait==0)
{
$ret=mysqli_query($GLOBALS["___mysqli_ston"], "KILL ".$_GET['killid']);
$wait=2;
}
else
$wait+=2;
if ($wait==0)
{
echo ''.$lang['L_PROCESSKILL1'].$_GET['killid'].' '.$lang['L_PROCESSKILL2'].'
';
}
else
{
echo ''.$lang['L_PROCESSKILL3'].$wait.$lang['L_PROCESSKILL4'].$_GET['killid'].' '.$lang['L_PROCESSKILL2'].'
';
}
}
$killid=$wait=0;
$res=@mysqli_query($GLOBALS["___mysqli_ston"], "SHOW FULL PROCESSLIST ");
if ($res) $numrows=mysqli_num_rows($res);
if ($numrows==0)
{
echo $lang['L_INFO_NOPROCESSES'];
}
else
{
echo 'ID | User | Host | DB | Command | Time | State | Info | RT: '.round($config['processlist_refresh']/1000).' sec |
';
for ($i=0; $i<$numrows; $i++)
{
$cl=($i%2) ? "dbrow" : "dbrow1";
$row=mysqli_fetch_array($res);
echo ''.$row[0].' | '.$row[1].' |
'.$row[2].' | '.$row[3].' | '.$row[4].' | '.$row[5].' |
'.$row[6].' | '.$row[7].' |
kill |
';
if ($row[0]==$killid&&$row[4]=="Killed")
{
$wait=$killid=0;
}
}
}
echo '
';
echo '';
echo '';
break;
}