function readXML($type, $xmlns) { // Generate the file path $conf_path = JAPPIX_BASE . '/store/' . $type . '/'; $conf_name = $xmlns . '.xml'; // Secured stored file? if ($type == 'conf' && $xmlns == 'users') { // Get the secured file name $conf_secured = usersConfName(); // Does this file exist? if ($conf_secured) { $conf_name = $conf_secured; } } // Generate the file complete path $conf_file = $conf_path . $conf_name; if (file_exists($conf_file)) { return file_get_contents($conf_file); } return false; }
include JAPPIX_BASE . '/server/post-main.php'; break; // Hosts configuration submitted // Hosts configuration submitted case 5: include JAPPIX_BASE . '/server/post-hosts.php'; break; } } // Not frozen on the previous step? if (!isset($_POST['check']) && (isset($_POST['submit']) || isset($_POST['finish']))) { // Checks the current step is valid if ($step >= 2 && !is_dir($conf_folder)) { $step = 2; } else { if ($step >= 3 && !usersConfName()) { $step = 3; } else { if ($step >= 4 && !file_exists($conf_folder . '/main.xml')) { $step = 4; } else { if ($step >= 5 && !file_exists($conf_folder . '/hosts.xml')) { $step = 5; } else { $step++; } } } } } // These steps are not available