Changelog:
 2.1.1 : Fix: If the first user if found happened to be excluded from quota, the
              vacation settings crapped out the NOTRIALLIMIT value, thus giving
              expression errors when running 'tur-trial.sh dummy quota test'.

              Thanks to silicon^ for having his first user excluded =)

 Upg from 2.1  : Replace tur-trial.sh
 
-------------------------------------------------------------------------------------
 2.1   : Add: Added ability to work with Tur-Vacation 1.4+.
              This will deduct the amount the user needs to upload to pass quota
              depending on how many days he/she was gone.

              You still need to exclude the VACATION group. This only kicks in if
              the user comes back from vacation in the middle of the month.
              It does not have any effect on trial limit.
              It does not work for weekly quota. Only monthly.
              It will show a deducted amount when doing !passed from irc.
              It will show DEBUG values when doing tur-trial.sh dummy quota test

              Two new settings in tur-trial.conf to handle this:
               VACATIONDATA=/glftpd/etc/quota_vacation.db  ## Set to same as in tur-vacation.sh
               VACATIONGROUP=VACATION                      ## Vacation group.
              Those two goes under the Quota settings in the config.

              Point VACATIONDATA to the same file you set to TRIALDATA in tur-vacation.sh
               Note that tur-trial.sh runs from shell, thus not chrooted, and 
               tur-vacation.sh runs chrooted from inside glftpd. Thus
               tur-vacation.sh: /etc/quota_vacation.db
               tur-trial.sh   : /glftpd/etc/quota_vacation.db

               Also note: This is NOT the same file as defined as DB in tur-vacation.sh
               That user gets removed from that file when he comes back from vacation
               so we cant use it.

              Other setting, VACATIONGROUP, should simply match VACATIONGROUP in
              tur-vacation.sh. This group should still be excluded in tur-trial.conf

              When running 'tur-trial.sh dummy quota' and its the end of the month,
              it will go through the VACATIONDATA file and reset the number of seconds
              the user has been on vacation ( since 1970 ).
              This happens ONLY if the user is still in the VACATIONGROUP. If he is not
              it will remove him/her from the VACATIONDATA file. Otherwise it will just
              pile up with names that were once on vacation.

              Setting VACATIONDATA to "" or putting a # infront of it simply
              disables this function totally.
              It is, by default, disabled with a # in the config.

              Thanks to silicon^ for suggesting this. ( Yes, I already thought about
              it but I was too lazy to do anything about until now =).

 Upg from 2.0.5  : If you dont plan to use the above, dont upgrade =)

                   Otherwise, install Tur-Vacation 1.4+ first.
                   Replace tur-trial.sh
                   Add, to the "Quota Settings" in tur-trial.conf:
                     VACATIONDATA=/glftpd/etc/quota_vacation.db  ## Set to same as in tur-vacation.sh
                     VACATIONGROUP=VACATION                      ## Vacation group.

-------------------------------------------------------------------------------------
 2.0.5 : Fix: 'tur-trial.sh dummy quota test' did not show the correct amount of 
              failed users. Some simple fell out. This was due to an argument which
              was not correctly reset between each usercheck. This, I guess, lead to
              the monthly quota deletion/moving to group didnt work 100%.
              Thanks to LPC for bringing this to my attention.

 Upg from 2.0.4  : Replace tur-trial.sh

-------------------------------------------------------------------------------------
 2.0.4 : Fix: If you had quota disabled ( NOTRIALLIMIT="" ) and it hit an excluded 
              user, it would give the wrong output ( bla bla excluded group %EGROUP% ).
              Only need to update if you have NOTRIALLIMIT=""
              Thanks [Storm] for finding the error.

 Upg from 2.0.3  : Replace tur-trial.sh

-------------------------------------------------------------------------------------
 2.0.3 : Fix: Added a new cookie. %EGROUP%. If a user is excluded cause of group, and
              you announce that hes in affiliated group %GROUP%, it would say his 
              primary group, which isnt always the one hes excluded on..

 Upg from 2.0.2  : Replace tur-trial.sh
                   Edit tur-trial.conf and change
                   QUOTA_EX_PASSED= and QUOTA_EX_NOTPASSED=
                   to say "...is in affiliated group %EGROUP%" instead of %GROUP%.

-------------------------------------------------------------------------------------
 2.0.2 : Fix: When running 'tur-trial.sh dummy quota test' it added an empty line to
              the log, making it look like crap if you tested a few times.


         Fix: Daysleft in trial/quota understands singular and plural now 
              (2 days, 1 day).

         Fix: Fixed "Error with config C_NOTPASSED_TRIALTOT[0] - No user or text. 
                     Result was: USER= - TEXT="

 Upg from 2.0.1  : Replace tur-trial.sh

-------------------------------------------------------------------------------------
 2.0.1 : Fix: Only the first CUSTOM output worked. Anything below [0] did not.
              Since nobody noticed this, I doubt anyone is using it so if it does
              not work 100% this time, I'll just remove the feature in future 
              versions.
              Since I really have no idea what I'm doing, I'm sure its a dirty
              solution so dont look at it =)

              Off the record, this script is driving me nuts. Im not a programmer.
              I just do some kixtart stuff at work and bash seemed similar.

 Upg from 2.0  : Replace tur-trial.sh

-------------------------------------------------------------------------------------
 2.0   : Add: CUSTOM got tough because of how I build the output when I move
              through the script. Now totally redid the message system so
              you can use your own custom messages more easely. Its kinda messy
              in the config because of all the custom output messages.

         Del: Deleted CUSTOM from config
         Del: Deleted SHOWLIMIT from config

 Upg from 1.5  : Replace tur-trial.sh
                 Either replace tur-trial.conf and reconfigure or
                 Remove the CUSTOM part from your old tur-trial.conf
                 Remove SHOWLIMIT too
                 Cut and paste all the custom outputs from the new tur-trial.sh to
                 your old one.
                 ( everything below " #-[ Custom outputs in irc ]-.. " ) 


 1.5   : Add: Added CUSTOM to quota settings. This allows for custom output
              when issuing !passed on certain groups and/or users.
              Read about CUSTOM in the settings for quota above.
              If you set a custom message on someone, it does NOT mean they
              get excluded from quota. Its just a text.

 Upg from 1.4.9: Replace tur-trial.sh
                 Remove BOLD= from config. Its set in tur-trial.sh now
                 ( and you should never need to change it ).

                 Add the following lines to config, below AFFILSFOLDER:

                 CUSTOM="
                 =SiTEOPS:$1_is_too_cool_for_quota._If_it_wasnt_so,_then_$1
                 =Friends:"$BOLD"$1"$BOLD"/%_payed_well._No_quota_for_him._Otherwise_$1
                 =iND:"$BOLD"$1"$BOLD"/%_is_all_alone_and
                 -OstNisse:"$BOLD"$1"$BOLD"_is_the_MAN_and_he
                 -turranius:"$BOLD"$1"$BOLD"_rocks_just_a_notch_more_then_YOU~ALL
                 " # This is just a substitute text. It does NOT mean they are excluded.
                   # See README on this one. Space Separated. "" = disable.

                 Read up on how to configure it.

 1.4.9 : Add: Added support to disable checking of users if they are in 
              a trial group. If you want to use another script for trial
              but use tur-trial for quota, set different irc triggers on them.
              set DISABLETRIAL to TRUE.              
              Set TRIALGROUP to the group your other script uses for trial.
              Now users wont be able to check users on trial with tur-trial.
              Hard to understand?
              Say you have two triggers. One is !passed which is tur-trial.
              The other is !trial which is some other scripters trial script, 
              which you use for trial.
              Now, you do NOT want users to be able to do !passed on a user
              that is in TRiAL, since he should use !trial instead.
              Thanks to nym for this idea!

 Upg from 1.4.8: Replace tur-trial.sh.
                 Add to config, above LIMIT:
                 DISABLETRIAL="FALSE"
                 DISTEXT="This command is only for quota users. Use !trial instead!"

 1.4.8 : Add: Added 'debug' as a way of running it with 'test' mode too.
              Just so that people used to running other scripts with 'debug'
              at the end dosnt screw something up, cause its 'test', not 'debug'. =)

 1.4.7 : Add: psxc had a brilliant idea. In the quota list, how about we move 
              users to a specific group instead of either just logging or putting
              flag 6 on him. Now, you can set ADDTOGROUP="TRiAL-2" so if he 
              misses the monthly quota (or weekly), he is added for trial again.
              If he fails that, poof (whatever you set triallist to do).
              So, added the ADDTOGROUP setting in tur-trial.conf.
 
         Add: After I JUST put 1.4.7 on the web, silicon brings another good idea.
              Allow the script to reset users credits when they fail in the quota.
              So, I added SETCREDS= to tur-trial.conf. Set this to whatever KB you
              wish the user to have, if the user fails quota. The credits will be 
              reset to this amount.
              Leave it at "" to not touch credits.

         Fix: Debug output in quota part is now sorted. Best at the top, worst
              at the bottom. Must better then mixed.

 Upd from 1.4.6: Replace tur-trial.sh.
                 Add: 
                 ADDTOGROUP="TRiAL-2"
                 below FLAGDEL in tur-trial.conf. Then set FLAGDEL on FALSE.
                 ADDTOGROUP will only run if FLAGDEL is false.
                 If ADDTOGROUP is not added or set to "", it will act as it did before.
                 
                 Add:
                 SETCREDS=""
                 below ADDTOGROUP in tur-trial.conf.
                 As with ADDTOGROUP, SETCREDS will NOT run if FLAGDEL is not FALSE.
                 If SETCREDS is not added or set to "", it will simply be ignored.           

 1.4.6 : Fix: As silicon^ pointed out, if a user is deleted, it still says hes on
              quota/trial/whatever. Added DELETEDTEXT= to config so you can set
              what to say in that case.

         Upd: To update from 1.4.5, replace tur-trial.sh and add the following
              below EXCLUDEDTEXT= in your tur-trial.conf:
              DELETEDTEXT="User $1 is deleted"
              Set any text you wish. Use $1 as username. If you dont want tur-trial
              to say anything, leave it at ="" or simply # the whole line.
              If you dont add this line, it wont say anything.

 1.4.5 : Fix: If EXLCUDEDUSERS in the Quota part was empty, you got a grep error and
              not much else when using quota. Thanks NetSarC for reporting the error.
      Change: So people had problems understanding the password system.. OK, changed it
              again for good. Instead of password, use quota and triallist as arguments
              again BUT use them as the 2nd argument. 1st argument can be anything.
              So for quota, its: tur-trial.sh dummy quota
              For the triallist, its: tur-trial.sh dummy triallist
              'test' can still be added to the end, so for testing from shell, its:
              tur-trial.sh dummy quota test
              tur-trial.sh dummy triallist test.
              The tcl only passes one argument per default, so there is no way the
              users can trigger this from irc, as any other args are ignored.
         
         Upd: Remove TRIALPASS and QUOTAPASS from tur-trial.conf
              Change your crontab to reflect the new way to run quota and triallist.
              Replace the tur-trial.sh file.

        Note: Grrr. Crap.

 1.4.4 : Fix: Ok, so $USER didnt work too well from crontab. Great that I tested that
              first, wasnt it =(
              To execute the quota and triallist sequences, use the passwords in the
              config file. Make sure you change from the default.

         Upd: Add TRAILPASS="YourPass" above QLOGFILE
              Add QUOTAPASS="YourPass" above LOGFILE
              This is what you trigger those ones with, so make sure you do NOT set
              them to the same thing.

 1.4.3 : Add: In quota and triallist mode, if running it with test as a 2nd parameter
              it will show on screen what it would have done at the actual end of 
              the week/month. Nice since there was no way of testing it unless it 
              was the end of the week/month before. It will set all "destructive"
              settings to FALSE and any ANNOUNCE will be FALSE too, so dont worry about
              anyone being kicked because of running in test mode.
              ( tur-trial.sh quota test, tur-trial.sh triallist test ).
         Fix: In quota and triallist mode, it checks that $USER is root instead of
              $HOME being /root. Guess it wasnt the same on all distros but $USER should
              be.
 
         Upd: Only tur-trial.sh changed since 1.4.1. Replace that file and use old .conf file.

 1.4.2 : Fix: Little spelling error caused users up for trial to be display as not
              on trial.

         Upd: To update from 1.4.1, just replace tur-trial.sh. No config changes.
              If you followed the instuctions I had in the news for a while, you
              do not need to do anything.

 1.4.1 : Fix: It reported users up for trial next week as if they were up for trial
              this week when executed from irc or shell. Thanks to spawnstah for finding
              it. Another lame error from me(c).

         Upd: To update from 1.4, just copy the tur-trial.sh. No config changes.

 1.4   : Add: Support for european week. 
         Add: Merged triallist.sh with this one. Run it with the argument 'triallist'
              Will now detect if its the last day of the week or month automatically.
         Add: Merged MonthUpAll with this one. Run it with the argument 'quota'.
              Will now detect if its the last day of the week or month automatically.
         Add: Added possibility to announce the end of the trial period as well as
              how each trial user did. Same for quota.
         Add: Added the AUTOCHANGE settings to move users from group to group 
              automatically, or delete those who fail trial.
         Upd: Just reinstall it from scratch. Not that much in the old versions anyway.

 1.3.1 : Add: When merging the two, the move from monthly to    
              daily to hours to minutes broke. Now fixed.       
 1.3   : Add: Merged Tur-Trial and Tur-All-Trial into one.      
              If the user is not in any trial group, it will go 
              by the other limit set.                           
 1.2.1 : Fix: Lame error when it got down to minutes left in    
              the trial.                                        
 1.2 : Will now show how many days/hours left on trial, as well 
       as how many megs per day the user has to upload to pass. 
       Days will break down to Hours and Minutes as the end of  
       the trial gets closer.                                   
 1.1 : Added support for up to 9 stat sections.                 
 1.0 : Initial release.                                         
