$key_names) { $rqti="show index from $table"; $resi=pmb_mysql_query($rqti) or die(pmb_mysql_error()."
".$rqti); $cles_reelles = array(); 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 'verif_base': echo window_title($database_window_title.$msg[verification_verif_base]); require_once("$base_path/admin/misc/verifications/verif_base.inc.php"); 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."
".pmb_mysql_get_server_info()."

" ; echo "
".pmb_mysql_get_client_info()."

" ; echo "
".pmb_mysql_get_host_info()."

" ; echo "
".pmb_mysql_get_proto_info()."

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

"; echo "
" ; $result = pmb_mysql_query('SHOW VARIABLES'); $parity=0 ; while ($row = pmb_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 = pmb_mysql_list_tables($db); $num_tables = @pmb_mysql_num_rows($tables); $i = 0; while($i < $num_tables) { $table[$i] = pmb_mysql_tablename($tables, $i); $i++; } echo ""; foreach ($table as $cle => $valeur) { $requete = $action." TABLE ".$valeur." "; $res = pmb_mysql_query($requete); $nbr_lignes = @pmb_mysql_num_rows($res); $nbr_champs = @pmb_mysql_num_fields($res); if($nbr_lignes) { if(!$cle) { for($i=0; $i < $nbr_champs; $i++) { printf("", pmb_mysql_field_name($res, $i)); } } for($i=0; $i < $nbr_lignes; $i++) { $row = pmb_mysql_fetch_row($res); echo ""; foreach($row as $col) { if(!$col) $col=" "; print ""; } echo ""; } } } echo "
%s
$col
"; }