| Current File : //var/wcp4/mycath2o/public_html/file/file/file/private/templates.old/compiled/home.html.compiled |
# This file is a compiled version of a template that can be run much faster
# than reparsing the file, yet accomplishes the same thing. You should not
# attempt to modify this file as any changes you make would be lost as soon as
# the original template file is modified.
# Generated: Tue Aug 19 11:39:32 2003
# Editor: vim:syn=perl
local $^W;
{
parse_date => 1061264372,
deps => [],
parser_version => 2.078,
file_type => 'REL',
code => \>::Template::parsed_template
};
sub GT::Template::parsed_template {
local $^W; # Get rid of warnings. unfortunately, this won't work for Perl 5.6's -W switch
my $self = shift;
my $return = '';
my $escape = $self->{opt}->{escape};
my $strict = $self->{opt}->{strict};
my $tmp;
$return .= q{<html>
<head>
<script language="JavaScript" src="};
$return .= $tmp if defined($tmp = $self->_get_var(q{html_url}, $escape, $strict));
$return .= q{/fileman.js"></script>
<script>
var ie = (document.all)? true:false;
var url = window.location.protocol + '//' + window.location.hostname + window.location.pathname + '?};
if ($self->_get_var(q{url_opts}, 0, 0)) {
$return .= $tmp if defined($tmp = $self->_get_var(q{url_opts}, $escape, $strict));
}
$return .= q{';
var workPath = '';
var Root;
function wasDownload() \{
if (ie && typeof(window.top.mainfrm.document) == 'unknown') \{
if (workPath && !Root) \{ url += 'work_path=' + workPath; \}
alert("Your browser will be reloaded for some reason, so you should redo the command again.\nPlease hit Ok button to continue.");
window.location.reload(url);
return true;
\}
\}
function refresh() \{
var frmMain = window.top.mainfrm.document.frm_main;
if (typeof(window.top.mainfrm.frm_main) == 'unknown' || typeof(frmMain) == 'undefined' || typeof(frmMain.re_scheme) == 'undefined') return;
if (frmMain.re_scheme.value != "") \{
frmMain.re_scheme.value = "";
window.location = url
\}
\}
function js_open_link(action,frame,file_name,root) \{
Root = root;
if (wasDownload()) return;
var frmMain = window.top.mainfrm.document.frm_main;
var work_path = frmMain.work_path.value;
if (root) \{
eval("window.top." + frame).location = url + '&fdo=' + action
\}
else \{
if (file_name) \{
eval("window.top." + frame).location = url + '&fdo=' + action + '&page=' + file_name + '&work_path=' + work_path
\}
else \{
eval("window.top." + frame).location = url + '&fdo=' + action + '&work_path=' + work_path
\}
\}
\}
function js_download(file_name) \{
if (wasDownload()) return;
var frmMain = window.top.mainfrm.document.frm_main;
var work_path = frmMain.work_path.value;
window.top.mainfrm.location = url + 'fdo=cmd_download&c_edit=' + file_name + '&work_path=' + work_path;
\}
function js_cmd_download() \{
if (wasDownload()) return;
var frmMain = window.top.mainfrm.document.frm_main;
if (typeof(window.top.mainfrm.frm_main) == 'unknown' || typeof(frmMain) == 'undefined' || typeof(frmMain.main_screen) == 'undefined') \{
alert("Please return to main screen and execute the command again");
return
\}
var name;
var count = 0;
for (var i=0;i<frmMain.elements.length;i++) \{
var e = frmMain.elements[i];
if ((e.name != 'allbox') && (e.type=='checkbox')&& (e.checked)) \{
name = e.value;
count++;
\}
if (count > 1) \{break;\}
\}
if (typeof(name) == 'undefined') \{
alert("Please select a file to download");
return
\}
if (count > 1) \{
alert("You should choose only one file to download");
return;
\}
frmMain.cmd_do.value = 'cmd_download';
};
unless ($self->_get_var(q{srv_soft}, 0, 0)) {
$return .= q{
frmMain.action += "/" + name;
};
}
$return .= q{
frmMain.submit();
workPath = frmMain.work_path.value
\}
function js_cmd_search () \{
if (wasDownload()) return;
var frmMain = window.top.mainfrm.document.frm_main;
if (typeof(window.top.mainfrm.frm_main) == 'unknown' || typeof(frmMain) == 'undefined') \{
alert("Please return to main screen and execute the command again");
return
\}
var doc = top.bottomfrm.document ;
var work_path = frmMain.work_path.value;
if (work_path == '')
work_path = 'Root'
doc.clear();
doc.write("<script>function check_input() \{if (!document.frm_footer.txt_input.value) \{");
doc.write("return 'Please enter the filename you wish to search for';\}");
doc.write("if (top.bottomfrm.document.frm_footer.scope.selectedIndex == 1) \{");
doc.write("return top.check_selected(true);\}\}<\/script>")
doc.write("<form name=frm_footer action='};
$return .= $tmp if defined($tmp = $self->_get_var(q{http_ref}, $escape, $strict));
$return .= q{' method=post target='mainfrm' onsubmit='return top.check_command()'>");
write_cmd_tools(doc);
doc.write("<table border='0' cellpadding='2' cellspacing='0'>\n");
doc.write("<tr ><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Look in:</td>")
doc.write("<td><table width=100% cellpadding=0 cellspacing=0><tr><td >};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{");
doc.write("<select class='button' name=scope><option value=1>All of "+work_path+"<option value=2>Selected Files</select></td>");
doc.write("<td> };
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{<input name='c_case' type=checkbox value=1 >Case Sensitive</td>");
doc.write("<td> };
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{<input name='c_content' type=checkbox value=1 >Search Contents</td>");
doc.write("<td> };
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{<input name='c_regex' type=checkbox value=1 onclick='top.regex()'>Expression</td></tr></table></td></tr>");
doc.write("<tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Search for:</font></td><td colspan=2>\n");
doc.write("<input name=txt_input size=50 class='button'><input type=submit class='submit' name=submit value='Search'></td></tr></table>\n");
doc.write("<input type=hidden name=work_path value='};
$return .= $tmp if defined($tmp = $self->_get_var(q{work_path}, $escape, $strict));
$return .= q{'>\n");
doc.write("<input type=hidden name=cmd_do value='cmd_search'></form></body>");
doc.close();
\}
function js_cmd_replace () \{
if (wasDownload()) return;
var frmMain = window.top.mainfrm.document.frm_main;
if (typeof(window.top.mainfrm.frm_main) == 'unknown' || typeof(frmMain) == 'undefined') \{
alert("Please return to main screen and execute the command again");
return
\}
var doc = top.bottomfrm.document ;
var work_path = frmMain.work_path.value;
if (work_path == '')
work_path = 'Root'
doc.clear();
doc.write("<script>function check_input() \{if (top.wasDownload()) return; if (!document.frm_footer.txt_input.value) \{ ");
doc.write("return 'Please enter the content you wish to search for';\}");
doc.write("if (!document.frm_footer.txt_with.value) \{");
doc.write("return 'Please enter the content you wish to replace with';\}");
doc.write("if (top.bottomfrm.document.frm_footer.scope.selectedIndex == 1) \{");
doc.write("return top.check_selected(true);\}\}<\/script>")
doc.write("<form name=frm_footer action='};
$return .= $tmp if defined($tmp = $self->_get_var(q{http_ref}, $escape, $strict));
$return .= q{' method=post target='mainfrm' onsubmit='return top.check_command()'>");
write_cmd_tools(doc);
doc.write("<table border='0' cellpadding='2' cellspacing='0'>\n");
doc.write("<tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Look in:</font></td>")
doc.write("<td><table cellpadding=0 cellspacing=0><tr><td>");
doc.write("<select name=scope class='button'><option value=1>All of "+work_path+"<option value=2>Selected Files</select></td>");
doc.write("<td> };
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{<input name='c_case' type=checkbox value=1 >Case Sensitive</td>");
doc.write("<td> };
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{<input name='c_regex' type=checkbox value=1 >Expression</td>");
doc.write("<td> };
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{<input name='c_word' type=checkbox value=1 >Whole word only</td>");
doc.write("<td> };
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{<input name='c_bak' type=checkbox value=1 >Create .bak file</td></tr></table></td></tr>");
doc.write("<tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Replace:</font></td><td colspan=2>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{\n");
doc.write("<input name=txt_input class='button' size=25> with <input name=txt_with class='button'size=25> <input type=submit class='submit' name=submit value='Replace'></td></tr></table>\n");
doc.write("<input type=hidden name=work_path value='};
$return .= $tmp if defined($tmp = $self->_get_var(q{work_path}, $escape, $strict));
$return .= q{'>\n");
doc.write("<input type=hidden name=cmd_do value='cmd_replace'></form></body>");
doc.close();
\}
function js_cmd_command (type) \{
if (wasDownload()) return;
var frmMain = window.top.mainfrm.document.frm_main;
if (typeof(window.top.mainfrm.frm_main) == 'unknown' || typeof(frmMain) == 'undefined') \{
alert("Please return to main screen and execute the command again");
return
\}
var doc = top.bottomfrm.document ;
var status;
if (type) \{
status = "Please enter the command you wish to execute";
\}
else \{
status = frmMain.status.value
\}
doc.clear();
doc.write("<script>function check_input() \{if (top.wasDownload()) return; if (!document.frm_footer.txt_input.value) \{");
doc.write("return 'Please enter the command you wish to execute'\}return\}<\/script>");
doc.write("<form name=frm_footer action='};
$return .= $tmp if defined($tmp = $self->_get_var(q{http_ref}, $escape, $strict));
$return .= q{' method=post target='mainfrm' onsubmit='return top.check_command()'>\n");
write_cmd_tools(doc);
doc.write("<table border='0' cellpadding='2' cellspacing='0' >\n");
doc.write("<tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Status:</td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{" + status + "</font></td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{<input type=checkbox name='long'>Long Running</font></td></tr>\n");
doc.write("<tr><td >};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Command:</font></td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{\n");
doc.write("<input name=txt_input class='button' size=45> <input type=submit class='submit' name=submit value='Execute'> </td><td><input type=button class='submit' name='runfile' value='Run selected file' onClick='return top.js_run_command()'></td></tr></table>\n");
doc.write("<input type=hidden name=work_path value='};
$return .= $tmp if defined($tmp = $self->_get_var(q{work_path}, $escape, $strict));
$return .= q{'>\n");
doc.write("<input type=hidden name=cmd_do value='cmd_command'></form></body>");
doc.close();
\}
function js_cmd_makedir (type) \{
if (wasDownload()) return;
var frmMain = window.top.mainfrm.document.frm_main;
if (typeof(window.top.mainfrm.frm_main) == 'unknown' || typeof(frmMain) == 'undefined') \{
alert("Please return to main screen and execute the command again");
return
\}
var doc = top.bottomfrm.document ;
var status;
if (type) \{
var work_path = frmMain.work_path.value;
if (work_path == '') \{
work_path = 'Root';
\}
else \{
work_path = '/' + work_path
\}
status = "Create New directory inside of <b>" + work_path + "</b> directory";
\}
else \{
status = frmMain.status.value
\}
doc.clear();
doc.write("<script>function check_input() \{if (top.wasDownload()) return; if (!document.frm_footer.txt_input.value) \{");
doc.write("return 'Please enter the name of the directory you wish to create'\}return\}<\/script>");
doc.write("<form name=frm_footer action='};
$return .= $tmp if defined($tmp = $self->_get_var(q{http_ref}, $escape, $strict));
$return .= q{' method=post target='mainfrm' onsubmit='return top.check_command()'>\n");
write_cmd_tools(doc);
doc.write("<table border='0' cellpadding='2' cellspacing='2'>\n");
doc.write("<tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Status:</font></td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{");
if (ie) \{
doc.write("<div id=d_status>" + status + "</div>");
\} else \{
doc.write("<div id=d_status style='position:absolute; width:500px; height:6; z-index:1; left: 78; top: 30; background-color: #E9E9E9; layer-background-color: #E9E9E9; border: 0px none #000000'>" + status + "</div>");
\}
doc.write("</font></td></tr><tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Directory:</font></td><td>\n");
doc.write("<input name=txt_input class='button' size=70><input type=submit class='submit' name=submit value=' Create '></td></tr></table>\n");
doc.write("<input type=hidden name=work_path value='};
$return .= $tmp if defined($tmp = $self->_get_var(q{work_path}, $escape, $strict));
$return .= q{'>\n");
doc.write("<input type=hidden name=cmd_do value='cmd_makedir'></form></body>");
doc.close();
\}
function js_cmd_copy (type) \{
if (wasDownload()) return;
var frmMain = window.top.mainfrm.document.frm_main;
if (typeof(window.top.mainfrm.frm_main) == 'unknown' || typeof(frmMain) == 'undefined' || typeof(frmMain.main_screen) == 'undefined') \{
alert("Please return to main screen and execute the command again");
return
\}
var doc = top.bottomfrm.document ;
var status;
if (type) \{
status = 'Please enter where you would like to copy the files';
\}
else \{
status = frmMain.status.value
\}
var work_path = frmMain.work_path.value
doc.clear();
doc.write("<script>function check_input() \{if (top.wasDownload()) return; if (!document.frm_footer.txt_input.value) \{");
doc.write("return 'Please enter where you would like to copy the files'\}return\}<\/script>");
doc.write("<form name=frm_footer action='};
$return .= $tmp if defined($tmp = $self->_get_var(q{http_ref}, $escape, $strict));
$return .= q{' method=post target='mainfrm' onsubmit='return top.check_command()'>\n");
write_cmd_tools(doc);
doc.write("<table border='0' cellpadding='2' cellspacing='0'>\n");
doc.write("<tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Status:</font></td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{" + status + "</font></td></tr>\n");
doc.write("<tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Directory:</font></td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{\n");
doc.write("<input name=txt_input class='button' size=60 value=''><input type=submit class='submit' name=submit value=' Copy '></font></td></tr></table>\n");
doc.write("<input type=hidden name=work_path value='};
$return .= $tmp if defined($tmp = $self->_get_var(q{work_path}, $escape, $strict));
$return .= q{'>\n");
doc.write("<input type=hidden name=cmd_do value='cmd_copy'></form></body>");
doc.close();
\}
function js_cmd_move (type) \{
if (wasDownload()) return;
var frmMain = window.top.mainfrm.document.frm_main;
if (typeof(window.top.mainfrm.frm_main) == 'unknown' || typeof(frmMain) == 'undefined') \{
alert("Please return to main screen and execute the command again");
return
\}
var doc = top.bottomfrm.document ;
var status;
if (type) \{
status = 'Please enter where you would like to move the files';
\}
else \{
status = frmMain.status.value
\}
doc.clear();
doc.write("<script>function check_input() \{if (top.wasDownload()) return;if (!document.frm_footer.txt_input.value) \{");
doc.write("return 'Please enter where you would like to move the files'\}return\}<\/script>");
doc.write("<form name=frm_footer action='};
$return .= $tmp if defined($tmp = $self->_get_var(q{http_ref}, $escape, $strict));
$return .= q{' method=post target='mainfrm' onsubmit='return top.check_command()'>\n");
write_cmd_tools(doc);
doc.write("<table border='0' cellpadding='2' cellspacing='0'>\n");
doc.write("<tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Status:</font></td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{" + status + "</font></td></tr>\n");
doc.write("<tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Directory:</font></td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{\n");
doc.write("<input name=txt_input class='button' size=60><input type=submit class='submit' name=submit value=' Move '></td></tr></table>\n");
doc.write("<input type=hidden name=work_path value='};
$return .= $tmp if defined($tmp = $self->_get_var(q{work_path}, $escape, $strict));
$return .= q{'>\n");
doc.write("<input type=hidden name=cmd_do value='cmd_move'></form></body>");
doc.close();
\}
function js_cmd_chmod (type) \{
if (wasDownload()) return;
var frmMain = window.top.mainfrm.document.frm_main;
if (typeof(window.top.mainfrm.frm_main) == 'unknown' || typeof(frmMain) == 'undefined' || typeof(frmMain.main_screen) == 'undefined') \{
alert("Please return to main screen and execute the command again");
return
\}
var doc = top.bottomfrm.document ;
var status;
if (type) \{
status = 'Please select the permissions you would like to set';
\}
else \{
status = frmMain.status.value
\}
doc.clear();
doc.write("<script>function check_input() \{if (top.wasDownload()) return;if (document.frm_footer.txt_input.value && isNaN(document.frm_footer.txt_input.value) == true)\{return 'This field is a number'\}return\}<\/script>");
doc.write("<form name=frm_footer action='};
$return .= $tmp if defined($tmp = $self->_get_var(q{http_ref}, $escape, $strict));
$return .= q{' method=post target='mainfrm' onsubmit='return top.check_command()'>\n");
write_cmd_tools(doc)
doc.write("<table border='0' cellpadding='2' cellspacing='0'>\n");
doc.write("<tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Status:</font></td><td colspan=3>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{" + status + "</font></td></tr>\n");
doc.write("<tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Command:</font></td><td>\n");
doc.write("<input name=txt_input class='button' size=3 maxlength=4>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{ as numerical or </font></td>");
doc.write("<td><table border='0' cellpadding='1' cellspacing='1' bgcolor=#999999>");
doc.write("<td bgcolor=#D6D6D6>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{ r:<input type=checkbox name=ar value=1 onclick='top.init_chmod()'> w:<input type=checkbox name=aw value=1 onclick='top.init_chmod()'> x:<input type=checkbox name=ax value=1 onclick='top.init_chmod()'></td>");
doc.write("<td bgcolor=#D6D6D6>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{ r:<input type=checkbox name=ur value=1 onclick='top.init_chmod()'> w:<input type=checkbox name=uw value=1 onclick='top.init_chmod()'> x:<input type=checkbox name=ux value=1 onclick='top.init_chmod()'></td>");
doc.write("<td bgcolor=#D6D6D6>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{ r:<input type=checkbox name=gr value=1 onclick='top.init_chmod()'> w:<input type=checkbox name=gw value=1 onclick='top.init_chmod()'> x:<input type=checkbox name=gx value=1 onclick='top.init_chmod()'></td>");
doc.write("<td bgcolor=#D6D6D6>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{ r:<input type=checkbox name=wr value=1 onclick='top.init_chmod()'> w:<input type=checkbox name=ww value=1 onclick='top.init_chmod()'> x:<input type=checkbox name=wx value=1 onclick='top.init_chmod()'></td></tr></table></td>");
doc.write("<td><input type=submit class='submit' name=submit value='Chmod'></td></tr></table>\n");
doc.write("<input type=hidden name=work_path value='};
$return .= $tmp if defined($tmp = $self->_get_var(q{work_path}, $escape, $strict));
$return .= q{'>\n");
doc.write("<input type=hidden name=cmd_do value='cmd_chmod'></form></body>");
doc.close();
\}
function js_cmd_upload (type) \{
if (wasDownload()) return;
var frmMain = window.top.mainfrm.document.frm_main;
if (typeof(window.top.mainfrm.frm_main) == 'unknown' || typeof(frmMain) == 'undefined' ) \{
alert("Please return to main screen and execute the command again");
return
\}
var doc = top.bottomfrm.document ;
var status;
var work_path = frmMain.work_path.value;
if (type) \{
if (work_path == '') \{
work_path = 'Root';
\}
else \{
work_path = '/' + work_path
\}
status = "Upload a file into <b>" + work_path + "</b> directory";
\}
else \{
status = frmMain.status.value
\}
var work_path;
if (typeof(top.mainfrm.document.frm_main.work_path) != 'undefined') \{
work_path = frmMain.work_path.value
\}
doc.clear();
doc.write("<script>function check_input()\{if (top.wasDownload()) return;if (!document.frm_footer.txt_input.value) \{alert('Please select the file you wish to upload');\}\n");
doc.write("else \{document.frm_footer.work_path.value = top.mainfrm.document.frm_main.work_path.value; document.frm_footer.submit();\}\}<\/script>\n");
doc.write("<form name=frm_footer action='};
$return .= $tmp if defined($tmp = $self->_get_var(q{http_ref}, $escape, $strict));
$return .= q{' method=post target='mainfrm' enctype='multipart/form-data'>\n");
write_cmd_tools(doc);
doc.write("<table border='0' cellpadding='2' cellspacing='2'11/27/2001>\n");
doc.write("<tr><td width='9%'>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Status:</font></td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{");
if (ie) \{
doc.write("<div id=d_status>" + status + "</div>");
\} else \{
doc.write("<div id=d_status style='position:absolute; width:500px; height:6; z-index:1; left: 74; top: 30; background-color: #E9E9E9; layer-background-color: #E9E9E9; border: 0px none #000000'>" + status + "</div>");
\}
doc.write("</font></td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{<input type='radio' name='type' value='ascii'>Ascii <input type='radio' name='type' value='binary'>Binary<input type='radio' name='type' value='auto' checked>Auto</font></td></tr>\n");
doc.write("<tr><td width='9%'>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{File name:</font></td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{<input name=txt_input class='button' type=file size=30>");
doc.write("<input type=button class='submit' name=Upload value='Upload' onclick=check_input()></font></td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{<input name=overwrite type=checkbox value='1'>Overwrite");
doc.write(" <a href='javascript:top.js_cmd_multi_upload()'>Multiple Upload</a></td></tr></table>\n");
doc.write("<input type=hidden name=work_path value="+work_path+"><input type=hidden name=cmd_do value='cmd_upload'>")
doc.write("<input type=hidden name=do value='fileman'>");
};
unless ($self->_get_var(q{user_sessions}, 0, 0)) {
$return .= q{
doc.write("<input type=hidden name=session_id value='};
$return .= $tmp if defined($tmp = $self->_get_var(q{session_id}, $escape, $strict));
$return .= q{'>");
};
}
$return .= q{
};
if ($self->_get_var(q{root_selected}, 0, 0)) {
$return .= q{
doc.write("<input type=hidden name=root_selected value='};
$return .= $tmp if defined($tmp = $self->_get_var(q{root_selected}, $escape, $strict));
$return .= q{'>");
};
}
$return .= q{
doc.write("</form></body>");
doc.close();
\}
function js_cmd_multi_upload() \{
if (wasDownload()) return;
var frmMain = window.top.mainfrm.document.frm_main;
frmMain.cmd_do.value = 'cmd_show'
frmMain.page.value = 'multi_upload.html'
frmMain.submit();
return
\}
function js_progress_bar(action,msg) \{
if (wasDownload()) return;
var doc = top.bottomfrm.document ;
var bar_name = 'Copying';
if (action != '') \{
bar_name = action;
\}
doc.clear();
doc.write('<form name=frm method=post>');
write_cmd_tools(doc);
doc.write("<table><tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{");
doc.write('<input type="text" name="msg" value="'+ bar_name + ' '+msg+'" size="100" style="font-family: Verdana,Arial,Helvetica; font-size: 12; background-color: rgb(233,233,233); color: rgb(0,0,102); border: 0px solid #FFFFFF">');
doc.write('</td></tr></table>');
if (ie) \{
doc.write('<table><tr><td><table width="500" border="1" cellspacing="0" cellpadding="0" bgcolor="#E6E6E6" height=18>');
doc.write('<tr><td><table border="0" cellspacing="0" cellpadding="0" bgcolor="#999999">');
doc.write('<tr><td><img src="};
$return .= $tmp if defined($tmp = $self->_get_var(q{html_url}, $escape, $strict));
$return .= q{/icons/1pixel.gif" name=progess height=18 width=0></td></tr></table></td></tr></table></td>');
doc.write('<td align=left><input type="text" name="percent" value="0%" size="7" style="font-family: Verdana,Arial,Helvetica; font-size: 12; background-color: rgb(233,233,233); color: rgb(0,0,102); border: 0px solid #FFFFFF">');
doc.write('</td></tr></table>');
\}
doc.write('</form>');
doc.close();
\}
function js_cmd_tail (type) \{
if (wasDownload()) return;
var frmMain = window.top.mainfrm.document.frm_main;
if (typeof(window.top.mainfrm.frm_main) == 'unknown' || typeof(frmMain) == 'undefined' || typeof(frmMain.main_screen) == 'undefined') \{
alert("Please return to main screen and execute the command again");
return
\}
var doc = top.bottomfrm.document ;
var status;
if (type) \{
status = "Please select how many lines you would like to see";
\}
else \{
status = frmMain.status.value
\}
doc.clear();
doc.write("<script>function check_input() \{if (top.wasDownload()) return; if (!document.frm_footer.txt_input.value) \{");
doc.write("return 'Please select how many lines you would like to see'\}return\}<\/script>");
doc.write("<form name=frm_footer action='};
$return .= $tmp if defined($tmp = $self->_get_var(q{http_ref}, $escape, $strict));
$return .= q{' method=post target='mainfrm' onsubmit='return top.check_command()'>\n");
write_cmd_tools(doc)
doc.write("<table border='0' cellpadding='2' cellspacing='0'>\n");
doc.write("<tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Status:</font></td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{" + status + "</font></td></tr>\n");
doc.write("<tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Command:</font></td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{\n");
doc.write("<input name=txt_input class='button' size=10 value='25'><input type=submit class='submit' name=submit value=' Tail '> Refresh options: ");
doc.write("<select name=retime><option selected><option value=2>2<option value=5>5<option value=10>10<option value=30 >30<option value=60>60</select> seconds</font></td></tr></table>\n");
doc.write("<input type=hidden name=work_path value='};
$return .= $tmp if defined($tmp = $self->_get_var(q{work_path}, $escape, $strict));
$return .= q{'>\n");
doc.write("<input type=hidden name=cmd_do value='cmd_tail'></form></body>");
doc.close();
\}
function js_cmd_diff (type) \{
if (wasDownload()) return;
var frmMain = window.top.mainfrm.document.frm_main;
if (typeof(window.top.mainfrm.frm_main) == 'unknown' || typeof(frmMain) == 'undefined' || typeof(frmMain.main_screen) == 'undefined') \{
alert("Please return to main screen and execute the command again");
return
\}
var doc = top.bottomfrm.document ;
var status;
if (type) \{
status = "Enter path to the file to diff with ";
\}
else \{
status = frmMain.status.value
\}
doc.clear();
doc.write("<script>function check_input() \{if (top.wasDownload()) return;if (!document.frm_footer.txt_input.value) \{");
doc.write("return 'Please enter path to the file you would like diff with this file'\}return\}<\/script>");
doc.write("<form name=frm_footer action='};
$return .= $tmp if defined($tmp = $self->_get_var(q{http_ref}, $escape, $strict));
$return .= q{' method=post target='mainfrm' onsubmit='return top.check_command()'>\n");
write_cmd_tools(doc)
doc.write("<table border='0' cellpadding='2' cellspacing='0'>\n");
doc.write("<tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Status:</font></td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{" + status + "</font></td></tr>\n");
doc.write("<tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Command:</font></td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{\n");
doc.write("<input name=txt_input class='button' size=40> Path to file <input type=submit class='submit' name=submit value=' Diff '></font></td></tr></table>\n");
doc.write("<input type=hidden name=work_path value='};
$return .= $tmp if defined($tmp = $self->_get_var(q{work_path}, $escape, $strict));
$return .= q{'>\n");
doc.write("<input type=hidden name=cmd_do value='cmd_diff'></form></body>");
doc.close();
\}
function js_cmd_perl (type) \{
if (wasDownload()) return;
var frmMain = window.top.mainfrm.document.frm_main;
if (typeof(window.top.mainfrm.frm_main) == 'unknown' || typeof(frmMain) == 'undefined' || typeof(frmMain.main_screen) == 'undefined') \{
alert("Please return to main screen and execute the command again");
return
\}
var doc = top.bottomfrm.document ;
var status;
if (type) \{
status = "This will syntax check the perl file";
\}
else \{
status = frmMain.status.value
\}
doc.clear();
doc.write("<script>function check_input() \{if (top.wasDownload()) return;if (document.frm_footer.txt_input.value) \{");
doc.write("alert('This will check syntax of the perl files with params');\}\}<\/script>");
doc.write("<form name=frm_footer action='};
$return .= $tmp if defined($tmp = $self->_get_var(q{http_ref}, $escape, $strict));
$return .= q{' method=post target='mainfrm' onsubmit='return top.check_command()'>\n");
write_cmd_tools(doc)
doc.write("<table border='0' cellpadding='2' cellspacing='0'>\n");
doc.write("<tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Status:</font></td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{" + status + "</font></td></tr>\n");
doc.write("<tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Command:</font></td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{\n");
doc.write("<input name=txt_input class='button' size=20> optional arguments <input type=submit class='submit' name=submit value=' Perl '></font></td></tr></table>\n");
doc.write("<input type=hidden name=work_path value='};
$return .= $tmp if defined($tmp = $self->_get_var(q{work_path}, $escape, $strict));
$return .= q{'>\n");
doc.write("<input type=hidden name=cmd_do value='cmd_perl'></form></body>");
doc.close();
\}
function js_cmd_tar (type) \{
if (wasDownload()) return;
var frmMain = window.top.mainfrm.document.frm_main;
if (typeof(window.top.mainfrm.frm_main) == 'unknown' || typeof(frmMain) == 'undefined' || typeof(frmMain.main_screen) == 'undefined') \{
alert("Please return to main screen and execute the command again");
return
\}
var doc = top.bottomfrm.document ;
var status;
if (type) \{
status = 'Please enter where you would like to save the tar file';
\}
else \{
status = frmMain.status.value
\}
var work_path = frmMain.work_path.value
var have_gzip = frmMain.have_gzip.value
doc.clear();
doc.write("<script>function check_input() \{if (top.wasDownload()) return;if (!document.frm_footer.txt_input.value) \{");
doc.write("return 'Please enter where you would like to save the tar file'\}return\}<\/script>");
doc.write("<form name=frm_footer action='};
$return .= $tmp if defined($tmp = $self->_get_var(q{http_ref}, $escape, $strict));
$return .= q{' method=post target='mainfrm' onsubmit='return top.check_command()'>");
write_cmd_tools(doc)
doc.write("<table border='0' cellpadding='2' cellspacing='0'>\n");
doc.write("<tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Status:</font></td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{" + status + "</font></td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{");
if (have_gzip == 1) \{
doc.write("<input type=checkbox value='1' name=opt_gz checked> <b>create .tar.gz</b>");
\}
doc.write("</td></tr><tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Command:</font></td><td colspan=2>\n");
doc.write("<input name=txt_input class='button' size=60 value=''><input type=submit class='submit' name=submit value='Create Tar'></td></tr></table>\n");
doc.write("<input type=hidden name=work_path value='};
$return .= $tmp if defined($tmp = $self->_get_var(q{work_path}, $escape, $strict));
$return .= q{'>\n");
doc.write("<input type=hidden name=cmd_do value='cmd_tar'></form>");
doc.close();
\}
function js_cmd_untar (status,work_path) \{
var doc = top.bottomfrm.document ;
doc.clear();
doc.write("<form name=frm_footer action='};
$return .= $tmp if defined($tmp = $self->_get_var(q{http_ref}, $escape, $strict));
$return .= q{' method=post target='mainfrm' onsubmit='return top.check_command()'>");
write_cmd_tools(doc)
doc.write("<table border='0' cellpadding='2' cellspacing='0'>\n");
doc.write("<tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Status:</font></td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{" + status + "</font></td><td></tr>");
doc.write("<tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Uncompress to:</font></td><td colspan=2>\n");
doc.write("<input name=txt_input class='button' size=60 value=''><input type=submit class='submit' name=submit value=' Go '></td></tr></table>\n");
doc.write("<input type=hidden name=work_path value='};
$return .= $tmp if defined($tmp = $self->_get_var(q{work_path}, $escape, $strict));
$return .= q{'>\n");
doc.write("<input type=hidden name=cmd_do value='cmd_uncompress'></form>");
doc.close();
\}
function js_status (msg) \{
var doc = top.bottomfrm.document ;
var status;
if (msg != '') \{
status = msg;
\}
else \{
status = window.top.mainfrm.document.frm_main.status.value
\}
doc.clear();
write_cmd_tools(doc);
doc.write("<script>function check_input() \{if (top.wasDownload()) return;if (!document.frm_footer.txt_input.value) \{");
doc.write("return 'Please enter the command you wish to execute'\}return\}<\/script>");
doc.write("<table border='0' cellpadding='3' cellspacing='0'>\n");
doc.write("<tr><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{Status: </font></td><td>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{" + status + "</font></td></tr>\n");
doc.write("</table></body>");
doc.close();
\}
function obj_focus() \{
var foo = top.topfrm.document.frm_top
if (typeof(foo) != 'undefined')
foo.txt_input.focus();
\}
function regex() \{
var foo = top.bottomfrm.document.frm_footer
if (foo.c_regex.checked)
foo.c_content.checked = true
\}
function write_cmd_tools(doc) \{
var num_objects,total_space;
var frmMain = window.top.mainfrm.document.frm_main;
if (typeof(frmMain) != 'undefined' && typeof(frmMain.num_objects) != 'undefined')
num_objects = frmMain.num_objects.value;
if (typeof(frmMain) != 'undefined' && typeof(frmMain.total_space) != 'undefined')
total_space = frmMain.total_space.value;
doc.write("<link rel='stylesheet' href='};
$return .= $tmp if defined($tmp = $self->_get_var(q{html_url}, $escape, $strict));
$return .= q{/};
$return .= $tmp if defined($tmp = $self->_get_var(q{scheme}, $escape, $strict));
$return .= q{.css'><body class='background' leftmargin=5 topmargin=5 onLoad='top.obj_focus()'>");
doc.write("<table border='1' cellpadding='0' cellspacing='0' height=20 width=100%><tr><td>");
doc.write("<table border='0' cellpadding='0' cellspacing='0' width=100%>");
doc.write("<tr height=25><td width='10%'>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{<b> Commands:</b></font></font></td>")
};
if ($self->_get_var(q{show_all}, 0, 0)) {
$return .= q{
doc.write("<td width='58%'>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{<a href='javascript:top.js_cmd_edit()'>Edit</a> | ");
doc.write("<a href='javascript:top.js_cmd_download()'>Download</a> | ");
doc.write("<a href='javascript:top.js_cmd_copy(1)'>Copy</a> | ");
doc.write("<a href='javascript:top.js_cmd_delete()'>Delete</a> | ");
doc.write("<a href='javascript:top.js_cmd_move(1)'>Move</a> | ");
doc.write("<a href='javascript:top.js_cmd_chmod(1)'>Chmod</a> | ");
doc.write("<a href='javascript:top.js_cmd_tail(1)'>Tail</a> | ");
doc.write("<a href='javascript:top.js_cmd_perl(1)'>Perl</a> | ");
doc.write("<a href='javascript:top.js_cmd_diff(1)'>Diff</a> | ");
doc.write("<a href='javascript:top.js_cmd_tar(1)'>Tar</a></font></td>");
};
}
else {
$return .= q{
doc.write("<td width='58%'>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
if ($self->_get_var(q{cmd_edit}, 0, 0)) {
$return .= q{<a href='javascript:top.js_cmd_edit()'>Edit</a> | };
}
$return .= q{");
doc.write("};
if ($self->_get_var(q{cmd_download}, 0, 0)) {
$return .= q{<a href='javascript:top.js_cmd_download()'>Download</a> | };
}
$return .= q{");
doc.write("};
if ($self->_get_var(q{cmd_copy}, 0, 0)) {
$return .= q{<a href='javascript:top.js_cmd_copy(1)'>Copy</a> | };
}
$return .= q{");
doc.write("};
if ($self->_get_var(q{cmd_delete}, 0, 0)) {
$return .= q{<a href='javascript:top.js_cmd_delete()'>Delete</a> | };
}
$return .= q{");
doc.write("};
if ($self->_get_var(q{cmd_move}, 0, 0)) {
$return .= q{<a href='javascript:top.js_cmd_move(1)'>Move</a> | };
}
$return .= q{");
doc.write("};
if ($self->_get_var(q{cmd_chmod}, 0, 0)) {
$return .= q{<a href='javascript:top.js_cmd_chmod(1)'>Chmod</a> | };
}
$return .= q{");
doc.write("};
if ($self->_get_var(q{cmd_tail}, 0, 0)) {
$return .= q{<a href='javascript:top.js_cmd_tail(1)'>Tail</a> | };
}
$return .= q{");
doc.write("};
if ($self->_get_var(q{cmd_perl}, 0, 0)) {
$return .= q{<a href='javascript:top.js_cmd_perl(1)'>Perl</a> | };
}
$return .= q{");
doc.write("};
if ($self->_get_var(q{cmd_diff}, 0, 0)) {
$return .= q{<a href='javascript:top.js_cmd_diff(1)'>Diff</a> | };
}
$return .= q{");
doc.write("};
if ($self->_get_var(q{cmd_tar}, 0, 0)) {
$return .= q{<a href='javascript:top.js_cmd_tar(1)'>Tar</a> };
}
$return .= q{</font></td>");
};
}
$return .= q{
doc.write("<td width=32% align=right>};
$return .= $tmp if defined($tmp = $self->_get_var(q{font}, $escape, $strict));
$return .= q{")
if (typeof(total_space) != 'undefined' && typeof(num_objects) != 'undefined') \{
if (ie) \{
doc.write("<div id=d_msg><font size=1><b>0 of "+print_filesize(total_space)+" in 0 of "+num_objects+" files selected </b></div>");
\} else \{
doc.write("<div id=d_msg style='position:absolute; width:500px; height:8; z-index:1; left: 600; top: 13; background-color: #E9E9E9; layer-background-color: #E9E9E9; border: 0px none #000000' valign=middle><font size=1 face=arial><b>0 of "+print_filesize(total_space)+" in 0 of "+num_objects+" files selected </b></font></div>");
\}
\}
doc.write("</font></td></tr></tr></table></td></tr></table></body>");
\}
function js_tools_bar() \{
var doc = top.bottomfrm.document ;
doc.clear();
write_cmd_tools(doc);
doc.close();
\}
</script>
<script language="JavaScript1.2">
top.window.moveTo(0,0);
if (document.all) \{
top.window.resizeTo(screen.availWidth,screen.availHeight);
\}
else if (document.layers||document.getElementById) \{
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth)\{
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
\}
\}
function hidestatus()\{
window.status='WCP4 : File Manager'
return true
\}
// Hide Status Bar
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus
</script>
<title>File Management </title>
</head>
<frameset rows="72,*,95" framespacing=0 >
<frame name="topfrm" src="};
$return .= $tmp if defined($tmp = $self->_get_var(q{http_ref}, $escape, $strict));
$return .= q{?fdo=cmd_show&page=blank.html&};
$return .= $tmp if defined($tmp = $self->_get_var(q{url_opts}, $escape, $strict));
$return .= q{" scrolling="no" noresize frameborder="0" target="mainfrm" marginwidth="5" marginheight="3" >
<frame name="mainfrm" src="};
$return .= $tmp if defined($tmp = $self->_get_var(q{http_ref}, $escape, $strict));
$return .= q{?fdo=cmd_main_display&def_load=1&};
$return .= $tmp if defined($tmp = $self->_get_var(q{url_opts}, $escape, $strict));
if ($self->_get_var(q{work_path}, 0, 0)) {
$return .= q{&work_path=};
$return .= $tmp if defined($tmp = $self->_get_var(q{work_path}, $escape, $strict));
}
$return .= q{" frameborder="1" bordercolor='EEEEEE'>
<frame name="bottomfrm" src="};
$return .= $tmp if defined($tmp = $self->_get_var(q{http_ref}, $escape, $strict));
$return .= q{?fdo=cmd_show&page=blank.html&};
$return .= $tmp if defined($tmp = $self->_get_var(q{url_opts}, $escape, $strict));
$return .= q{" frameborder="0" scrolling="no" noresize target="mainfrm" bordercolor="#CCCCCC">
<noframes>
<body bgcolor="#FFFFFF">
<p>Fileman requires you to use a frames enabled browser..</p>
</body>
</noframes>
</frameset>
</html>
};
return \$return;
}