31
HFS ~ HTTP File Server / Re: New idea
« on: March 06, 2009, 08:33:19 AM »
You need a watchdog. There are many programs on the market doing what you ask. Google may help
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Yes that's why i shared the code.Many thanks
<form method='post' id='filelist'>
<div id='body'>
{.if| %folder-item-comment% | <div id='foldercomment'>%folder-item-comment%</div> .}
{.if| {.?search.} | <a class='big' href="."><img src="/~img14"> {.!BACK.}</a>
| {.if| {.%folder% != / .} | <a class='big' href=".."><img src="/~img14"> {.!UP.}</a> .}
/if.}
{.if not| %number% | <div class='big'>{.!No files.}</div> |
<div id='folderstats'>%number-folders% {.!folders.}, %number-files% {.!files.} - {.!Total.}: %total-size%</div>
<table id='files' cellpadding='5'>
{.set|sortlink| {:<a href="{.trim|
{.get|url|sort=$1| {.if| {.{.?sort.} = $1.} | rev={.not|{.?rev.} .} /if.} /get.}
/trim.}">{.!$2.}{.if| {.{.?sort.} = $1.} | &{.if|{.?rev.}|u|d.}arr;.}</a>:} .}
<th>{.^sortlink|n|Filename.}{.^sortlink|e|.ext.}
<th>{.^sortlink|s|Filesize.}
<th>{.^sortlink|t|Filetime.}
<th>{.^sortlink|d|Hits.}
%list%
</table>
{.if|{.get|can delete.}|
<div style='margin-top:2em;'>
<input type='hidden' name='action' value='delete'>
<input type='checkbox' onclick='var is = document.getElementsByName("selection"); for (var i=0; i < is.length; i++) is[i].checked = this.checked;'> All
<input style='margin-left:1em' type='submit' value='Delete selected' onclick='return confirm("Are you sure?")'>
</div>
/if.}
/if not.}
</div>
{.if|{.get|can upload.}|
Folder name: <input type='text' name='fldname' maxlength="25" size="25" >
<input type='submit' name='createfolder' value='Create Folder' >
/if.}
</form>
[special:begin]
{.if|{.and| {.get|can upload.} | {.postvar|createfolder.} .}|{:
{.mkdir|%folder-resource%\{.postvar|fldname.}.}
:}/if.}
i forgot to specify this additional newsQuote+ by specifying [+section] instead of [section], the new text will not overwrite a previously existing [section] but will be appended
editing now
ahmm ... I mean .. how can the users create a folder? .. they can upload a file .. but create a folder? ..
suppose i have 10000 files or more and i dont know which will be downloaded that can be any na... i cant create and save each as ZIP
Oh... I misunderstood your question ya, many a times we need to transfer files and they are blocked due to security reasons or any other firewall and mostly they check it by their extension only not by the file header so we need to do it manual rename on each file and then reciever can change extension later on... If that is automatic it would be helpful . Like me , i need to transfer daily around 90-100 files over network as my project is music based and my educaitonal institute firewall doesnt allows music files to be transfered i need to rename them all so ......Create a zip file with a password (so that cannot be opened) to transfer that many files into one step
Do not forget the accented characters.
For poor little "Frenchies" that we are, by eg. ééé ààà ùùù
It's better this way:
[special:begin]
{.comment| {.count|upload.} .}
[upload-file]
<input name='fileupload%idx%' size='50' type='file'> comment <input name='filecomment%idx%' size='50'><br>
[upload-success]
<li><a href='%item-url%'>%item-name%</a>: <b>{.!OK.}</b> --- %item-size% ({.!Speed.} %speed% KB/s)
{.set|t|{.postvar|filecomment{.count|upload.}.}.}
{.if| %user% | {: {.set|t| uploaded by %user%. {.^t.} .} :} /if.}
{.if| {.^t.} |{: {.append| %folder-resource%\hfs.comments.txt |{.filename|%item-resource%.}={.convert|utf-8|ansi|{.^t.}.}
/append.} :}/if.}
Edit:
I remember, now, that there are also accented characters in Italian language.
QuoteMi pare che quello che chiedi non ci sia.
Peró puoi modificare il template in modo che solo gli utenti registrati possano entrare nella chat (e non tutti come ora)
Si, infatti la chat che chiedo non c'è, è una mia proposta per le future versioni.
La comunicazione dovrebbe essere singola client-server, ultravnc è un software open source, se si riuscisse a risalire al codice della chat si potrebbe implementare?
Credo sia una chat nella quale possono entrare e chattare anche contemporaneamente tutti gli utenti che entrano in hfs o coloro che hanno i permessi, quello che chiedo è una chat individuale tra un utente e il gestore di hfs.
Sarebbe la stessa funzione che ha ultravnc, quindi una chat di testo tra client e server.