Home

'; die; } $conn = mysql_connect($dbhost,$dbuser,$dbpass) or die(mysql_error().""); if($_GET["action"]=="db") { for($i=0;$i"; break; } if(isset($_POST["kill".$i])) { $res=mysql_query("DROP DATABASE `$dbname_a[$i]`") or die(mysql_error().""); $dba= $l["db"]." $dbname_a[$i] ".$l["info_deleted"]."
"; SetDefault(true); echo ''; break; } } } if($_GET["action"]=="newdb") { if($_POST["dbneu"]!="" && isset($_POST["submit"])) { $res=mysql_query("CREATE DATABASE `".$_POST["dbneu"]."`") or die(mysql_error().""); $dba=$l["db"]." '".$_POST["dbneu"]."' ".$l["info_created"]."
"; SetDefault(true); echo ''; } } $res=mysql_query("select version()"); $row = mysql_fetch_array($res); echo 'PHP-Version: '.phpversion().' [Info]
'; echo 'MySQL-Version: '.$row[0].'
'; echo $l["info_location"].' "'.$_SERVER["SERVER_NAME"].'" ('.$_SERVER["DOCUMENT_ROOT"].').
'; echo $l["info_workdir"].": $work
"; echo $l["info_backupdir"].": $backup_path
"; echo $l["info_actdb"].": $dbname
"; echo '

'.$l["info_databases"].'

'; echo $dba.''; for($i=0;$i'; } else { mysql_select_db($dbname_a[$i],$conn); $tabellen = mysql_list_tables($dbname_a[$i],$conn); $num_tables = mysql_num_rows($tabellen); echo ''; echo ''; echo ''; } } echo '
'.$dbname_a[$i].''.$l["info_nodb"].'
'.$dbname_a[$i].''.$num_tables.' '.$l["info_table1"]; echo ($num_tables>1) ? $l["info_table2"] : ''; echo '
'; echo '
'; echo '
'.$l["create_database"].'
'; echo '
'; if (isset($_GET["dbid"])) { $dbid=$_GET["dbid"]; echo '

'.$l["info_dbdetail"].'"'.$dbname_a[$dbid].'"

'; $res=mysql_query("SHOW TABLE STATUS FROM ".$dbname_a[$dbid]); $numrows=mysql_num_rows($res); if($numrows==0) { echo $l["info_dbempty"]; } else { echo $numrows.' '.$l["info_table1"]; echo ($numrows>1) ? $l["info_table2"] : ''; echo '
'; $last_update="2000-01-01 00:00:00"; for ($i = 0; $i < $numrows; $i++) { $row = mysql_fetch_array($res); echo ''; if(strtotime($row[Update_time])>strtotime($last_update)) $last_update=$row[Update_time]; $s1=$s1+$row[Rows]; $s2=$s2+$row[Data_length]+$row[Index_length]; } echo ''; echo '
Nr.'.$l["info_table1"].''.$l["info_records"].''.$l["info_size"].''.$l["info_lastupdate"].'
'.($i+1).''.$row[Name].''.number_format($row[Rows],0,",",".").''.number_format($row[Data_length]+$row[Index_length],0,",",".").' Bytes'.$row[Update_time].'
'.$l["info_sum"].''.number_format($s1,0,",",".").''.number_format($s2,0,",",".").' Bytes'.$last_update.'
'; } $edb=$l["info_emptydb1"].' `'.$dbname_a[$dbid].'` '.$l["info_emptydb2"]; $kdb=$l["info_emptydb1"].' `'.$dbname_a[$dbid].'` '.$l["info_killdb"]; echo '
'; if($numrows>0) echo ''; echo ''; echo '
'; } include("footer.php"); ?>