Add file browser
authorJamie Cameron <jcameron@webmin.com>
Thu, 24 May 2007 20:47:05 +0000 (20:47 +0000)
committerJamie Cameron <jcameron@webmin.com>
Thu, 24 May 2007 20:47:05 +0000 (20:47 +0000)
postgresql/backup_form.cgi
postgresql/config.info
postgresql/restore_form.cgi

index 91ecd72..ae1bb38 100755 (executable)
@@ -50,7 +50,8 @@ if ($in{'all'}) {
 else {
        print "<tr> <td><b>$text{'backup_path'}</b></td>\n" ;
        }
-print "<td><input type=text name=path value='$p' size=64></td></tr>\n" ;
+print "<td><input type=text name=path value='$p' size=64>",
+      &file_chooser_button("path"),"</td></tr>\n" ;
 
 # Show backup format input
 $f = $c{'backup_format_'.$in{'db'}};
index 33bc99b..109a87e 100644 (file)
@@ -19,8 +19,8 @@ basedb=Initial PostgreSQL database,0
 start_cmd=Command to start PostgreSQL,0
 stop_cmd=Command to stop PostgreSQL,3,Kill process
 setup_cmd=Command to initialize PostgreSQL,3,None
-pid_file=Path to postmaster PID file,0
-hba_conf=Path to host access config file,0
+pid_file=Path to postmaster PID file,8
+hba_conf=Path to host access config file,8
 host=PostgreSQL host to connect to,3,localhost
 port=PostgreSQL port to connect to,3,Default
 dump_cmd=Path to pg_dump command,0
index e44c566..7ea5765 100755 (executable)
@@ -22,7 +22,8 @@ print &ui_table_start($text{'restore_header'}, undef, 2);
 print &ui_table_row($text{'restore_src'},
        &ui_radio("src", 0,
                [ [ 0, &text('restore_src0',
-                            &ui_textbox("path", $config{'repository'}, 50)).
+                            &ui_textbox("path", $config{'repository'}, 50).
+                            &file_chooser_button("path")).
                       "<br>" ],
                  [ 1, &text('restore_src1',
                             &ui_upload("data")) ] ]));