|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/usr/libexec/webmin/bacula-backup/ |
Upload File : |
#!/usr/bin/perl
# treechooser.cgi
# Outputs HTML for a java file-chooser tree
require './bacula-backup-lib.pl';
&PrintHeader();
&ReadParse();
$shortest = "/";
if ($session_id) {
$session = "<param name=session value=\"sid=$session_id\">";
}
$in{'job'} =~ s/^(.*)_(\d+)$/$2/g;
print <<EOF;
<html><head><title>$text{'tree_title'}</title><body>
<script>
function clear_files()
{
top.ifield.value = "";
}
function add_file(file)
{
top.ifield.value = top.ifield.value + file + "\\n";
}
function finished()
{
window.close();
}
</script>
<applet code=TreeChooser name=TreeChooser width=100% height=100% MAYSCRIPT>
<param name=volume value="$in{'volume'}">
<param name=root value="$shortest">
<param name=job value="$in{'job'}">
$session
</applet>
</body></html>
EOF