Login
Register
Menu
Home
Help
Search
rejetto forum
PROBLEMS? QUESTIONS? CLICK HERE!
rejetto forum
»
Software
»
HFS ~ HTTP File Server
»
HTML & templates
»
Ban
Ban
MelkiyProd.
·
8 ·
5064
« previous
next »
Print
Pages:
1
0 Members and 1 Guest are viewing this topic.
MelkiyProd.
Occasional poster
Posts:
70
Languages: English, Русский, Українська.
Ban
on:
August 12, 2013, 10:37:20 PM
I create settings in the template. Need the code (button) to add the ban for ip address. Help me, plz.
«
Last Edit: August 12, 2013, 10:39:41 PM by MelkiyProd.
»
rejetto
Administrator
Tireless poster
Posts:
13523
Re: Ban
Reply #1 on:
August 16, 2013, 09:07:13 PM
it's not easy.
there's no {.command.} for ban, so you have to change the HFS configuration, by using {.set ini.}
the string is in this form
ban-list=120.113.14.1#comment|22.242.21.2#other comment|
here you can see 2 ban rules, for 2 addresses.
If you are not a programmer this will be hard to get
rejetto
Administrator
Tireless poster
Posts:
13523
Re: Ban
Reply #2 on:
August 18, 2013, 03:44:21 PM
to manipulate an existing setting, you'll have to read the value, not just write it.
So, a side {.set ini.} i introduced {.get ini.} in version #285
MelkiyProd.
Occasional poster
Posts:
70
Languages: English, Русский, Українська.
Re: Ban
Reply #3 on:
August 22, 2013, 09:54:49 AM
And how to display the list of banned accounts?
rejetto
Administrator
Tireless poster
Posts:
13523
Re: Ban
Reply #4 on:
August 24, 2013, 12:00:17 PM
display? where? where are you stuck?
MelkiyProd.
Occasional poster
Posts:
70
Languages: English, Русский, Українська.
Re: Ban
Reply #5 on:
August 25, 2013, 08:56:57 AM
I want to create a ban list in the template to see whom I added to the ban list
Is it possible?
P.S. I created the button for ban
«
Last Edit: August 25, 2013, 10:39:27 AM by MelkiyProd.
»
rejetto
Administrator
Tireless poster
Posts:
13523
Re: Ban
Reply #6 on:
August 25, 2013, 01:04:18 PM
yes, it's possible. Since it's not native, you need programming skills.
read "ban-list", split it on the "|" character, then split again on the "#" character. Loop over them, just output the pieces.
MelkiyProd.
Occasional poster
Posts:
70
Languages: English, Русский, Українська.
Re: Ban
Reply #7 on:
August 25, 2013, 07:14:05 PM
Can you write to me an example?
Print
Pages:
1
rejetto forum
»
Software
»
HFS ~ HTTP File Server
»
HTML & templates
»
Ban
Search
Username
Password
Always stay logged in
Forgot your password?