| Current File : //var/wcp4/inpoint1/public_html/tmp/templates/home.html |
<html>
<head>
<script language="JavaScript" src="<%html_url%>/fileman.js"></script>
<script>
var ie = (document.all)? true:false;
var url = window.location.protocol + '//' + window.location.hostname + window.location.pathname + '?<%if url_opts%><%url_opts%><%endif%>';
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';
<%ifnot srv_soft%>
frmMain.action += "/" + name;
<%endif%>
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='<%http_ref%>' 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><%font%>Look in:</td>")
doc.write("<td><table width=100% cellpadding=0 cellspacing=0><tr><td ><%font%>");
doc.write("<select class='button' name=scope><option value=1>All of "+work_path+"<option value=2>Selected Files</select></td>");
doc.write("<td> <%font%><input name='c_case' type=checkbox value=1 >Case Sensitive</td>");
doc.write("<td> <%font%><input name='c_content' type=checkbox value=1 >Search Contents</td>");
doc.write("<td> <%font%><input name='c_regex' type=checkbox value=1 onclick='top.regex()'>Expression</td></tr></table></td></tr>");
doc.write("<tr><td><%font%>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='<%work_path%>'>\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='<%http_ref%>' 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><%font%>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> <%font%><input name='c_case' type=checkbox value=1 >Case Sensitive</td>");
doc.write("<td> <%font%><input name='c_regex' type=checkbox value=1 >Expression</td>");
doc.write("<td> <%font%><input name='c_word' type=checkbox value=1 >Whole word only</td>");
doc.write("<td> <%font%><input name='c_bak' type=checkbox value=1 >Create .bak file</td></tr></table></td></tr>");
doc.write("<tr><td><%font%>Replace:</font></td><td colspan=2><%font%>\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='<%work_path%>'>\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='<%http_ref%>' 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><%font%>Status:</td><td><%font%>" + status + "</font></td><td><%font%><input type=checkbox name='long'>Long Running</font></td></tr>\n");
doc.write("<tr><td ><%font%>Command:</font></td><td><%font%>\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='<%work_path%>'>\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='<%http_ref%>' 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><%font%>Status:</font></td><td><%font%>");
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><%font%>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='<%work_path%>'>\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='<%http_ref%>' 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><%font%>Status:</font></td><td><%font%>" + status + "</font></td></tr>\n");
doc.write("<tr><td><%font%>Directory:</font></td><td><%font%>\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='<%work_path%>'>\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='<%http_ref%>' 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><%font%>Status:</font></td><td><%font%>" + status + "</font></td></tr>\n");
doc.write("<tr><td><%font%>Directory:</font></td><td><%font%>\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='<%work_path%>'>\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='<%http_ref%>' 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><%font%>Status:</font></td><td colspan=3><%font%>" + status + "</font></td></tr>\n");
doc.write("<tr><td><%font%>Command:</font></td><td>\n");
doc.write("<input name=txt_input class='button' size=3 maxlength=4><%font%> as numerical or </font></td>");
doc.write("<td><table border='0' cellpadding='1' cellspacing='1' bgcolor=#999999>");
doc.write("<td bgcolor=#D6D6D6><%font%> 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><%font%> 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><%font%> 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><%font%> 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='<%work_path%>'>\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='<%http_ref%>' 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%'><%font%>Status:</font></td><td><%font%>");
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><%font%><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%'><%font%>File name:</font></td><td><%font%><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><%font%><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'>");
<%ifnot user_sessions%>
doc.write("<input type=hidden name=session_id value='<%session_id%>'>");
<%endif%>
<%if root_selected%>
doc.write("<input type=hidden name=root_selected value='<%root_selected%>'>");
<%endif%>
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><%font%>");
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="<%html_url%>/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='<%http_ref%>' 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><%font%>Status:</font></td><td><%font%>" + status + "</font></td></tr>\n");
doc.write("<tr><td><%font%>Command:</font></td><td><%font%>\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='<%work_path%>'>\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='<%http_ref%>' 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><%font%>Status:</font></td><td><%font%>" + status + "</font></td></tr>\n");
doc.write("<tr><td><%font%>Command:</font></td><td><%font%>\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='<%work_path%>'>\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='<%http_ref%>' 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><%font%>Status:</font></td><td><%font%>" + status + "</font></td></tr>\n");
doc.write("<tr><td><%font%>Command:</font></td><td><%font%>\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='<%work_path%>'>\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='<%http_ref%>' 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><%font%>Status:</font></td><td><%font%>" + status + "</font></td><td><%font%>");
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><%font%>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='<%work_path%>'>\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='<%http_ref%>' 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><%font%>Status:</font></td><td><%font%>" + status + "</font></td><td></tr>");
doc.write("<tr><td><%font%>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='<%work_path%>'>\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><%font%>Status: </font></td><td><%font%>" + 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='<%html_url%>/<%scheme%>.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%'><%font%><b> Commands:</b></font></font></td>")
<%if show_all%>
doc.write("<td width='58%'><%font%><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%>
doc.write("<td width='58%'><%font%><%if cmd_edit%><a href='javascript:top.js_cmd_edit()'>Edit</a> | <%endif%>");
doc.write("<%if cmd_download%><a href='javascript:top.js_cmd_download()'>Download</a> | <%endif%>");
doc.write("<%if cmd_copy%><a href='javascript:top.js_cmd_copy(1)'>Copy</a> | <%endif%>");
doc.write("<%if cmd_delete%><a href='javascript:top.js_cmd_delete()'>Delete</a> | <%endif%>");
doc.write("<%if cmd_move%><a href='javascript:top.js_cmd_move(1)'>Move</a> | <%endif%>");
doc.write("<%if cmd_chmod%><a href='javascript:top.js_cmd_chmod(1)'>Chmod</a> | <%endif%>");
doc.write("<%if cmd_tail%><a href='javascript:top.js_cmd_tail(1)'>Tail</a> | <%endif%>");
doc.write("<%if cmd_perl%><a href='javascript:top.js_cmd_perl(1)'>Perl</a> | <%endif%>");
doc.write("<%if cmd_diff%><a href='javascript:top.js_cmd_diff(1)'>Diff</a> | <%endif%>");
doc.write("<%if cmd_tar%><a href='javascript:top.js_cmd_tar(1)'>Tar</a> <%endif%></font></td>");
<%endif%>
doc.write("<td width=32% align=right><%font%>")
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="<%http_ref%>?fdo=cmd_show&page=blank.html&<%url_opts%>" scrolling="no" noresize frameborder="0" target="mainfrm" marginwidth="5" marginheight="3" >
<frame name="mainfrm" src="<%http_ref%>?fdo=cmd_main_display&def_load=1&<%url_opts%><%if work_path%>&work_path=<%work_path%><%endif%>" frameborder="1" bordercolor='EEEEEE'>
<frame name="bottomfrm" src="<%http_ref%>?fdo=cmd_show&page=blank.html&<%url_opts%>" 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>