function finish() { $html = ""; $clean = "install_finish_clean"; # bei einer localen installation brauchen wir nicht aufräumen if (isset($_SERVER['SERVER_ADDR']) and substr($_SERVER['SERVER_ADDR'], 0, 4) === "127" or isset($_SERVER['SERVER_NAME']) and ($_SERVER['SERVER_NAME'] == "localhost" or substr($_SERVER['SERVER_NAME'], 0, 3) === "127")) { $clean = "install_finish_local"; } $html .= contend_template(getLanguageValue($clean) . '<br /><input type="submit" name="clean_finish" value="' . getLanguageValue("install_finish_clean_button") . '" />', false); $html .= contend_template(installHelp("install_finish_help") . '<br /><a href="' . ADMIN_DIR_NAME . '/index.php"><b>' . getLanguageValue("install_finish_submit") . '</b></a>', ""); return array(true, $html); }
function update() { $head = ""; $html = ""; $update_submit = ""; $update_pages = ""; if (!isset($_POST['update_cms'])) { $updates = testUpdate(); if ($updates['conf'] !== "empty") { $html .= contend_template(getLanguageValue("install_update_conf_help"), $updates['conf']); } if ($updates['kategorien'] !== "empty") { $html .= contend_template(getLanguageValue("install_update_kategorien_help"), $updates['kategorien']); } if ($updates['galerien'] !== "empty") { $html .= contend_template(getLanguageValue("install_update_galerien_help"), $updates['galerien']); } if ($updates['plugins'] !== "empty") { $html .= contend_template(getLanguageValue("install_update_plugins_help"), $updates['plugins']); } if ($updates['layouts'] !== "empty") { $html .= contend_template(getLanguageValue("install_update_layouts_help"), $updates['layouts']); } if (strlen($html) > 1) { $head = contend_template(installHelp("install_update_help"), ""); $update_button = false; foreach ($updates as $status) { if ($status === false) { $update_button = false; $head = contend_template(getLanguageValue("install_update_error"), false) . $head; break; } if ($status === true) { $update_button = true; } } if ($update_button === true) { if ($updates['kategorien'] === true) { $update_pages = '<input type="checkbox" value="true" name="update_pages" id="update_pages"><label for="update_pages">' . getLanguageValue("install_update_files_in_pages") . '</label><br /><br />'; } $update_submit = $update_pages . '<input type="submit" name="update_cms" value="' . getLanguageValue("install_update_buttom") . '" />'; $update_submit = contend_template($update_submit, ""); } } else { $head = contend_template(installHelp("install_update_no_help"), ""); } } elseif (isset($_POST['update_cms'])) { makeUpdate(); $head = contend_template(installHelp("install_update_successful"), true); } return array(true, $head . $html . $update_submit, true); }