rejetto forum

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 - dj

Pages: 1 2 3 4 5 ... 15
31
Programmers corner / Re: delphi 10
« on: May 15, 2020, 06:23:20 PM »
Anyway, i wish someone else to be checking the security of this new stuff.

http://192.168.137.1/test/?mode=auth&u=admin&s2=d674e9edc3d3330c93151dad2992bc0e082a18fc6d6d6f7f1155548558f5b1b6 works (even regardless of the chosen template)!

But I did'nt find a "copy url with password" menu option.

32
Programmers corner / Re: delphi 10
« on: May 13, 2020, 12:09:20 AM »
I quickly tested the new login system.

It works with localhost, but not with http://192.168.137.1/
! TypeError: crypto.subtle is undefined
Because It is available only in https

I also tested Ajax,
but can't get it work

33
Programmers corner / Re: delphi 10
« on: May 09, 2020, 08:40:47 AM »
but GUI (built-in) texts got mad
save your tpl as "UTF8 with BOM" helps (working example of my tpl)

34
HTML & templates / Re: Responsive small screen template
« on: May 09, 2020, 08:24:05 AM »
This will probably go to next version (will come after HFS2.4rc5 beta)

3 files removed: use mobil-light_V5.5.1.zip

Review
bundled is nothing new. Logout works with hfs24rc5(pre05)

35
a little mistake in 0.12c:
Code: [Select]
<!-- Jquery is included in this HFS link -->
<script src="/js/jquery1.11.js"></script>

I only need something can do live show/hide animations to an element.
you can't animate display, but you can animate height
for fadeIn this can help

36
welcome

+ readable script (better readable than mine ;)), starry_night, additional fileicons
-  I would try to replace jquery with native (it's not so much), to make it faster

37
HTML & templates / Re: Responsive small screen template - addon
« on: April 29, 2020, 11:43:00 AM »
form based login with browser login popup bypass

you need additional add autologin_b4 (or Alternative login form v2.0 and change ~loginb to ~box%20login)


Review
bundled is nothing new, but (almost) all in one

38
auto login beta

Thanks Leo for 'Alternative login form for modern browsers' v2.0

39
HTML & templates / Re: Talking about a form-based login...
« on: April 25, 2020, 03:50:59 AM »
rejetto's login-form seems also to work in newer templates (hfs2.4rc, mobil-light,...)

Code: [Select]
[unauthorized]
<h1>{.!Unauthorized.} {.!&#47; Please login&hellip;.}</h1>
{.!Either your user name and password do not match, or you are not permitted to access this resource..}<br>
{.!Please login to access to your account, and check if you have the correct permissions to continue..}<br>

<br>
<fieldset id='login'>
  <legend><img src="/~img27"> {.!Login.}</legend>
            <form method='post' onsubmit='return login()' action="/">  <!-- return true  -->
                <table>
                <tr><td align='right'>{.!Username.}<td><input name='__USER' size='15' /><p>
                <tr class='hideThis'><td align='right'>{.!Password.}<td><input name='__PASSWORD' size='15' type='password' />
                <tr class='hideThis'><td><td><input type='submit' value='{.!Login.}'>
                </table>
            </form>
</fieldset>
<br>


<script>
function login() {
var formElement = document.querySelector("form");
var request = new XMLHttpRequest();
request.open("POST", "/");
request.onload=function(){ window.location.replace('/')}
request.send(new FormData(formElement));
    return false;
}

</script>

40
HTML & templates / Re: Talking about a form-based login...
« on: April 19, 2020, 05:30:20 PM »
To add remember username to your login is simply:
Add name='username' to the first input field
Also replace center with form , last input type with submit and add ;return false

can confirm that it logs out more often  :(

41
Beta / Re: version 2.4
« on: April 19, 2020, 04:57:12 PM »
I love the script. :-)
Question: How can I log out? I was trying to log in as another user but I can't find an option to log out of the current user.
Thank you.

Logout is possible with IE and Edge, but
you need to add a addon (diff tpl)

42
HTML & templates / Re: [Help] Making old template run entirely on Ajax
« on: April 19, 2020, 04:39:47 AM »
Remember:

form-based login (similiar to this template)
'Remember password' checkbox option is possible, but you can also use the browsers Save Password function
logout (var ref=document.querySelector('button[onclick*=user]') for V2.4)


43
HTML & templates / Re: [Help] Making old template run entirely on Ajax
« on: April 16, 2020, 05:56:10 PM »
Don't forget, there's already a template doing it.
It's called mobil-light
It never reloads the page.

There's also a older version without ES6 (based on your suggestion).

The "legacy" template is not mobil-friendly. why invest work?
besides, jquery is not my thing.

P.S.:
http://localhost/~list  not found
http://localhost/~files.lst used in my template



44
HTML & templates / Re: Responsive small screen template - addon
« on: April 15, 2020, 01:10:04 PM »
number multiple files and optional add random digits for security

45
HFS ~ HTTP File Server / Re: Help starting and securing HFS
« on: April 14, 2020, 06:46:47 AM »
2. How do you control/disable "get list" function

Properties for folder
Flags: disable Browsable

See also http://rejetto.com/forum/index.php?topic=13262.msg1065337#msg1065337

Update: prevent edit the url
Code: [Select]
[+download]
{.if not|{.header|Referer.}|{:{.disconnect.}:}.}

Pages: 1 2 3 4 5 ... 15