$key_names) { $rqti="show index from $table"; $resi=mysql_query($rqti) or die(mysql_error()."
".$rqti); for ($i=0;$i$col_names) { if ($cles_reelles[$key_name]) { for($j=0;$j".$msg[admin_info_table_index_pb]."
".$pb; else echo $msg[admin_info_table_index_ok]; break; case 'mysqlinfo': echo window_title($database_window_title."MySQL - Info"); echo "
".pmb_sql_value("select count(*) as nb from notices")."
" ; echo "
".pmb_sql_value("select count(*) as nb from exemplaires")."
" ; echo "
".pmb_sql_value("select count(*) as nb from bulletins")."
" ; echo "
".pmb_sql_value("select count(*) as nb from authors")."
" ; echo "
".pmb_sql_value("select count(*) as nb from publishers")."
" ; echo "
".pmb_sql_value("select count(*) as nb from empr")."
" ; echo "
".pmb_sql_value("select count(*) as nb from pret")."
" ; echo "
".pmb_sql_value("select count(*) as nb from pret_archive")."
" ; echo "
" ; echo "
".DATA_BASE." on ".SQL_SERVER.", user=".USER_NAME."
".mysql_get_server_info()."

" ; echo "
".mysql_get_client_info()."

" ; echo "
".mysql_get_host_info()."

" ; echo "
".mysql_get_proto_info()."

" ; echo "
".str_replace(' ','
',mysql_stat())."

"; echo "
" ; $result = mysql_query('SHOW VARIABLES', $dbh); $parity=0 ; while ($row = mysql_fetch_assoc($result)) { if ($parity % 2) $pair_impair = "even"; else $pair_impair = "odd"; $parity+=1; echo ""; } echo "
".$row['Variable_name']."".$row['Value']."
" ; break; case '': default: print " "; break; } if($action) { @set_time_limit($pmb_set_time_limit); $db = DATA_BASE; $tables = mysql_list_tables($db); $num_tables = @mysql_num_rows($tables); $i = 0; while($i < $num_tables) { $table[$i] = mysql_tablename($tables, $i); $i++; } echo ""; while(list($cle, $valeur) = each($table)) { $requete = $action." TABLE ".$valeur." "; $res = @mysql_query($requete, $dbh); $nbr_lignes = @mysql_num_rows($res); $nbr_champs = @mysql_num_fields($res); if($nbr_lignes) { if(!$cle) { for($i=0; $i < $nbr_champs; $i++) { printf("", mysql_field_name($res, $i)); } } for($i=0; $i < $nbr_lignes; $i++) { $row = mysql_fetch_row($res); echo ""; foreach($row as $dummykey=>$col) { if(!$col) $col=" "; print ""; } echo ""; } } } echo "
%s
$col
"; }