Noted that xml format can now handle images.
[moodle-linuxchix.git] / admin / utfdbmigrate.html
blob1f118fa6e85751c2f6c86d7bdcf1fac8bdab332b
1 <?php
2 if (!isset($form->dbhost)) {
3 $form->dbhost = '';
5 if (!isset($form->dbname)) {
6 $form->dbname = '';
8 if (!isset($form->dbuser)) {
9 $form->dbuser = '';
11 if (!isset($form->dbpass)) {
12 $form->dbpass = '';
14 if (!isset($form->dbcluster)) {
15 $form->dbcluster = '';
17 if (!isset($form->pathtopgdump)) {
18 $form->pathtopgdump = '';
20 if (!isset($form->pathtopsql)) {
21 $form->pathtopsql = '';
24 <form name="migratefrom" action="utfdbmigrate.php" method="POST">
25 <input name="migrate" type="hidden" value="1" />
26 <input name="sesskey" type="hidden" value="<?php echo sesskey() ?>" />
27 <?php if (isset($err["dbconnect"])) formerr($err["dbconnect"]); ?>
28 <?php if (isset($err["pathtopgdump"])) formerr($err["pathtopgdump"]); ?>
29 <?php if (isset($err["pathtopsql"])) formerr($err["pathtopsql"]); ?>
30 <table cellpadding="9" cellspacing="0" width="500">
31 <tr valign="top">
32 <td align="right"><?php print_string("dbhost", "install") ?>:</td>
33 <td><input type="text" name="dbhost" value="<?php p($form->dbhost) ?>" />
34 </td>
35 </tr>
36 <tr valign="top">
37 <td align="right"><?php print_string("database", "install") ?>:</td>
38 <td><input type="text" name="dbname" value="<?php p($form->dbname) ?>" />
39 </td>
40 </tr>
41 <tr valign="top">
42 <td align="right"><?php print_string("user") ?>:</td>
43 <td><input type="text" name="dbuser" value="<?php p($form->dbuser) ?>" />
44 </td>
45 </tr>
46 <tr valign="top">
47 <td align="right"><?php print_string("password") ?>:</td>
48 <td><input type="text" name="dbpass" value="<?php p($form->dbpass) ?>" />
49 </td>
50 </tr>
51 <tr valign="top">
52 <td align="right"><?php print_string("pgcluster", "admin") ?>:</td>
53 <td><input type="text" name="dbcluster" value="<?php p($form->dbcluster) ?>" />
54 <td><?php print_string("pgclusterdescription", "admin") ?></td>
55 </tr>
56 <tr valign="top">
57 <td align="right" nowrap="nowrap"><?php print_string("pathtopgdump","admin") ?>:</td>
58 <td><input type="text" name="pathtopgdump" value="<?php p($form->pathtopgdump) ?>" />
59 <td><?php print_string("pathtopgdumpdesc","admin"); ?></td>
60 </tr>
61 <tr valign="top">
62 <td align="right" nowrap="nowrap"><?php print_string("pathtopsql","admin") ?>:</td>
63 <td><input type="text" name="pathtopsql" value="<?php p($form->pathtopsql) ?>" />
64 <td><?php print_string("pathtopsqldesc","admin"); ?></td>
65 </tr>
66 </table>
67 <center>
68 <input type="submit" value="<?php print_string('continue') ?>"/>
69 &nbsp;<input type="button" value="<?php print_string('cancel') ?>" onclick="javascript:history.go(-1)" />
70 </center>