run(); if (is_array($result) === true) { // Redirect control and messages to DiscoveryTasklist. $classname_selected = 'DiscoveryTaskList'; $wiz = new $classname_selected($page); $result = $wiz->run($result['msg'], $result['result']); } } if ($classname_selected === null) { // Load classes and print selector. $wiz_data = []; foreach ($classes as $classpath) { $classname = basename($classpath, '.class.php'); $obj = new $classname(); // DiscoveryTaskList must be first button. if ($classname == 'DiscoveryTaskList') { array_unshift($wiz_data, $obj->load()); } else { $wiz_data[] = $obj->load(); } } // Show hints if there is no task if (get_parameter('discovery_hint', 0)) { ui_require_css_file('discovery-hint'); } Wizard::printBigButtonsList($wiz_data); }