This commit is contained in:
tuend-work
2025-11-13 07:41:56 +07:00
parent 7f357f3a30
commit 4478491d73
1729 changed files with 193578 additions and 20 deletions

View File

@@ -0,0 +1,15 @@
|?TREE=&raquo; <a class=tree href="/CMD_FILE_MANAGER">FileManager</a> &raquo; <a class=tree href="/CMD_FILE_MANAGER`path`">`path`</a>|
|?HELP_SECTION=`USER_HELPER`/filemanager.html#copy|
|HTM_USER_TOP|
<table class=list style='width: 50%' cellpadding=3 cellspacing=1>
<form name=info action='/CMD_FILE_MANAGER' method='POST'>
<input type=hidden name=action value="copy">
<input type=hidden name=path value="|path|">
<input type=hidden name=old value="|FILENAME|">
<tr ><td class=listtitle colspan=2>Copy the file |FILENAME| to:</td ></tr>
<tr><td class=list align=center><input type=text name=filename value="|FILENAME|"></td><td class=list><input type=checkbox name=overwrite value="yes">Overwrite if file exists</td></tr>
<tr><td class=listtitle colspan=2 align=right><input type=submit value="Copy"></td ></tr >
</form></table >
|HTM_USER_BOTTOM|

View File

@@ -0,0 +1,42 @@
|?TREE=&raquo; <a class=tree href="/CMD_FILE_MANAGER">FileManager</a> &raquo; <a class=tree href="/CMD_FILE_MANAGER`path`">`path`</a>|
|?HELP_SECTION=`USER_HELPER`/filemanager.html#edit|
|HTM_USER_TOP|
<script language="Javascript">
<!--
var preview=0;
var save=1;
function showPreview(text)
{
if (preview && !preview.closed) preview.document.close();
preview = window.open("","preview","width=800,height=600,scrollbars=yes,resizable=yes");
preview.focus();
preview.document.write(text.value);
}
function askSaveIt()
{
if (save == 1)
if (confirm("Do you want to save your changes to " + document.info.filename.value + "?"))
document.info.submit();
}
//onUnload="askSaveIt()" will be called.
// -->
</script>
<table class=list cellpadding=3 cellspacing=1>
<form name=info action='/CMD_FILE_MANAGER' method='POST'>
<input type=hidden name=action value="edit">
<input type=hidden name=path value="|path|">
<tr ><td class=listtitle>Edit a file</td ></tr>
<tr><td class=list align=center><textarea class="code_edit" name=text rows=24 cols=95 wrap=off>
|TEXT|</textarea></td></tr>
<tr><td class=list align=center><input type=button value="Preview Html" onClick="javascript:showPreview(document.info.text);"></td></tr>
<tr><td class=listtitle align=right><input type=submit onClick="save=0;" value="Save As"><input type=text name=filename value="|FILENAME|"> <input type=button value="Cancel" onClick="if (confirm('Do you want to discard your changes?')) {save=0; location.href='/CMD_FILE_MANAGER|path|';}"></td ></tr >
</form></table >
|HTM_USER_BOTTOM|

View File

@@ -0,0 +1,21 @@
|?TREE=&raquo; <a class=tree href="/CMD_FILE_MANAGER">FileManager</a> &raquo; <a class=tree href="/CMD_FILE_MANAGER`path`?action=extract&page=1">`path`</a>|
|?HELP_SECTION=`USER_HELPER`/filemanager.html#extract|
|HTM_USER_TOP|
<center>
<table class=list style='width: 65%' cellpadding=3 cellspacing=1>
<tr><td class=listtitle>Extract |path| to</td ></tr>
<form name=info action='/CMD_FILE_MANAGER' method='POST'>
<input type=hidden name=action value="extract">
<input type=hidden name=page value="2">
<input type=hidden name=path value="|path|">
<tr><td class=list>Directory: <input type=text name=directory value="|directory|"></td></tr>
<tr><td class=listtitle align=right><input type=submit value="Extract"></td ></tr>
</form>
</table><br>
Contents of |path|:<br>
<textarea cols=100 rows=20 wrap=off readonly style='FONT-FAMILY: courier new;'>|OUTPUT|</textarea>
</center>
|HTM_USER_BOTTOM|

View File

@@ -0,0 +1,36 @@
|?TREE=&raquo; <a class=tree href="/CMD_FILE_MANAGER">FileManager</a> &raquo; <a class=tree href="/CMD_FILE_MANAGER`path`">`path`</a>|
|?HELP_SECTION=`USER_HELPER`/filemanager.html|
<!-- the default skin requires this to be HTM_USER_TOP -->
|HTM_HEADER|
|DIRECTORYLIST|
To copy/move files with the clipboard, add the source files to the clipboard with "Add to Clipboard", go to the directory where you wish to copy/move the files, then click "Copy Clipboard Files here" or "Move Clipboard Files here"
<br>
<table class=list cellpadding=3 cellspacing=1>
<tr><td class=listtitle colspan=4>Filesystem Tools</td></tr>
<tr>
<form name=folderform action="/CMD_FILE_MANAGER" method="POST"><input type=hidden name=action value="folder"><input type=hidden name="path" value="|path|">
<td class=list>Create New Folder</td><td class=list><input type=text name=name size=15> <input type=submit value="Create"></td>
</form>
<form name=fileform action="/CMD_FILE_MANAGER" method="POST"><input type=hidden name=action value="file"><input type=hidden name="path" value="|path|">
<td class=list>Create New File</td><td class=list><input type=text name=name size=15> <input type=submit name=file value="Create"><input type=checkbox name=template value="yes"><font style="FONT-SIZE: 6pt;">Html template</font></td>
</form>
</tr>
<tr><td class=list colspan=4 align=center><input type=button value="Upload files to current directory" onClick="location.href='/HTM_FILE_UPLOAD?path=|path|'"> ( |path| )</td></tr>
<tr>
<form action="/CMD_FILE_MANAGER" method="POST">
<input type=hidden name=action value="compress">
<input type=hidden name=path value="|path|">
<td class=list colspan=4 align=center>Compress clipboard files to |path|/<input type=text size=8 name=file>
|*if HAVE_ZIP="yes"|
.<select name=type><option selected>tar.gz</option><option>zip</option></select>
|*else|
.tar.gz
|*endif|
<input type=submit value="Create"></td>
</form>
</tr>
</table>
<!-- the default skin requires this to be HTM_USER_BOTTOM -->
|HTM_FOOTER|

View File

@@ -0,0 +1,24 @@
|?TREE=&raquo; <a class=tree href="/CMD_FILE_MANAGER">FileManager</a> &raquo; <a class=tree href="/CMD_FILE_MANAGER`path`">`path`</a>|
|?HELP_SECTION=`USER_HELPER`/misc.html#password|
|HTM_USER_TOP|
<table class=list style='width: 65%' cellpadding=3 cellspacing=1>
<form name=info action='/CMD_FILE_MANAGER' method='POST'>
<input type=hidden name=action value="protect">
<input type=hidden name=path value="|path|">
<tr><td class=listtitle colspan=2>Password Protection on |path|</td ></tr>
<tr><td class=list>Protected Directory Prompt:</td><td class=list><input type=text name=name value="|NAME|"> eg: Member's Area</td></tr>
<tr><td class=list>Set/Update User:</td><td class=list><input type=text name=user> (Not required)</td></tr>
<tr><td class=list>and Password:</td><td class=list><input type=password name=passwd></td></tr>
<tr><td class=list>Re-Enter Password:</td><td class=list><input type=password name=passwd2></td></tr>
<tr><td class=listtitle colspan=2 align=right>Protection Enabled: <input type=checkbox name=enabled value="yes" |ENABLED|> <input type=submit value="Save"></td ></tr >
</table>
</form>
|USERS|
<br>
Go back to the list of <a href="/CMD_PROTECTED_DIRECTORIES?domain=|domain|">Password Protect Directories</a><br>
|HTM_USER_BOTTOM|

View File

@@ -0,0 +1,10 @@
|?TREE=&raquo; <a class=tree href="/CMD_SHOW_DOMAIN?domain=`domain`">`domain`</a> &raquo; <a class=tree href="/CMD_PROTECTED_DIRECTORIES?domain=`domain`">Protected Directories</a>|
|?HELP_SECTION=`USER_HELPER`/misc.html#password|
|HTM_USER_TOP|
<a href="/CMD_FILE_MANAGER/domains/|domain|/public_html">Find a Directory to Password Protect</a><br>
<br>
|DIRECTORIES|
|HTM_USER_BOTTOM|

View File

@@ -0,0 +1,15 @@
|?TREE=&raquo; <a class=tree href="/CMD_FILE_MANAGER">FileManager</a> &raquo; <a class=tree href="/CMD_FILE_MANAGER`path`">`path`</a>|
|?HELP_SECTION=`USER_HELPER`/filemanager.html#rename|
|HTM_USER_TOP|
<table class=list style='width: 50%' cellpadding=3 cellspacing=1>
<form name=info action='/CMD_FILE_MANAGER' method='POST'>
<input type=hidden name=action value="rename">
<input type=hidden name=path value="|path|">
<input type=hidden name=old value="|FILENAME|">
<tr ><td class=listtitle colspan=2>Rename the file |FILENAME| to:</td ></tr>
<tr><td class=list align=center><input type=text name=filename value="|FILENAME|"></td><td class=list><input type=checkbox name=overwrite value="yes">Overwrite if file exists</td></tr>
<tr><td class=listtitle colspan=2 align=right><input type=submit value="Rename"></td ></tr >
</form></table >
|HTM_USER_BOTTOM|

View File

@@ -0,0 +1,61 @@
|?TREE=&raquo; <a class=tree href="/CMD_FILE_MANAGER">FileManager</a> &raquo; <a class=tree href="/CMD_FILE_MANAGER`path`">`path`</a>|
|?HELP_SECTION=`USER_HELPER`/filemanager.html#upload|
|HTM_USER_TOP|
<script language="Javascript">
<!--
function is_a_number(num)
{
var checker = /^([0-9])+$/;
if (checker.test(num)) return 1;
else return 0;
}
function uploadMultipleFiles(num)
{
if (num.length == 0) return;
if (!is_a_number(num))
alert('That is not a number');
else
{
file_window = window.open("","files","width=500, height=400, resizable=yes, scrollbars=yes");
file_window.focus();
file_window.document.writeln("<html><head><title>Upload Multiple Files</title><link rel=Stylesheet href=\"/CSS_PU_STYLE\"></head><body>");
file_window.document.writeln("<form action=\"CMD_FILE_MANAGER\" ENCTYPE=\"multipart/form-data\" method=\"POST\">");
file_window.document.writeln("<table class=list cellpadding=3 cellspacing=1>");
file_window.document.writeln("<tr><td class=listtitle colspan=2>Select files to upload</td></tr>");
file_window.document.writeln("<input type=hidden name=\"MAX_FILE_SIZE\" value=\"|MAX_FILE_SIZE|\">");
file_window.document.writeln("<input type=hidden name=\"action\" value=\"upload\">");
file_window.document.writeln("<input type=hidden name=\"path\" value=\"|path|\">");
for (var i=0; i<num; i++)
{
file_window.document.writeln("\t<tr><td class=list align=right>" + (i+1) + ":</td><td class=list align=center><input type=file name=\"file" + i + "\" size=35></td></tr>");
}
file_window.document.writeln("<tr><td class=listtitle colspan=2 align=right><input type=submit value=\"Upload Files\"></td></tr>");
file_window.document.writeln("</table></form></body></html>");
}
}
// -->
</script>
<table class=list cellpadding=3 cellspacing=1>
<tr><td class=listtitle colspan=4>Upload Files to <b>|path|</b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Max Filesize : |MAX_FILE_SIZE_STR|</td></tr>
<form name=uploadform action="/CMD_FILE_MANAGER" enctype="multipart/form-data" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="|MAX_FILE_SIZE|">
<input type=hidden name="action" value="upload">
<input type=hidden name="path" value="|path|">
<tr><td class=list colspan=2>1: <input type=file name="file1" size=40></td><td class=list colspan=2>5: <input type=file name="file5" size=40></td></tr>
<tr><td class=list colspan=2>2: <input type=file name="file2" size=40></td><td class=list colspan=2>6: <input type=file name="file6" size=40></td></tr>
<tr><td class=list colspan=2>3: <input type=file name="file3" size=40></td><td class=list colspan=2>7: <input type=file name="file7" size=40></td></tr>
<tr><td class=list colspan=2>4: <input type=file name="file4" size=40></td><td class=list colspan=2>8: <input type=file name="file8" size=40></td></tr>
<tr><td class=listtitle colspan=4 align=center><input type=submit value="Upload Files"> <input type=button value="Upload Even More Files" onClick="uploadMultipleFiles(prompt('How many files do you want to upload?', '10'));"></td></tr>
</form>
</table>
|HTM_USER_BOTTOM|