} } if (intval($_GET['step']) == 1) { echo "<center>"; echo "<input type='submit' style='background-color:" . rcolor() . "' value='"; echo getTranslation("Continue and Import Functions into Library", $settings); echo "'/>"; echo "</center>"; } for ($i = count($import_hfs) - 1; $i >= 0 && intval($_GET['step']) == 1; $i--) { $import_hf = $import_hfs[$i]; if (count($step_2_corrections) > 0) { //print_r($step_2_corrections); $original_xml = $import_hf->xml; $import_hf = new hf_id_user(); $import_hf->create_from_xml_array($original_xml); $import_hf->from = "import"; $import_hf->xml = $original_xml; } echo "<i style='background-color:" . rcolor() . ";width:inherit;'>"; echo getTranslation("Import", $settings) . ": "; echo $import_hf->name; echo "</i>"; echo "<ul>"; // option 1: inheritance: none, missing, or okay // option 2: import as new function/new function w/diff name or existing function (replace existing functions) // OPTION: import, but change name of imported function // option 5a: import, replace existing function $matched_functions = array(); foreach ($all_hfs as $library_hf) { if ($import_hf->name == $library_hf['name']) {