コード例 #1
0
ファイル: install.php プロジェクト: hisapi/his
        exit;
    }
}
if (isset($_GET['page'])) {
    if ($_GET['page'] == $last_step_of_library_installation + 1 && $DB_CONNECT && $FS_CONNECT && file_exists($BIN_DIR . $PATH_SEPERATOR . "his-config.php")) {
        $check_user = new user_user_name();
        $check_user->get_from_hashrange($_POST['user_name']);
        $pw = sha1($settings['salt1']['@attributes']['value'] . $_POST['admin_password'] . $_POST['user_name'] . $settings['salt2']['@attributes']['value']);
        if ($check_user->pw != $pw) {
            exit;
        }
        $PAGE = new SetupPage($_GET['page']);
        $PAGE->title = "<p>";
        $PAGE->title = $PAGE->title . getTranslation("Setup complete.", $settings);
        $PAGE->body = $PAGE->body . "</p>";
        $PAGE->body = $PAGE->body . "<table width='100%'><tr><td width='50%' valign='top'><p>";
        $PAGE->body = $PAGE->body . getTranslation("Setup was successful.  Click ", $settings);
        $PAGE->body = $PAGE->body . " <a href='index.php?v=login'>";
        $PAGE->body = $PAGE->body . getTranslation("here", $settings);
        $PAGE->body = $PAGE->body . "</a> ";
        $PAGE->body = $PAGE->body . getTranslation(" to login to HIS.", $settings);
        $PAGE->body = $PAGE->body . "</p></td>";
        $PAGE->body = $PAGE->body . "<td valign='top' align='right'>";
        $PAGE->body = $PAGE->body . "<img src='images/checkmark.png'/>";
        $PAGE->body = $PAGE->body . "</td></tr></table>";
        $PAGE->hide_back = true;
        $PAGE->hide_next = true;
        echo $PAGE->content();
        exit;
    }
}