0) { $max = $GLOBALS['cfg']['LeftFrameTableLevel']; $temp_table = $_table; $new_table = array(); $last_index = 0; for ($ti = 0; $ti < $max; $ti++) { if (isset($temp_table[$ti])) { $new_table[$ti] = $temp_table[$ti]; unset($temp_table[$ti]); $last_index = $ti; } } $_table = $new_table; } return $_table; } function PMA_indent($spaces) { $string = ''; for ($i = 0; $i <= $spaces; $i++) { $string .= ' '; } return $string; } /* DEBUGGING ONLY - REMOVE WHEN PATCH ACCEPTED $path = ''; $functioncalls = ''; function functioncalls($name, $args, $array) { $GLOBALS['functioncalls'] .= $name . "\n------------------------\n"; foreach($array AS $xkey => $key) { $defvals = explode(':' , $key); $key=$defvals[0]; $val = (isset($args[$xkey]) ? $args[$xkey] : $defvals[1]); if (is_array($val)) { $GLOBALS['functioncalls'] .= $key . "\n"; foreach($val AS $skey => $sval) { if (!is_array($val)) { $GLOBALS['functioncalls'] .= "\t" . $skey . "\n\t\t" . stripslashes(var_export($sval)) . "\n"; } else { $GLOBALS['functioncalls'] .= "\t" . $skey . "\n\t\t[ARRAY]\n"; } } } else { $GLOBALS['functioncalls'] .= $key . "\n\t" . stripslashes(var_export($val, true)) . "\n"; } } $GLOBALS['functioncalls'] .= "\n\n"; return true; } */ function PMA_nestedSetHeaderParent($baseid, $key, $keyhistory, $indent, $indent_level, $val, $childout = true) { /* DEBUGGING ONLY - REMOVE WHEN PATCH ACCEPTED $args = func_get_args(); functioncalls('PMA_nestedSetHeaderParent', $args, array('baseid', 'key','keyhistory','indent','indent_level','val','childout:true')); */ $name = $key; $id = eregi_replace('[^a-z0-9]*', '', $baseid . $keyhistory . $key) . $indent; $on_mouse = (($GLOBALS['cfg']['LeftPointerColor'] == '') ? '' : ' onmouseover="if (isDOM || isIE4) {hilightBase(\'el' . $id . '\', \'' . $GLOBALS['cfg']['LeftPointerColor'] . '\')}" onmouseout="if (isDOM || isIE4) {hilightBase(\'el' . $id . '\', \'' . $GLOBALS['cfg']['LeftBgColor'] . '\')}"'); $countarray = $val; if (count($countarray) == 2 && isset($countarray['pma_name']) && isset($countarray['pma_list_item'])) { $counter = count($countarray['pma_name']); } else { unset($countarray['pma_name']); if (count($countarray) > 1) { unset($countarray['pma_list_item']); } $counter = count($countarray); } echo "\n"; echo PMA_indent($indent * 5) . '
' . $strNoDatabases . '
'; } // end if ($num_dbs == 0) echo "\n"; ?>