Import Results", "98%", "aaaaaa", "3", "center", ""); print "

Cacti has imported the following items:

"; while (list($type, $type_array) = each($_SESSION["import_debug_info"])) { print "

" . $hash_type_names[$type] . "

"; while (list($index, $vals) = each($type_array)) { if ($vals["result"] == "success") { $result_text = "[success]"; }else{ $result_text = "[fail]"; } if ($vals["type"] == "update") { $type_text = "[update]"; }else{ $type_text = "[new]"; } print "$result_text " . $vals["title"] . " $type_text
\n"; $dep_text = ""; $there_are_dep_errors = false; if ((isset($vals["dep"])) && (sizeof($vals["dep"]) > 0)) { while (list($dep_hash, $dep_status) = each($vals["dep"])) { if ($dep_status == "met") { $dep_status_text = "Found Dependency:"; }else{ $dep_status_text = "Unmet Dependency:"; $there_are_dep_errors = true; } $dep_text .= "   + $dep_status_text " . hash_to_friendly_name($dep_hash, true) . "
\n"; } } /* only print out dependency details if they contain errors; otherwise it would get too long */ if ($there_are_dep_errors == true) { print $dep_text; } } } print ""; end_box(); kill_session_var("import_debug_info"); } start_box("Import Templates", "98%", $colors["header"], "3", "center", ""); form_alternate_row_color($colors["form_alternate1"],$colors["form_alternate2"],0); ?> Import Template from Local File
If the XML file containing template data is located on your local machine, select it here. Import Template from Text
If you have the XML file containing template data as text, you can paste it into this box to import it.