Old 12-27-2004, 11:01 AM   #1
Delight
Junior Member
ioFTPD Foundation User
 
Join Date: Sep 2004
Posts: 20
Default IOjTQ REQ/QUESTION

Hi all.
Is it possible to change script to move user who fail quota back to trial, for new trial period.
I have change following lines in script, but i have not done any test, wait for end of this year/month.
--------------------------------------------------------------------
if { $A_tq == "quota"} {
if { $iojTQ(quota_action) == 1} {
iojTQ:SendFTP nick uhost hand $iojTQ(admin_chan) "SITE CHGRP $A_user Trial"
--------------------------------------------------------------------

U think it will work or have i missed some important thing?
Thanx in advance
Delight
Delight is offline   Reply With Quote
Old 12-27-2004, 12:55 PM   #2
jeza
Senior Member
ioFTPD Scripter
 
jeza's Avatar
 
Join Date: May 2003
Posts: 528
Default

u can do it like this

Code:
set iojTQ(quota_action)			3								;#if fail quota 0=nothing, 1=change to flag iojTQ(quota_move_flag), 2=delete, 3=chgrp to iojTQ(trial_group)

---
  if { $A_tq == "quota"} {
    if { $iojTQ(quota_action) == 1} {
      iojTQ:SendFTP nick uhost hand $iojTQ(admin_chan) "SITE CHANGE $A_user FLAGS +$iojTQ(quota_move_flag)"
    }
    if { $iojTQ(quota_action) == 2} {
      iojTQ:SendFTP nick uhost hand $iojTQ(admin_chan) "SITE DELUSER $A_user"
    }
    if { $iojTQ(quota_action) == 3} {
      iojTQ:SendFTP nick uhost hand $iojTQ(admin_chan) "SITE CHGRP $A_user $iojTQ(trial_group)"
    }
  }
jeza is offline   Reply With Quote
Old 12-27-2004, 02:26 PM   #3
Delight
Junior Member
ioFTPD Foundation User
 
Join Date: Sep 2004
Posts: 20
Default

Thanx for fast answer, good script and verry good support.
I will try that, and hopefully it will work next change of month.
/Delight
Delight is offline   Reply With Quote
Old 12-28-2004, 08:17 AM   #4
alturismo
Senior Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Nov 2001
Posts: 265
Default

might will get probs due scripts cant find date added ....
alturismo is offline   Reply With Quote
Old 12-28-2004, 01:11 PM   #5
Delight
Junior Member
ioFTPD Foundation User
 
Join Date: Sep 2004
Posts: 20
Default

Yes, U may be right about that.
Also only add to group trial will not move from old group, only add Trial group to user.
To change i must use.
SITE CHGRP User Oldgroup Trialgroup
maybee
iojTQ:SendFTP nick uhost hand $iojTQ(admin_chan) "SITE CHGRP $A_user $group $iojTQ(trial_group)"
will work.

But how to add new trial date?
/D
Delight is offline   Reply With Quote
Old 12-28-2004, 04:51 PM   #6
jeza
Senior Member
ioFTPD Scripter
 
jeza's Avatar
 
Join Date: May 2003
Posts: 528
Default

yup if moving to trial_group user will be deleted on first check because date added not found.

"SITE CHGRP $A_user $group $iojTQ(trial_group)" -> nope, because $group=no such var in iojTQ:SendFTP

i am not at home atm. i will be back on 03.01.2005.
drop me a msg on 04.01. on mirc and i will do some changes in your version so u have support for move user back to trial and new date added line in your syslog
jeza is offline   Reply With Quote
Reply

Tags
change, delight, quota, script, trial

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:11 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)