mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
70 lines
2.6 KiB
HTML
70 lines
2.6 KiB
HTML
<?php
|
|
if (!isset($form->dbhost)) {
|
|
$form->dbhost = '';
|
|
}
|
|
if (!isset($form->dbname)) {
|
|
$form->dbname = '';
|
|
}
|
|
if (!isset($form->dbuser)) {
|
|
$form->dbuser = '';
|
|
}
|
|
if (!isset($form->dbpass)) {
|
|
$form->dbpass = '';
|
|
}
|
|
if (!isset($form->dbcluster)) {
|
|
$form->dbcluster = '';
|
|
}
|
|
if (!isset($form->pathtopgdump)) {
|
|
$form->pathtopgdump = '';
|
|
}
|
|
if (!isset($form->pathtopsql)) {
|
|
$form->pathtopsql = '';
|
|
}
|
|
?>
|
|
<form name="migratefrom" action="utfdbmigrate.php" method="POST">
|
|
<input name="migrate" type="hidden" value="1" />
|
|
<input name="sesskey" type="hidden" value="<?php echo sesskey() ?>" />
|
|
<?php if (isset($err["dbconnect"])) formerr($err["dbconnect"]); ?>
|
|
<?php if (isset($err["pathtopgdump"])) formerr($err["pathtopgdump"]); ?>
|
|
<?php if (isset($err["pathtopsql"])) formerr($err["pathtopsql"]); ?>
|
|
<table cellpadding="9" cellspacing="0" width="500">
|
|
<tr valign="top">
|
|
<td align="right"><?php print_string("dbhost", "install") ?>:</td>
|
|
<td><input type="text" name="dbhost" value="<?php p($form->dbhost) ?>" />
|
|
</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td align="right"><?php print_string("database", "install") ?>:</td>
|
|
<td><input type="text" name="dbname" value="<?php p($form->dbname) ?>" />
|
|
</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td align="right"><?php print_string("user") ?>:</td>
|
|
<td><input type="text" name="dbuser" value="<?php p($form->dbuser) ?>" />
|
|
</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td align="right"><?php print_string("password") ?>:</td>
|
|
<td><input type="text" name="dbpass" value="<?php p($form->dbpass) ?>" />
|
|
</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td align="right"><?php print_string("pgcluster", "admin") ?>:</td>
|
|
<td><input type="text" name="dbcluster" value="<?php p($form->dbcluster) ?>" />
|
|
<td><?php print_string("pgclusterdescription", "admin") ?></td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td align="right" nowrap="nowrap"><?php print_string("pathtopgdump","admin") ?>:</td>
|
|
<td><input type="text" name="pathtopgdump" value="<?php p($form->pathtopgdump) ?>" />
|
|
<td><?php print_string("pathtopgdumpdesc","admin"); ?></td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td align="right" nowrap="nowrap"><?php print_string("pathtopsql","admin") ?>:</td>
|
|
<td><input type="text" name="pathtopsql" value="<?php p($form->pathtopsql) ?>" />
|
|
<td><?php print_string("pathtopsqldesc","admin"); ?></td>
|
|
</tr>
|
|
</table>
|
|
<center>
|
|
<input type="submit" value="<?php print_string('continue') ?>"/>
|
|
<input type="button" value="<?php print_string('cancel') ?>" onclick="javascript:history.go(-1)" />
|
|
</center> |