rejetto forum
February 11, 2012, 01:32:11 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: How to ban a user account?  (Read 1463 times)
0 Members and 1 Guest are viewing this topic.
r][m
Insane poster
*****
Offline Offline

United States United States

Posts: 339


View Profile
« Reply #15 on: September 02, 2010, 12:24:30 AM »

OK
Thanks for the code, I'm using something similar.

But for me, banned is banned, no matter if the method is
by IP address or by user name the result should be the same.
 When the user see's the banned page they understand what their
situation is. When they see the "Deny" page they just think the
server is screwed up, and rightly so. The "Deny" page is used here
for files in folders marked for "No download" with a link back to a
server INFO page with explanation.
Logged
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1023


....... chut ! shh!


View Profile WWW
« Reply #16 on: September 02, 2010, 12:31:42 AM »

F.A.Q updated !  Wink

http://www.rejetto.com/forum/index.php/topic,8383.0.html
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11759


View Profile
« Reply #17 on: September 02, 2010, 04:20:00 PM »

@r][m
this is a "scripting" solution. It can't always match the quality of an "embedded" solution.
This said, we may get this working as you want. You can reprogram [deny] (as diff tpl) to load [ban] whenever %reason% has "ban" in it.

[deny]
{.if|{.pos|ban|%reason%.}|{:{.$ban.}:}|{:{.$deny|back=1.}:}/if.}
Logged
r][m
Insane poster
*****
Offline Offline

United States United States

Posts: 339


View Profile
« Reply #18 on: September 04, 2010, 11:27:11 PM »

@ Rejetto Thanks
This works
Code:
[deny]
{.if|{.pos|ban|%reason%.}|{:{.$ban.}:}|{:{.$deny|back=1.}:}/if.}
I changed it to ban2 and added that to the main tpl error section. The user now see's
a ip ban, user ban or deny page when those conditions exist.

It would be good to have user ban as an embedded solution for the stunnel users.
« Last Edit: September 04, 2010, 11:31:00 PM by r][m » Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page January 31, 2012, 02:19:50 AM
anything