コード例 #1
0
function update1($DBname)
{
    $host = $_SESSION['db_access']['host'];
    $user = $_SESSION['db_access']['user'];
    $password = $_SESSION['db_access']['password'];
    if (create_conn_file($host, $user, $password, $DBname) && !empty($DBname)) {
        $from_install = true;
        include GLPI_ROOT . "/install/update.php";
    } else {
        // can't create config_db file
        _e("Can't create the database connection file, please verify file permissions.");
        echo "<h3>" . __('Do you want to continue?') . "</h3>";
        echo "<form action='install.php' method='post'>";
        echo "<input type='hidden' name='update' value='yes'>";
        echo "<p class='submit'><input type='hidden' name='install' value='Etape_0'>";
        echo "<input type='submit' name='submit' class='submit' value=\"" . __('Continue') . "\">";
        echo "</p>";
        Html::closeForm();
    }
}
コード例 #2
0
ファイル: install.php プロジェクト: ryukansent/Thesis-SideB
function update1($host, $user, $password, $DBname)
{
    global $LANG;
    if (create_conn_file($host, $user, $password, $DBname) && !empty($DBname)) {
        $from_install = true;
        include GLPI_ROOT . "/install/update.php";
    } else {
        // can't create config_db file
        echo $LANG['install'][70];
        echo "<h3>" . $LANG['install'][25] . "</h3>";
        echo "<form action='install.php' method='post'>";
        echo "<input type='hidden' name='update' value='yes'>";
        echo "<p class='submit'><input type='hidden' name='install' value='Etape_0'>";
        echo "<input type='submit' name='submit' class='submit' value=\"" . $LANG['install'][25] . "\">";
        echo "</p></form>";
    }
}