1
HFS ~ HTTP File Server / Re: Feature request: Transfer references to FTP server
« on: March 09, 2008, 10:45:57 PM »
My previous code is wrong, the right way is to replace
[file]
{.$item start.}<td align=right>%item-size%<td align=right>%item-modified%<td align=right>%item-dl-count%
with
[item startf]
<tr><td>
{.if|{.get|is new.}|<span class=flag> NEW </span>.}
{.if not|{.get|can access.}|<img src='/~img_lock'>.}
<a href="ftp://%host%%encoded-folder%%item-name%"><img src="%item-icon%" /> %item-name%</a>
{.if| {.?search.} |{:<div class=item-folder>{.!item folder.} <a href="%item-folder%">%item-folder%</div>:} .}
{.if| %item-comment% | <div class=comment>%item-comment%</div> .}
[file]
{.$item startf.}<td align=right>%item-size%<td align=right>%item-modified%<td align=right>%item-dl-count%
this works fine in pair with Filezilla server, though users must login to ftp server when downloading files.
user:password works, but only for login=user and pass=password. Http login and password are not transfered with this string.
[file]
{.$item start.}<td align=right>%item-size%<td align=right>%item-modified%<td align=right>%item-dl-count%
with
[item startf]
<tr><td>
{.if|{.get|is new.}|<span class=flag> NEW </span>.}
{.if not|{.get|can access.}|<img src='/~img_lock'>.}
<a href="ftp://%host%%encoded-folder%%item-name%"><img src="%item-icon%" /> %item-name%</a>
{.if| {.?search.} |{:<div class=item-folder>{.!item folder.} <a href="%item-folder%">%item-folder%</div>:} .}
{.if| %item-comment% | <div class=comment>%item-comment%</div> .}
[file]
{.$item startf.}<td align=right>%item-size%<td align=right>%item-modified%<td align=right>%item-dl-count%
this works fine in pair with Filezilla server, though users must login to ftp server when downloading files.
user:password works, but only for login=user and pass=password. Http login and password are not transfered with this string.