MOON
Server: Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
System: Linux csr818.wilogic.com 2.6.18-419.el5xen #1 SMP Fri Feb 24 22:50:37 UTC 2017 x86_64
User: digitals (531)
PHP: 5.4.45
Disabled: NONE
Upload Files
File: //var/usr/webmin-1.941/bacula-backup/treechooser.cgi
#!/usr/bin/perl
# treechooser.cgi
# Outputs HTML for a java file-chooser tree

require './bacula-backup-lib.pl';
&PrintHeader();
&ReadParse();

$shortest = "/";
if ($main::session_id) {
	$session = "<param name=session value=\"sid=$main::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