'THE JUDGE'


appjudge is a pgtclsh script that, ran by crontab, will check
for applications in Pending status to make them to Notification period,
or Reject applications that didnt passed Traffic Check, or put in
Ready for review state other applications that passed and are ready to be
reviewed by CService administrators for registration.

In other words, you need this for your Automatic Registration System to work.

linux:/home/gnuworld/website/php_includes$ exit
linux:/root# cd /home/gnuworld/gnuworld/doc/cmaster/
linux:/home/gnuworld/gnuworld/doc/cmaster# cp -rp regproc/ /usr/local/pgsql/
linux:/home/gnuworld/gnuworld/doc/cmaster# chown -R gnuworld /usr/local/pgsql/regproc/
linux:/home/gnuworld/gnuworld/doc/cmaster# su - gnuworld
linux:/home/gnuworld$

Edit the /usr/local/pgsql/regproc/appjudge-config file, and set your preferences,
the defaults at 99 are definetly not good.


	# Database name (duh)

Set this to the CService database, in our example, cservice
	set SQL_DB "cservice"

DO NOT MODIFY THIS heh!@#
	# Number of seconds in a day, I suggest you do not change this ;)
	set DAY                         86400

Tweak the following for your convenience
	# Number of days an application has to pass the activity test
	set MAX_DAYS                    99

	# Number of unique IP's that must visit a channel during the activity test
	set UNIQUE_JOINS                99

	# Number of supporters that must visit the channel during the activity test
	set MIN_SUPPORTERS              99

	# Duration of the notify period
	set NOTIFY_DAYS                 99

	# Number of days supporters have to confirm their support
	set SUPPORT_DAYS                99

You definetly need to change this 0 to an existing user ID (number) on your database,
for example, if you had activated the complaints module earlier (when editing 
'config.inc') it is wise to pick,
here the same ID as in COMPLAINTS_ADMINCOMMENT_ID in 'config.inc'...
	# The Judge's Reviewer ID
	set REVIEWER_ID                 0

DO NOT MODIFY THIS EITHER
# These are better left alone
set AS_PENDING_SUPPORT          0
set AS_TRAFFIC_CHECK            1
set AS_NOTIFICATION             2
set AS_COMPLETED                3
set AS_CANCELLED                4
set AS_PENDREVIEW               8
set AS_REJECTED                 9


Save the file !

Ensure /usr/local/pgsql/regproc/appjudge is set executable :

	linux:/home/gnuworld$ chmod 755 /usr/local/pgsql/regproc/appjudge


Add the content of /usr/local/pgsql/regproc/cron-judge.in to gnuworld's crontab :

	linux:/home/gnuworld$ crontab /usr/local/pgsql/regproc/cron-judge.in

          

http://zonairc.org

 

 

| COMPANY © 2013 | ZonaIRC S.A. |  DERECHOS RESERVADOS - REDES INTERNACIONALES |