'.$lang['info_databases'].'
'.$databases['Name'][$i].' | '.$lang['info_nodb'].' | '; } else { mysql_select_db($databases['Name'][$i],$config['dbconnection']); $tabellen = mysql_query("SHOW TABLES FROM `".$databases['Name'][$i]."`",$config['dbconnection']); $num_tables = mysql_num_rows($tabellen); $cl= ($i % 2) ? "dbrow" : "dbrow1"; if($i==$databases['db_selected_index']) $cl="dbrowsel"; echo '
'; echo ($i==$databases['db_selected_index']) ? "".$databases['Name'][$i]."" : $databases['Name'][$i]; echo ' | '.$num_tables.' '.$lang['info_table1']; echo ($num_tables>1) ? $lang['info_table2'] : ''; echo ' | '; echo '
'.$lang['create_database'].' |
"; $res=@mysql_query("FLUSH PRIVILEGES",$config['dbconnection']); $meldung=mysql_error($config['dbconnection']); if($meldung!="") { $msg.='> MySQL-Error: '.$meldung; } else { $msg.="> Privileges were reloaded."; } break; case 2: //FLUSH STATUS $msg="> operating FLUSH STATUS
"; $res=@mysql_query("FLUSH STATUS",$config['dbconnection']); $meldung=mysql_error($config['dbconnection']); if($meldung!="") { $msg.='> MySQL-Error: '.$meldung; } else { $msg.="> Status was reset."; } break; case 3: //FLUSH HOSTS $msg="> operating FLUSH HOSTS
"; $res=@mysql_query("FLUSH HOSTS",$config['dbconnection']); $meldung=mysql_error($config['dbconnection']); if($meldung!="") { $msg.='> MySQL-Error: '.$meldung; } else { $msg.="> Hosts were reloaded.";; } break; case 4: //SHOW MASTER LOGS $msg="> operating SHOW MASTER LOGS
"; $res=@mysql_query("SHOW MASTER LOGS",$config['dbconnection']); $meldung=mysql_error($config['dbconnection']); if($meldung!="") { $msg.='> MySQL-Error: '.$meldung; } else { $numrows=mysql_num_rows($res); if($numrows==0) { $msg.='> there are no master log-files'; }else{ $msg.='> there are '.$numrows.' logfiles
'; for($i=0;$i<$numrows;$i++) { $row=mysql_fetch_row($res); $msg.='> '.$row[0].' '.(($data_dir) ? byte_output(filesize($data_dir.$row[0])) : '').'
'; } } } break; case 5: //RESET MASTER $msg="> operating RESET MASTER
"; $res=@mysql_query("RESET MASTER",$config['dbconnection']); $meldung=mysql_error($config['dbconnection']); if($meldung!="") { $msg.='> MySQL-Error: '.$meldung; } else { $msg.="> All Masterlogs were deleted."; } break; } echo '
'.$lang['mysqlsys'].'
'; echo ' '; echo ''; echo ($msg!="") ? $msg : '> waiting for operation ...
'; echo '
'.$lang['mysqlvars'].'
'.$Titelausgabe[$var].' '; echo ''.$lang['Prozesse'].' '; echo ''.$lang['Status'].' '; echo ''.$lang['Variabeln'].' '; echo ''; //Variabeln switch($var) { case "variables": $res=@mysql_query("SHOW variables"); if($res) $numrows=mysql_num_rows($res); if($numrows==0) {echo $lang['info_novars'];} else { echo '
Name | '.$lang['Inhalt'].' |
---|---|
'.$row[0].' | '.$row[1].' |
Name | '.$lang['Inhalt'].' |
---|---|
'.$row[0].' | '.$row[1].' |
'.$lang['processkill1'].$_GET['killid'].$lang['processkill2'].$ret.'
'; } else { echo ''.$lang['processkill3'].$wait.$lang['processkill4'].$_GET['killid'].$lang['processkill2'].$ret.'
'; } } $killid=$wait=0; $res=@mysql_query("SHOW FULL PROCESSLIST "); if($res) $numrows=mysql_num_rows($res); if($numrows==0) {echo $lang['info_noprocesses'];} else { echo 'ID | User | Host | DB | Command | Time | State | Info | RT: '.round($config['processlist_refresh']/1000).' sec |
---|---|---|---|---|---|---|---|---|
'.$row[0].' | '.$row[1].' | '.$row[2].' | '.$row[3].' | '.$row[4].' | '.$row[5].' | '.$row[6].' | '.$row[7].' | kill |
'.$lang['info_dbdetail'].'"'.$databases['Name'][$dbid].'"
'; $res=@mysql_query("SHOW TABLE STATUS FROM `".$databases['Name'][$dbid]."`"); mysql_select_db($databases['Name'][$dbid]); if($res) $numrows=mysql_num_rows($res); if($numrows==0) { echo $lang['info_dbempty']; } else { echo $numrows.' '.$lang['info_table1']; echo ($numrows>1) ? $lang['info_table2'] : ''; echo "\n".'Nr. | '. $lang['info_table1'].' | '. $lang['info_records'].' | '. $lang['info_size'].' | '. $lang['info_lastupdate'].' | '. $lang['info_optimized'].' | Status | '. '
---|---|---|---|---|---|---|
'.($i+1).' | '. $row['Name'].' | '. number_format($row['Rows'],0,",",".").' | '. byte_output($akt_size). ' | '. $row['Update_time'].' | '; if ($row['Data_free']==0) echo ''; else echo ' '.$lang['no'].' '; echo ' | '; if($checkit==$row['Name'] || $repair==1) { $tmp_res=mysql_query("REPAIR TABLE `".$row['Name']."`"); } if(($checkit==$row['Name'] || $checkit=="ALL") && $akt_size>0) { $tmp_res=mysql_query("CHECK TABLE `".$row['Name']."`"); if($tmp_res) { $tmp_row = mysql_fetch_row($tmp_res); echo ($tmp_row[3]=="OK") ? '' : ' repair '; } else echo "CHECK TABLE `".$row['Name']."`"; } else { if($akt_size>0) echo 'check'; else echo "-"; } echo ' |
'.$lang['info_sum'].' | ' .number_format($s1,0,",",".").' | '.byte_output($s2).' | '.$last_update.' | '; echo '