Show Posts

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.


Messages - bmartino1

Pages: [1] 2 3 ... 50
1
Hey Danny, thought it worth a mention
* Required downloading a phone exe and set path

But php support not officially supporting, but capable:
http://rejetto.com/forum/index.php?action=profile;u=9522;area=showposts;sa=topics;start=30

2
Small enhancements:

- Font smoothing
- One line per file
- New background color

Still missing:
- "Parent Directory" like apache has.

(Feel free to fix/enhance it, if you find something wrong)

Cheers,
Leo.-

I thought hfs bind to folder was the appacbr equilevent to parent folder.

So path c:/webroot/hfs.exe
Has a folder (parent directory of site)
C:/webroot/hfs

Right click on the house k. The hfs and bind folders, chose the path. ???

Does this not accomplish that?

3
I still need to clean this up:

http://rejetto.com/forum/index.php?topic=7273.msg1062737#msg1062737

But this is live template 3.0.0
(With live 3.0.1 code)

This template was created by another user and I rescently pull code and put it back together.

This will accomplish your request.
*Due to live 3.0.1 file ae changea and code change to generate, I don't know nor have access to get you the create new folder option.

It is on my to-do list for cleaning up files and simplify the template code.

https://drive.google.com/file/d/1gMts8CH8mroJ1ialWDc9ljVO_eU0qQsA/view?usp=sharing

4
@ leo :) i did it :)

Sorry for being a little off the forum (I'm barely having free time lately). About what you want, I think the most easy solution is to "clone" (copy and paste) the code of the "Select" or "Sort" buttons (from the Live 3 template), and add the buttons you want, copying only the functions found on the default template. I'm not good editing templates, so, it's not an easy task for me (it could take me a lot of time, which I currently don't have). May be you or someone else here could do this.

5
Love the simplicty, and ease / look
( if eel like i can finaly use standard html coding to hfs again :)

On another not,

I think the CSS and HTML code (JavaScript could active the login box, here is what w3 schools has about it.0

https://www.w3schools.com/howto/howto_css_login_form.asp

looking into this

I only know of a php soulion to the web form, w3 scholls claims thaetre is a jhavascript (ajax/arco/etc)
way to acomplis a login form

thanks fr your help/support and work danny

6
The encoding is an issue inside hfs, not the webpage.

Adding a web page character set will still alow a browser to see the character set code:

https://www.w3schools.com/html/html_charset.asp

Code: [Select]
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">

7
I would add a vitural folder that is password protected
Then add a real folder

Then try your code above.

Will probably be a week when I'm at a PC to try and test things again.

8
An excellent question, one o don't have an answer to nor way to accomplish ATM.

Rejeto may be of better help here

9
OK, with some wor and fidleing, (mostly seaching the form for the files

I have put together a waorking version of live 3.0 and teh template here to bring live the rename etc funtions

you can donwload the files (everything) from my google drive:

https://drive.google.com/file/d/1gMts8CH8mroJ1ialWDc9ljVO_eU0qQsA/view?usp=sharing

please extract the zip files to root of c:

path
c:/webroot/hfs.exe

*how to

using the live 3.0 template (fond archive via post that had all files
(edited all tempaltes to add / change header info)

in advance mode change file to live 3.00

exctarct the new contens file (all in zip folders under tempalte folder under my full working config)
and dragg teh tpl live 3.-full to the home icon in hfs (the install template optiong will appear

*thats it... a folder with login credentail will activate the hfs program

sorry took so long, fianly got back to a workign pc to do this :P

10
HTML & templates / Re: build 299, still trying to log in, from a phone
« on: April 28, 2018, 02:25:48 PM »
if you require a true login page, you may need ftp acess, in with i would refer you to fhfs:
http://rejetto.com/forum/index.php?topic=10920.msg1060565#msg1060565

then you login page would be http://xxx.xxx.xxx.xxxip/~login

other wise tablets would get a simalar login message:
see picture

11
HTML & templates / Re: build 299, still trying to log in, from a phone
« on: April 28, 2018, 02:19:14 PM »
android devices on smart phone will pull up authentication windows (via default html code) from the default hfs html code...

Except on a protected resource, when visiting any page, you auto user aynomous

so first on a folder for your phone users,
you will have to set an account for login access on hfs

you may need to enable an option that when loging in throws the users name and passwords into the url for browsing

see pictures:

12
TSG, would be faster / better or dj ...

sorry was looking at  the orginal live v3,  different realize this is an old post for a file no longer aviabale... for a modded template version of live...

we will have to add stuff to the orginal template and recode it

I'm just pulling the code form the default template, i have not edited nor added code, and will take me some time to code it up. I have very little time with current occupations :( ....

IN the end,
there will need to be an account setup with access and delete permision

and code copied form the default template to the live template to run the script for the desired actions....

live has diffent names and different script run then the default so we will have to read code and change the arcordingly....
those button will only work on 1 file not multple selected (so the4re will be bad code adn posible bug hangup even if teh template is codced corectly for one file use....

How to start:

first hfs default code and special string added to the special stings section to the live template
Code: [Select]
[+special:strings]
option.paged=1
COMMENT this option causes your file list to be paged by default

option.newfolder=1
option.move=1
option.comment=1
option.rename=1
COMMENT with these you can disable some features of the template. Please note this is not about user permissions, this is global!

next the button to click form the hfs default:
box actions

Code: [Select]
<fieldset id='actions'>
<legend><img src="/~img18"> {.!Actions.}</legend>
<center>
{.if|{.can mkdir.}|
<button id='newfolderBtn' onclick='ezprompt(this.innerHTML, {type:"text"}, function(s){
ajax("mkdir", {name:s});
    });'>{.!New folder.}</button>
.}
{.if|{.can comment.}|
<button id='commentBtn' onclick='setComment.call(this)'>{.!Comment.}</button>
.}
{.if|{.get|can delete.}|
<button id='deleteBtn' onclick='if (confirm("{.!confirm.}")) submit({action:"delete"}, "{.get|url.}")'>{.!Delete.}</button>

{.if|{.and|{.!option.move.}|{.can move.}.}| <button id='moveBtn' onclick='moveClicked()'>{.!Move.}</button> .}
.}
{.if|{.can rename.}|
<button id='renameBtn' onclick='
            var a = selectedItems();
                if (a.size() != 1)
return alert("You must select a single item to rename");
ezprompt(this.innerHTML, {type:"text"}, function(s){
ajax("rename", {from:getItemName(a[0]), to:s});
    });'>{.!Rename.}</button>
.}
{.if|{.get|can archive.}|
<button id='archiveBtn' onclick='if (confirm("{.!confirm.}")) submit({}, "{.get|url|mode=archive|recursive.}")'>{.!Archive.}</button>
.}
<a href="{.get|url|tpl=list|sort=|{.if not|{.length|{.?search.}.}|{:folders-filter=\|recursive:}.}.}">{.!Get list.}</a>
</center>
</fieldset>

and script codes that run form action:

Code: [Select]
[ajax.mkdir|no log]
{.check session.}
{.set|x|{.postvar|name.}.}
{.break|if={.pos|\|var=x.}{.pos|/|var=x.}|result=forbidden.}
{.break|if={.not|{.can mkdir.}.}|result=not authorized.}
{.set|x|{.force ansi|%folder%{.^x.}.}.}
{.break|if={.exists|{.^x.}.}|result=exists.}
{.break|if={.not|{.length|{.mkdir|{.^x.}.}.}.}|result=failed.}
{.add to log|User %user% created folder "{.^x.}".}
{.pipe|ok.}

[ajax.rename|no log]
{.check session.}
{.break|if={.not|{.can rename.}.}|result=forbidden.}
{.break|if={.is file protected|{.postvar|from.}.}|result=forbidden.}
{.break|if={.is file protected|{.postvar|to.}.}|result=forbidden.}
{.set|x|{.force ansi|%folder%{.postvar|from.}.}.}
{.set|y|{.force ansi|%folder%{.postvar|to.}.}.}
{.break|if={.not|{.exists|{.^x.}.}.}|result=not found.}
{.break|if={.exists|{.^y.}.}|result=exists.}
{.break|if={.not|{.length|{.rename|{.^x.}|{.^y.}.}.}.}|result=failed.}
{.add to log|User %user% renamed "{.^x.}" to "{.^y.}".}
{.pipe|ok.}

[ajax.move|no log]
{.check session.}
{.set|dst|{.force ansi|{.postvar|dst.}.}.}
{.break|if={.not|{.and|{.can move.}|{.get|can delete.}|{.get|can upload|path={.^dst.}.}/and.}.} |result={.!forbidden.}.}
{.set|log|{.!Moving items to.} {.^dst.}.}
{.for each|fn|{.replace|:|{.no pipe||.}|{.force ansi|{.postvar|files.}.}.}|{:
{.break|if={.is file protected|var=fn.}|result=forbidden.}
    {.set|x|{.force ansi|%folder%.}{.^fn.}.}
    {.set|y|{.^dst.}/{.^fn.}.}
    {.if not |{.exists|{.^x.}.}|{.^x.}: {.!not found.}|{:
        {.if|{.exists|{.^y.}.}|{.^y.}: {.!already exists.}|{:
            {.if|{.length|{.move|{.^x.}|{.^y.}.}.} |{:
                {.set|log|{.chr|13.}{.^fn.}|mode=append.}
                {.move|{.^x.}.md5|{.^y.}.md5.}
                {.move|{.^x.}.comment|{.^y.}.comment.}
            :} | {:
                {.set|log|{.chr|13.}{.^fn.} (failed)|mode=append.}
                {.maybe utf8|{.^fn.}.}: {.!not moved.}
            :}/if.}
        :}/if.}
    :}.}
    ;
:}.}
{.add to log|{.^log.}.}

[ajax.comment|no log]
{.check session.}
{.break|if={.not|{.can comment.}.} |result=forbidden.}
{.for each|fn|{.replace|:|{.no pipe||.}|{.postvar|files.}.}|{:
{.break|if={.is file protected|var=fn.}|result=forbidden.}
    {.set item|{.force ansi|%folder%{.^fn.}.}|comment={.encode html|{.force ansi|{.postvar|text.}.}.}.}
:}.}
{.pipe|ok.}

[ajax.changepwd|no log]
{.check session.}
{.break|if={.not|{.can change pwd.}.} |result=forbidden.}
{.if|{.length|{.set account||password={.force ansi|{.postvar|new.}.}.}/length.}|ok|failed.}

[special:alias]
check session=if|{.{.cookie|HFS_SID_.} != {.postvar|token.}.}|{:{.cookie|HFS_SID_|value=|expires=-1.} {.break|result=bad session}:}
can mkdir=and|{.get|can upload.}|{.!option.newfolder.}
can comment=and|{.get|can upload.}|{.!option.comment.}
can rename=and|{.get|can delete.}|{.!option.rename.}
can change pwd=member of|can change password
can move=or|1
escape attr=replace|"|&quot;|$1
commentNL=if|{.pos|<br|$1.}|$1|{.replace|{.chr|10.}|<br />|$1.}
add bytes=switch|{.cut|-1||$1.}|,|0,1,2,3,4,5,6,7,8,9|$1 bytes|K,M,G,T|$1bytes

!!! Don't just add code form the default to the live tempalte ... You will have to recode certtain areas, this is teh defautl tempalte code and button when cliced action

you will have to find the live template code where the lock icon and delete icon and add a folder and etc function you want form the default.


as you can see hfs looks at
Code: [Select]
info in a  " [ " and  " ] " if live already has a name then in the " [ " and  " ] " then we can add code form the default and thoruw them in there respeted areas...

live breaks parts of it webpage and uses javascrip and ohter to form its web page

there is a blank section of " [ " and  " ] "
that just load the basic html side

then there brackets in live like this code:

Code: [Select]
[folder]
<div class="item folder {.if not|{.or|{.get|can archive.}|{.get|can delete.}.}| off .}"
item-access="{.if|{.get|can access.}| You can access this item! | This item is protected. .}"
item-added="%item-added%"
item-dl-count="%item-dl-count%"
item-comment="{.replace|>| &gt; |<| &lt; |"|&#38;#38;#34;|%item-comment%.}">
<a href="%item-url%" title="Click to Enter">
<img src="/template/{.!theme.}/images/icons/folder.gif" alt=""/>
{.if|{.get|is new.}|<img class="new" src="/template/{.!theme.}/images/new.png" alt=""/>.}
</a>
<div><a href="%item-url%" title="Click to Enter">%item-name%</a><span>%item-added%</span></div>
</div>

this code efect folder and only folders
we will be adding data to this area and files and much more...

(ALOT OF TIRAL AND ERROR!)

witch is why it is not a fast nor easy insert code here:....

your better off grabbing a better - diofferent template: https://rawr.thatstevensguy.com/

13
I will when I can, sry work has me travels the USA, construction. I'll gladly put screen shots and share

14
HFS ~ HTTP File Server / Re: Slutions possibles avec BOx Fibre SFR
« on: April 18, 2018, 08:46:51 PM »
I see, then you will need a viyual box running a VM off something that has wine x86 support. Wotjch will run hfs

15
Hi !
I download live 3.0.1 template, and this template have not this Delete, Rename, New Folder, and Change User Pass function.
How to add or enable "Delete, Rename, New Folder, and Change User Pass" with Live 3.0.1 template?

Thanks!


You have to enable folder file permission.in hfs

Right click folder give account access or all aynomois

Pages: [1] 2 3 ... 50