$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=@mysql_query("SHOW variables"); if ($res) $numrows=mysql_num_rows($res); if ($numrows==0) { echo $lang['L_INFO_NOVARS']; } else { echo ''; for ($i=0; $i<$numrows; $i++) { $row=mysql_fetch_array($res); $cl=($i%2) ? "dbrow" : "dbrow1"; echo ''; } } echo '
Name'.$lang['L_INHALT'].'
'.$row[0].''.$row[1].'
'; break; case "status": $res=@mysql_query("SHOW STATUS"); if ($res) $numrows=mysql_num_rows($res); if ($numrows==0) { echo $lang['L_INFO_NOSTATUS']; } else { echo ''; for ($i=0; $i<$numrows; $i++) { $cl=($i%2) ? "dbrow" : "dbrow1"; $row=mysql_fetch_array($res); echo ''; } } echo '
Name'.$lang['L_INHALT'].'
'.$row[0].''.$row[1].'
'; 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=mysql_query("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=@mysql_query("SHOW FULL PROCESSLIST "); if ($res) $numrows=mysql_num_rows($res); if ($numrows==0) { echo $lang['L_INFO_NOPROCESSES']; } else { echo ''; for ($i=0; $i<$numrows; $i++) { $cl=($i%2) ? "dbrow" : "dbrow1"; $row=mysql_fetch_array($res); echo ''; if ($row[0]==$killid&&$row[4]=="Killed") { $wait=$killid=0; } } } echo '
IDUserHostDBCommandTimeStateInfoRT: '.round($config['processlist_refresh']/1000).' sec
'.$row[0].''.$row[1].' '.$row[2].''.$row[3].''.$row[4].''.$row[5].' '.$row[6].''.$row[7].' kill
'; echo '
'; echo ''; break; }