| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /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 ($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