File: utfdbmigrate.html

package info (click to toggle)
moodle 1.6.3-2%2Betch3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 37,172 kB
  • ctags: 51,688
  • sloc: php: 231,916; sql: 5,631; xml: 2,688; sh: 1,185; perl: 638; makefile: 48; pascal: 36
file content (70 lines) | stat: -rw-r--r-- 2,616 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?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') ?>"/>
&nbsp;<input type="button" value="<?php print_string('cancel') ?>" onclick="javascript:history.go(-1)" />
</center>