Commit initial: GNUWorld servicii IRC cu README.md complet in limba romana - Analiza arhitecturala completa a proiectului - Documentatie ierarhie clase, bucla de evenimente, protocol P10 - Identificare probleme memorie si recomandari modernizare

This commit is contained in:
Underchat committed 2026-03-02 00:51:45 +02:00
commit fcb24f6de9
870 files changed
+311128

No files matched your search

+1
View File
@@ -0,0 +1 @@
.arch-ids
+21
View File
@@ -0,0 +1,21 @@
-- "$Id: README,v 1.5 2002/08/30 10:38:15 nighty Exp $"
--
-- For more detailed information about setting up GNUworld, visit :
-- http://coder-com.undernet.org/gnuworld-setup/
--
--
-- 2001-10-04: nighty <nighty@undernet.org>
--
Main Help Section
README - This file
README.pgsql - How to setup pgsql for GNUworld
README.ccontrol - How to prepare things to use the 'ccontrol' module
README.cservice - How to prepare things to use the 'cservice' module
REAMDE.sharedmemory - How to tweak shared memory to run more pgsl threads
The GNUworld development team.
+23
View File
@@ -0,0 +1,23 @@
-- "$Id: README.appjudge,v 1.5 2002/08/30 10:38:15 nighty Exp $"
--
-- For more detailed information about setting up GNUworld, visit :
-- http://coder-com.undernet.org/gnuworld-setup/
--
-- 2001-10-16: nighty <nighty@undernet.org>
--
- copy cmaster/regproc/ and its subdirs to /usr/local/pgsql
- make it owned by your gnuworld user (the one running the postgres) :
chown -R gnuworld /usr/local/pgsql/regproc
- edit the file /usr/local/pgsql/regproc/appjudge-config and set your preferences.
- crontab the content of /usr/local/pgsql/regproc/cron-judge.in :
as root : crontab -u gnuworld /usr/local/pgsql/regproc/cron-judge.in
or, as gnuworld : crontab /usr/local/pgsql/regproc/cron-judge.in
- you're done!
+65
View File
@@ -0,0 +1,65 @@
-- "$Id: README.ccontrol,v 1.10 2008/08/06 19:35:58 hidden1 Exp $"
--
-- For more detailed information about setting up GNUworld, visit :
-- http://coder-com.undernet.org/gnuworld-setup/
--
-- 2001-10-04: nighty <nighty@undernet.org>
--
Setting up ccontrol for the first time
---------------------------------------------------------------
Follow these steps to setup the database for the ccontrol module. This
file assumes that postgresql is running and configured, and that you have
access to add and modify databases within it.
Create the database
-------------------
> createdb ccontrol
Note that this assumes that the ccontrol database does not already exist.
Load the schema
---------------
Make sure you are in the gnuworld/doc directory.
> psql ccontrol < ccontrol.sql
> psql ccontrol < ccontrol.help.sql
> psql ccontrol < ccontrol.shells.sql
Add yourself
------------
After all this is done, you need to add yourself to the bot , to do that simply run
> psql ccontrol < ccontrol.addme.sql
Note: the script add the user Admin , with all commands enabled .
the host that will be added is *!*@* , you should change it
the first time that you login to the bot along with the pass
which is temPass , for more help /msg bot help modoper.
then you should
> psql ccontrol < ccontrol.commands.sql
If you have problems with an upgrade of GNUworld with ccontrol module on certain features,
you may want to upgrade your old tables to fit, then do the following :
> psql ccontrol < ccontrol.update.sql
NOTE: in the default GNUworld.conf use rather 'ccontrol.conf' as a default for CControl
than the 'gnuworld3.conf' file (it's not complete).
All Done
--------
That's it for the sql stuff. Be sure to edit the configuration file for
cmaster (../bin/ccontrol.conf), giving username, nickname, etc, and
database information.
The GNUworld development team.
+76
View File
@@ -0,0 +1,76 @@
-- "$Id: README.cservice,v 1.19 2005/09/30 00:48:43 kewlio Exp $"
--
-- For more detailed information about setting up GNUworld, visit :
-- http://coder-com.undernet.org/gnuworld-setup/
--
--
-- 2001-10-04: nighty <nighty@undernet.org>
--
Follow these steps to setup the database for the cservice module. This
file assumes that postgresql is running and configured, and that you have
access to add and modify databases within it.
Create the database
-------------------
> createdb cservice
Note that this assumes that the cservice database does not already exist.
Install the pl language
-----------------------
The following command assumes (in addition to above conditions) that the
pgsql libraries are located in /usr/local/pgsql/lib:
> createlang -L /usr/local/pgsql/lib plpgsql cservice
Load the schema
---------------
Make sure you are in the gnuworld/doc directory.
> psql cservice < cservice.sql
> psql cservice < languages.sql
> psql cservice < language_table.sql
> psql cservice < cservice.help.sql
> psql cservice < cservice.web.sql
> psql cservice < cservice.config.sql
> psql cservice < greeting.sql
Create a local (for the www) Database called 'local_db' for webcookies
(without this local db the website will NOT work)
Tho you can also choose to name the 'cservice' db 'local_db' for a
strictly and whole local use of DB + webserver, and issue the
following to the same db and then forgot the other 'createdb' thing.
This database will also hosts the pending verif q/a reset requests.
---------------------------------------------------------------------
> createdb local_db
> psql local_db < local_db.sql
Add administrator account
-------------------------
This command will add an account called 'Admin' with level 1000 access on
channel '*'...use this power wisely, The Dark Side is very powerful.
This will also register channel #coder-com to 'Admin' to make the VERIFY
command work on authenticated users.
> psql cservice < cservice.addme.sql
Using this account you will be able to login as Admin online with your
cservice bot.
Username: Admin
Password: temPass (be sure to change this after login online)
All Done
--------
That's it for the sql stuff. Be sure to edit the configuration file for
cmaster (../bin/cservice.conf), giving username, nickname, etc, and
database information.
For the website, be sure to edit website/php_includes/config.inc to configure your website.
The GNUWorld development team
+21
View File
@@ -0,0 +1,21 @@
Creating dronescan DB configuration
-----------------------------------
First, create the dronescan database in pgql:
/usr/local/pgsql/bin/createdb dronescan
Next, add the dronescan user:
/usr/local/pgsql/bin/createuser dronescan
Just answer yes to all questions.
Finally, add the .sql file:
/usr/local/pgsql/bin/psql dronescan < dronescan.sql
This will create the database called dronescan, and db user dronescan,
with default (empty) password.
+87
View File
@@ -0,0 +1,87 @@
-- "$Id: README.pgsql,v 1.10 2002/08/30 10:38:15 nighty Exp $"
--
-- Building PostgreSQL for GNUworld
--
-- For more detailed information about setting up GNUworld, visit :
-- http://coder-com.undernet.org/gnuworld-setup/
--
--
-- 2001-10-14 : nighty <nighty@undernet.org>
--
in order to build postgres you need :
- a recent version of gmake (GNU make 3.79 ftp://gnu.wwc.edu/make/make-3.79.tar.gz)
- a recent version of TCL (TCL 8+ http://dev.scriptics.com/ftp/tcl/tcl8_3/tcl8.3.3.tar.gz)
NOTE: for FreeBSD users *only* :
root:# cd /usr/ports/lang/tcl83
root:# make
it will auto-download it.
root:# make install
- unpack the postgresql tarball (latest is version 7.1.3 : ftp://ftp.us.postgresql.org/v7.1.3/postgresql-7.1.3.tar.gz) :
tar -xzvf postgresql-7.1.3.tar.gz
- 'cd' to the directory :
cd postgresql-7.1.3/
- use the following configure options :
--with-CXX : needed for several things like GNUworld or PHP to have pgsql support.
--with-tcl --without-tk : needed to compile pgtclsh (TCL interpreter)
which is needed for the script gnuworld/doc/cmaster/regproc/appjudge
and this script is the one making the applications advance in registration process.
To install this properly, see the included README.appjudge file.
- build pgsql
root:# ./configure --with-CXX --with-tcl --without-tk
root:# gmake
root:# gmake install
- add the pgsl library directories to the lib PATH, this varies from system to another
(if you don't do this, GNUworld wille *NOT* be able to compile)
on Linux type OS's you will need to edit :
/etc/ld.so.conf
and add the line :
/usr/local/pgsql/lib
save, then run 'ldconfig'.
on FreeBSD or other systems you may need to set the LD_LIBRARY_PATH environment variable
you can add the line :
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib
into /etc/profile for bash.
zsh, sh and ksh use 'export' too in their respective .shrc .zshrc .kshrc ~ files.
for csh and tcsh you will need to use 'setenv' instead :
setenv LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib
- create a data directory for PGSL :
root:# mkdir /usr/local/pgsql/data
change its permissions to the gnuworld user (the one that run postgres) :
root:# chown gnuworld /usr/local/pgsql/data
- do the final process to set the database UP :
root:# su - gnuworld
gnuworld:$ /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
start postgresql with default values :
gnuworld:$ /usr/local/pgsql/bin/postmaster -S -B 64 -N 32 -i -D /usr/local/pgsql/data -o -F
NOTE: this will only allow 32 threads simultaneously .. this should be large enough for small networks
if you want to increase this .. please view the 'README.sharedmemory' in this directory.
now go look README.ccontrol and README.cservice ;)
+97
View File
@@ -0,0 +1,97 @@
-- "$Id: README.sharedmemory,v 1.6 2002/08/30 10:38:15 nighty Exp $"
--
-- For more detailed information about setting up GNUworld, visit :
-- http://coder-com.undernet.org/gnuworld-setup/
--
-- Manipulating shared memory
--
-- 2001-12-25: nighty <nighty@undernet.org>: fixed example
-- 2001-10-04: nighty <nighty@undernet.org>
--
PostgreSQL runs 32 maximum threads by default
if you want to increase this (-N parameter) you will need
to increase the -B paramter as well (buffers)
and '-B' must be at least twice '-N' but you will prefer
set -B bigger on more important networks.
for example :
/usr/local/pgsql/bin/postmaster -S -B 1024 -N 200 -i -D /usr/local/pgsql/data -o -F
for 200 threads,
you would need to tweak max # of shared memory segments etc...
we will explain two cases, /proc/* compatible linux, and FreeBSD kernel options.
1) The '/proc/*' Linux case
---------------------------
add the following to /etc/rc.d/rc.local (or equivalent) :
echo -n 100000000 > /proc/sys/kernel/shmmax
echo -n 100000000 > /proc/sys/kernel/shmall
You may also issue them directly on the shell as root to avoid rebooting,
it will be in the startup file in case reboot happen.
2) The FreeBSD kernel tweaking case
-----------------------------------
You need your kernel sources installed.
do all the following as root :
# cd /usr/src/sys/i386/conf
if you don't have a config already here, do this :
# cp GENERIC YOURCONF
then...
# vi YOURCONF
set 'maxusers' to 512.
and add the following lines :
options SYSVSHM
options SYSVMSG
options SYSVSEM
options SHMMAXPGS=100000000
options SHMMAX=100000000
options SHMALL=100000000
options SHMMNI=8192
options SHMMIN=1
options SHMSEG=512
options SEMMNI=32
options SEMMNS=2048
options SEMMNU=30
options SEMMAP=30
options SEMMSL=512
configure your new kernel :
# /usr/sbin/config YOURCONF
build it.
# cd ../../compile/YOURCONF
# make depend
# make
# make install
then reboot the machine
# reboot
+1
View File
@@ -0,0 +1 @@
.arch-ids
+71
View File
@@ -0,0 +1,71 @@
--
-- $Id: autokill.sql,v 1.17 2008/04/18 11:33:26 danielaustin Exp $
--
--
-- Starting the process...
\qecho [*] Starting autokill.sql..
BEGIN WORK;
--
-- Clean up the temporary table from last time.
DROP TABLE IF EXISTS to_die;
-- Select all user_id's idle > 60 days into a temp table.
--
\qecho [*] Fetching list of idle user accounts:
SELECT users_lastseen.user_id,users_lastseen.last_seen,users.user_name INTO TABLE to_die FROM users_lastseen,users WHERE (users_lastseen.last_seen <= extract(epoch from now() - interval '60 days')::integer) AND users.id=users_lastseen.user_id;
-- Remove any who currently have a pending application (Shouldn't happen <g>)
\qecho [*] Moving those with old channel applications to user "AutoPurged".
UPDATE pending SET manager_id = (SELECT id FROM users WHERE lower(user_name) = 'AutoPurged') WHERE pending.manager_id IN (select user_id from to_die);
\qecho [*] Not deleting those users who have the NoPurge flag.
DELETE FROM to_die WHERE user_id IN (SELECT id FROM users WHERE (flags::int4 & 32) = 32);
-- Output who are are going to kill, log stdout.
\qecho [*] Listing Final Accounts to be removed:
SELECT users.user_name,to_die.last_seen FROM users,to_die WHERE users.id IN (SELECT user_id);
--
-- Clean up userlogs.
\qecho [*] Removing userlogs..
DELETE FROM userlog WHERE user_id IN (SELECT user_id FROM to_die);
--
-- Clean up level records.
\qecho [*] Removing access levels..
DELETE FROM levels WHERE user_id IN (SELECT user_id FROM to_die);
--
-- Clean up FRAUD USERNAMES.
\qecho [*] Removing FRAUD USERNAME records..
DELETE FROM noreg WHERE type=4 AND user_name IN (SELECT user_name FROM to_die);
--
-- Clean up supporter records.
\qecho [*] Removing supporter records..
DELETE FROM supporters WHERE user_id IN (SELECT user_id FROM to_die);
--
-- Clean up objection records.
\qecho [*] Removing Objection records..
DELETE FROM objections WHERE user_id IN (SELECT user_id FROM to_die);
-- Clean up mailq records.
--\qecho [*] Removing mailq records..
--DELETE FROM mailq WHERE user_id IN (SELECT user_id FROM to_die);
--
-- Clean up notes records.
\qecho [*] Removing notes received and/or sent..
DELETE FROM notes WHERE user_id IN (SELECT user_id FROM to_die) OR from_user_id IN (SELECt user_id FROM to_die);
--
-- Clean up webaccessteam records..
--\qecho [*] Removing webaccessteam records..
--DELETE FROM webaccessteam where admin_id IN (SELECT admin_id FROM to_die);
--
-- Clean up fraud_lists records..
\qecho [*] Removing fraud_list_data..
DELETE FROM fraud_list_data WHERE user_id IN (SELECT user_id FROM to_die);
--
-- Clean up last_seens.
\qecho [*] Removing last_seens..
DELETE FROM users_lastseen WHERE user_id IN (SELECT user_id FROM to_die);
--
-- Clean up users (Finally!).
\qecho [*] Removing user accounts..
DELETE FROM users WHERE user_name IN (SELECT user_name FROM to_die);
--
-- Commit all the work (if this line is not executed, you can "undo" the done stuff using 'ROLLBACK WORK;'
\qecho [*] Comitting changes to database..
COMMIT WORK;
+11
View File
@@ -0,0 +1,11 @@
-- "$Id: ccontrol.addme.sql,v 1.6 2002/08/30 10:15:12 nighty Exp $"
-- 2001-03-29 : |MrBean|
-- This script will add the first user to ccontrol
-- it will create a user with a coder access by the handle of Admin
-- with pass : temPass
-- the host that will be added is *!*@* , this is a security risk, and should be changed along with the password
-- Note: this script should be run only once , and when the database got no other opers
INSERT INTO OPERS (user_name,password,access,saccess,last_updated,isCODER) VALUES ('Admin','07d976a29bdb3ff42e19c102852151b28097bbad',2147483647,2147483647,extract(epoch FROM now())::int,'t');
INSERT INTO HOSTS (user_id,host) VALUES (1,'*!*@*');
+56
View File
@@ -0,0 +1,56 @@
-- "$Id: ccontrol.commands.sql,v 1.8 2002/08/30 10:15:12 nighty Exp $"
-- Fills the commands table with the default values
-- Note: DO NOT EDIT THIS FILE BY HAND!
-- THESE ARE JUST DEFAULT VALUES
-- USE THE COMMANDS COMMAND TO CHANGE THEM
-- Last Updated : 26/07/01 |MrBean|
Delete from commands;
COPY "commands" FROM stdin;
ACCESS ACCESS 1 n n t 1 n
HELP HELP 2 n n t 1 n
LOGIN LOGIN 0 n t t 1 n
DEAUTH DEAUTH 4 n n t 1 n
NEWPASS NEWPASS 8 n n t 1 n
MODE MODE 16 n n n 1 n
OP OP 32 n n n 1 n
DEOP DEOP 64 n n n 1 n
MODERATE MODERATE 128 n n n 1 n
UNMODERATE UNMODERATE 256 n n n 1 n
INVITE INVITE 512 n n n 1 n
JUPE JUPE 1024 n n n 1 n
GLINE GLINE 2048 n n n 1 n
REMGLINE REMGLINE 4096 n n n 1 n
SCANGLINE SCANGLINE 8192 n n n 1 n
REMOPERCHAN REMOPERCHAN 16384 n n n 1 n
ADDOPERCHAN ADDOPERCHAN 32768 n n n 1 n
LISTOPERCHANS LISTOPERCHANS 65536 n n n 1 n
CHANINFO CHANINFO 131072 n n n 1 n
WHOIS WHOIS 262144 n n n 1 n
ADDUSER ADDUSER 524288 n n n 1 n
REMUSER REMUSER 1048576 n n n 1 n
MODUSER MODUSER 2097152 n n n 1 n
TRANSLATE TRANSLATE 4194304 n n n 1 n
KICK KICK 8388608 n n n 1 n
ADDCOMMAND ADDCOMMAND 16777216 n n n 1 n
REMCOMMAND REMCOMMAND 33554432 n n n 1 n
SUSPEND SUSPEND 67108864 n n n 1 n
UNSUSPEND UNSUSPEND 134217728 n n n 1 n
CLEARCHAN CLEARCHAN 268435456 n n n 1 n
LISTHOSTS LISTHOSTS 536870912 n n n 1 n
ADDSERVER ADDSERVER 1073741824 n n n 1 n
LEARNNET LEARNNET 1 n n n 1 t
REMSERVER REMSERVER 2 n n n 1 t
CHECKNET CHECKNET 4 n n n 1 t
LASTCOM LASTCOM 8 n n n 1 t
FORCEGLINE FORCEGLINE 16 n n n 1 t
EXCEPTIONS EXCEPTIONS 32 n n n 1 t
LISTIGNORES LISTIGNORES 64 n n n 1 t
REMIGNORE REMIGNORE 128 n n n 1 t
LIST LIST 256 n n n 1 t
COMMANDS COMMANDS 512 n n n 1 t
GCHAN GCHAN 1024 n n n 1 t
REMGCHAN REMGCHAN 2048 n n n 1 t
\.
+334
View File
@@ -0,0 +1,334 @@
-- 2001-03-02 |MrBean| "$Id: ccontrol.help.sql,v 1.20 2009/07/25 18:12:33 hidden1 Exp $"
-- Created the file and added all help topics to the database
-- 2201-03-11 |MrBean|
-- Added OP,DEOP,MODERATE,UNMODERATE,CLEARCHAN
-- Now the script first deletes previous help , and then reinsert all of the topics
-- Changed some commands. Also usage replaced with Syntax in the commands it was missing FWAP
-- Restructure help into alphabetical order, remove obselete commands, add new commands
-- Delete the current help entries
DELETE FROM help;
COPY "help" FROM stdin;
ADDCOMMAND 1 ****** ADDCOMMAND COMMAND ******
ADDCOMMAND 2 Gives permission to an oper to use a specified command
ADDCOMMAND 3 Syntax: /msg $BOT$ addcommand [-fr] <oper> <command>
ADDCOMMAND 4 -fr can only be specified by SMT+ to force addition
ADDCOMMAND 5 <oper> - the oper username you want to give the command to
ADDCOMMAND 6 <command> - the command you want to add
ADDCOMMAND 7 CODERS only: you can use /msg $BOT$ addcommand [-fr] <-allopers|-alladmins|-allsmts|-allcoders> <command>
ADDSERVER 1 ****** ADDSERVER COMMAND ******
ADDSERVER 2 Adds a new server to the bot database
ADDSERVER 3 Syntax: /msg $BOT$ addserver <server>
ADDSERVER 4 *note* The server has to be linked in order for this command to work
ADDUSER 1 ****** ADDUSER COMMAND ******
ADDUSER 2 Adds new oper to the bot access list
ADDUSER 3 Syntax: /msg $BOT$ adduser <username> <oper level> [server] <password>
ADDUSER 4 <username> - The username the bot will recognize the oper under
ADDUSER 5 <oper level> - Sets the initial oper commands, options are: oper, admin, smt, coder
ADDUSER 6 [server] - add the oper to the specified server, defaults to your home server
ADDUSER 7 <password> - the password of the new oper
ADDOPERCHAN 1 ****** ADDOPERCHAN COMMAND ******
ADDOPERCHAN 2 Marks a channel as ircoperators only
ADDOPERCHAN 3 Syntax: /msg $BOT$ addoperchan <channel>
ADDOPERCHAN 4 thous making the bot kick and ban everyone who is not an ircop
CHANINFO 1 ****** CHANINFO COMMAND ******
CHANINFO 2 Gives you all sort of information about a channel
CHANINFO 3 Syntax: /msg $BOT$ chaninfo <#channel>
CHANINFO 4 <#channel> - the channel you would like information about
CHECKNET 1 ****** CHECKNET COMMAND ******
CHECKNET 2 Lists all current missing servers
CHECKNET 3 Syntax: /msg $BOT$ checknet
CLEARCHAN 1 ****** CLEARCHAN COMMAND ******
CLEARCHAN 2 Clears a channel's modes
CLEARCHAN 3 Syntax: /msg $BOT$ clearchan <#channel> [mode string]
CLEARCHAN 4 <#channel> - the channel to clear modes in
CLEARCHAN 5 [mode string] - can be ALL (for all channel modes) or any combination of ilpskmntDob
CLEARCHAN 6 o = remove all channel ops
CLEARCHAN 7 b = remove all bans
CLEARCHAN 8 *NOTE* - if you dont specify a mode string the bot will remove modes obikl
COMMANDS 1 ****** COMMANDS COMMAND ******
COMMANDS 2 Changes a command's options
COMMANDS 3 Syntax: /msg $BOT$ commands <-ds|-en|-no|-nl|-na|-ml> <command> <option>
COMMANDS 4 -ds - disable the command
COMMANDS 5 -en - enable the command
COMMANDS 6 -no - toggles the need to be oper'd up to use the command
COMMANDS 7 -nl - toggles if the command should not be logged in the lastcom report
COMMANDS 8 -na - changes the name of the command
COMMANDS 9 -ml - set the minimum level a oper must have for this command to be added to
CONFIG 1 ****** CONFIG COMMAND ******
CONFIG 2 Sets internal configuration options within the bot
CONFIG 3 Syntax: /msg $BOT$ config <option> <value>
CONFIG 4 <option> may be:
CONFIG 5 -GTime <duration> - default gline time (accepts friendly times e.g. 900s, 30m, 3h, 1d)
CONFIG 6 -VClones <amount> - threshold for warning about virtual (realname) clones
CONFIG 7 -Clones <amount> - threshold for clones on a single IP
CONFIG 8 -CClones <amount> - threshold for CIDR clones (see below)
CONFIG 9 -CClonesCIDR <size> - CIDR bit length for clones (0-32)
CONFIG 10 -CClonesGline <Yes|No> - auto-gline for CIDR clones flag
CONFIG 11 -CClonesGTime <duration> - gline duration for CIDR clones (accepts friendly times)
CONFIG 12 -IClones <amount> - threshold for CIDR ident clones
CONFIG 13 -IClonesGline <Yes|No> - auto-gline for CIDR ident clones flag
CONFIG 14 -CClonesTime <duration> - time between clone warnings to msglog (accepts friendly times)
CONFIG 15 -GBCount <count> - number of glines to set at once
CONFIG 16 -GBInterval <duration> - time between setting gline bursts (accepts friendly times)
CONFIG 17 -SGline <Yes|No> - Save glines flag
DEAUTH 1 ****** DEAUTH COMMAND ******
DEAUTH 2 Deauthenticates you from the bot
DEAUTH 3 Syntax: /msg $BOT$ deauth
DEOP 1 ****** DEOP COMMAND ******
DEOP 2 Deops one or more users on a specific channel
DEOP 3 Syntax: /msg $BOT$ deop <#chan> <nick1> [nick2 nick3...]
DEOP 4 <#chan> - the channel to deop the users on
DEOP 5 <nick1, nick2..> - nicks to deop
EXCEPTIONS 1 ****** EXCEPTIONS COMMAND ******
EXCEPTIONS 2 Excepts users from the various glines/warnings within CONFIG
EXCEPTIONS 3 Syntax: /msg $BOT$ exceptions <add|del|list> <host mask> <connections>
EXCEPTIONS 4 <host mask> - user@host mask to except
EXCEPTIONS 5 <connections> - number of connections allowed before gline/warning
FORCECHANGLINE 1 ****** FORCECHANGLINE COMMAND ******
FORCECHANGLINE 2 Glines all users on the given channel
FORCECHANGLINE 3 Syntax: /msg $BOT$ forcechangline [-u] <#channel> [duration] <reason>
FORCECHANGLINE 4 <#channel> - the channel name to gline
FORCECHANGLINE 5 [duration] - Duration of the gline, may have s,m,h,d for secs,mins,hours,days
FORCECHANGLINE 6 <reason> - reason for the gline
FORCECHANGLINE 7 [-u] - only glines the unidented clients found on the channel with ~*@IP glines
FORCECHANGLINE 8 This type of chan gline is limited for 24 hours and cannot be issued on channels with opers or channels which are marked as nomode channels
FORCEGLINE 1 ****** FORCEGLINE COMMAND ******
FORCEGLINE 2 Glines a host for a certain amount of time
FORCEGLINE 3 Syntax: /msg $BOT$ forcegline [-fu] <nick|user@host> <duration[s/m/h/d]> <reason>
FORCEGLINE 4 -fu flag can only be specified by SMT+ (used to force)
FORCEGLINE 5 <nick|user@host> - the nick or user@host to gline (user@host supports CIDR)
FORCEGLINE 6 <duration> - duration of the gline (supports s,m,h,d for secs,mins,hours,days)
FORCEGLINE 7 <reason> - the reason for the gline
FORCEGLINE 8 This type of gline is used to gline for more than 14 days and/or for a gline which affects more than 255 users.
GCHAN 1 ****** GCHAN COMMAND ******
GCHAN 2 Sets a bad channel gline on a channel
GCHAN 3 Syntax: /msg $BOT$ gchan <#channel> <duration|-per> <reason>
GCHAN 4 <#channel> - the channel to badchannel gline
GCHAN 5 <duration> - duration of the gline (-per for permanent)
GCHAN 6 <reason> - reason for the badchannel gline
GLINE 1 ****** GLINE COMMAND ******
GLINE 2 glines a certain host from the network
GLINE 3 Syntax: /msg $BOT$ gline <user@host> [duration] <reason>
GLINE 4 <user@host> - the host to gline (CIDR not supported)
GLINE 5 <duration> - the duration of the gline (supports s,m,h,d for secs,mins,hours,days)
GLINE 6 <reason> - the reason for the gline
HELP 1 ****** HELP COMMAND ******
HELP 2 Shows help on commands (like this one!)
HELP 3 Syntax: /msg $BOT$ help [command]
HELP 4 If command is empty, this command shows the commands you have access to.
INVITE 1 ****** INVITE COMMAND ******
INVITE 2 Makes the bot invite you to an invite only channel
INVITE 3 Syntax: /msg $BOT$ invite <#channel>
INVITE 4 <#channel> - the channel to invite you to
JUPE 1 ****** JUPE COMMAND ******
JUPE 2 Jupe a server (prevent it connecting to the network)
JUPE 3 Syntax: /msg $BOT$ jupe <servername> <reason>
JUPE 4 <servername> - the name of the server to jupe
JUPE 5 <reason> - reason for the jupe
KICK 1 ****** KICK COMMAND ******
KICK 2 Makes the bot kick a user from a channel
KICK 3 Syntax: /msg $BOT$ kick <#channel> <nick> <reason>
KICK 4 <#channel> - the channel to kick the user from
KICK 5 <nick> - the nick of the user you want to kick
KICK 6 <reason> - reason for the kick
LASTCOM 1 ****** LASTCOM COMMAND ******
LASTCOM 2 This command will paste all the last commands which where issued to the bot
LASTCOM 3 Syntax: /msg $BOT$ lastcom [numcommands] [from days ago - d]
LASTCOM 4 [numcommands] - The number of commands to show (default: 20)
LASTCOM 5 You can also specify the number of days ago
LASTCOMM 1 See /msg $BOT$ help lastcom
LEARNNET 1 ****** LEARNNET COMMAND ******
LEARNNET 2 Adds all the unknown servers which are currently connected to the network to the bot database
LEARNNET 3 Syntax: /msg $BOT$ learnnet
LIST 1 ****** LIST COMMAND ******
LIST 2 This command lists various internal lists
LIST 3 Syntax: /msg $BOT$ list <type>
LIST 4 <type> - glines, servers, badchannels, exceptions, channels, shells
LIST 5 (see /msg $BOT$ help list channels for more info on channels)
LIST CHANNELS 1 ****** LIST CHANNELS COMMAND ******
LIST CHANNELS 2 This command lists channels based on various criteria
LIST CHANNELS 3 Syntax: /msg $BOT$ list channels <type>
LIST CHANNELS 4 <type> may be:
LIST CHANNELS 5 key <key> - list all channels with the specified key (supports wildcards)
LIST CHANNELS 6 modes <modes> - list all channels with the modes, you may explicitly specify + or - modes
LIST CHANNELS 7 topic <topic> - list all channels with a topic matching the specified topic (supports wildcards)
LIST CHANNELS 8 topicby <nick!user@host> - list all channels with topics set by nick!user@host (supports wildcards)
LISTHOSTS 1 ****** LISTHOSTS COMMAND ******
LISTHOSTS 2 Lists all the hosts that an oper is allowed to login from
LISTHOSTS 3 Syntax: /msg $BOT$ listhosts <username>
LISTHOSTS 4 <username> - the username to lookup
LISTIGNORES 1 ****** LISTIGNORES COMMAND ******
LISTIGNORES 2 Shows the current ignore list of the bot
LISTIGNORES 3 Syntax: /msg $BOT$ listignores
LISTOPERCHANS 1 ****** LISTOPERCHANS COMMANDS ******
LISTOPERCHANS 2 Shows a list of the channels that are marked as ircops only
LISTOPERCHANS 3 Syntax: /msg $BOT$ listoperchans
LOGIN 1 ****** LOGIN COMMAND ******
LOGIN 2 Authenticates you with the bot
LOGIN 3 Syntax: /msg $BOT$ login <username> <password>
LOGIN 4 <handle> - your username on the bot
LOGIN 5 <password> - your password
LOGOUT 1 See /msg $BOT$ help deauth
MAXUSERS 1 ****** MAXUSERS COMMANDS ******
MAXUSERS 2 Shows the peak user level as seen by the bot
MAXUSERS 3 Syntax: /msg $BOT$ maxusers
MODE 1 ****** MODE COMMAND ******
MODE 2 Makes the bot change a channel's modes
MODE 3 Syntax: /msg $BOT$ mode <#channel> <mode string>
MODE 4 <#channel> - the channel to change the mode in
MODE 5 <mode string> - the string that contains the mode
MODERATE 1 ****** MODERATE COMMAND ******
MODERATE 2 Moderates a channel
MODERATE 3 Syntax: /msg $BOT$ moderate <#channel>
MODERATE 4 <#channel> - the channel to moderate
MODUSER 1 ****** MODUSER COMMAND ******
MODUSER 2 Modify an existing bot user
MODUSER 3 Syntax: /msg $BOT$ moduser <username> [-ah new host] [-dh host] [-s server] [-p password] [-gl on|off]
MODUSER 4 [-op on|off] [-ua] [-uf flags] [-e email] [-mt m|n]
MODUSER 5 <username> - username to modify
MODUSER 6 [-ah host] - adds a new host for the user
MODUSER 7 [-dh host] - removes a host for a user
MODUSER 8 [-s server] - associate the user with a server
MODUSER 9 [-p password] - changes the user's password
MODUSER 10 [-gl on|off] - toggles whether the logs will be messaged to the user
MODUSER 11 [-op on|off] - toggles if a user must be oper'd up to use the needop commands
MODUSER 12 [-ua] - resets the user access acording to his flags
MODUSER 13 [-uf flags] - updates the oper flags to new one (OPER|ADMIN|SMT|CODER)
MODUSER 14 [-e email] - updates the user's email
MODUSER 15 [-mt m|n] - change the way the bot communicates to the user (m=message,n=notice)
MODUSER 16 [-glag on|off] - toggles whether the server lag reports will be messaged to the user
NEWPASS 1 ****** NEWPASS COMMAND ******
NEWPASS 2 Changes your password for the bot
NEWPASS 3 Syntax: /msg $BOT$ newpass <newpass>
NOMODE 1 ****** NOMODE COMMAND ******
NOMODE 2 Managed the nomode list
NOMODE 3 Syntax: /msg $BOT$ nomode <#channel> <reason>
NOMODE 4 <#channel> - channel to ban modes from
NOMODE 5 <reason> - reason to give when someone tries
OP 1 ****** OP COMMAND ******
OP 2 Op users on a specific channel
OP 3 Syntax: /msg $BOT$ op <#channel> <nick1> [nick2 nickN...]
OP 4 <#channel> - channel to op the user(s) on
OP 5 <nick1 nick2...> - users to op
REMCOMMAND 1 ****** DELCOMMAND COMMAND ******
REMCOMMAND 2 Removes an oper's access to a certain command
REMCOMMAND 3 Syntax: /msg $BOT$ remcommand <command> <username>
REMCOMMAND 4 <command> - the command to remove access to
REMCOMMAND 5 <username> - the username of the oper you want to remove the command from
REMCOMMAND 6 CODERS only: you can use /msg $BOT$ remcommand <-allopers|-alladmins|-allsmts|-allcoders> <command>
REMGCHAN 1 ****** REMGCHAN COMMAND ******
REMGCHAN 2 Removes a gchan badchannel gline
REMGCHAN 3 Syntax: /msg $BOT$ remgchan <#channel>
REMGCHAN 4 <#channel> - channel to remove from badchannel gline list
REMGLINE 1 ****** REMGLINE COMMAND ******
REMGLINE 2 Removes a gline on a user@host
REMGLINE 3 Syntax: /msg $BOT$ remgline <user@host>
REMGLINE 4 <user@host> - the host to remove the gline for
REMIGNORE 1 ****** REMIGNORE COMMAND ******
REMIGNORE 2 Removes a host from the bot's ignore list
REMIGNORE 3 Syntax: /msg $BOT$ remignore <host>
REMIGNORE 4 <host> - the host to remove from the ignore list
REMOPERCHAN 1 ****** REMOPERCHAN COMMAND ******
REMOPERCHAN 2 Unmarks a channel as ircop only
REMOPERCHAN 3 Syntax: /msg $BOT$ remoperchan <#channel>
REMOPERCHAN 4 <#channel> - the channel you want to unmark as operchan
REMSERVER 1 ****** REMSERVER COMMAND ******
REMSERVER 2 Removes a server from the bot's database
REMSERVER 3 Syntax: /msg $BOT$ remserver <server name>
REMSERVER 4 NOTE: use with caution!
REMSGLINE 1 ****** REMSGLINE COMMAND ******
REMSGLINE 2 Removes an SGLINE from the network
REMSGLINE 3 Syntax: /msg $BOT$ remsgline <user@host>
REMSGLINE 4 <user@host> - the user@host to remove from the sgline list
REMUSER 1 ****** REMOVEOPER COMMAND ******
REMUSER 2 Removes an oper from the bot's access list
REMUSER 3 Syntax: /msg $BOT$ remuser <username>
REMUSER 4 <username> - username of the oper you want to remove
REOP 1 ****** REOP COMMAND ******
REOP 2 Removes all channel ops from a channel and ops the specified nick
REOP 3 Syntax: /msg $BOT$ reop <#channel> <nick>
REOP 4 <#channel> - channel to perform reop in
REOP 5 <nick> - nick to be opped once channel is deopped
SAY 1 ****** SAY COMMAND ******
SAY 2 Force the bot (or server) to talk in a channel or to a nick
SAY 3 Syntax: /msg $BOT$ say <-s|-b> <#channel|nick> <message>
SAY 4 <-s> - Message will originate from the server
SAY 5 <-b> - Message will originate from the bot ($BOT$)
SAY 6 <#channel|nick> - the channel or nick to receive the message
SAY 7 <message> - the message to send
SCAN 1 ****** SCAN COMMAND ******
SCAN 2 Scans the network for users matching the required criteria
SCAN 3 Syntax: /msg $BOT$ scan <-fh user@host | -h user@host> [-v] [-i]
SCAN 4 Syntax: /msg $BOT$ scan <-n realname> [-v] [-i]
SCAN 5 <-h user@host> - match user@host/host/IP mask (supports CIDR and wildcards)
SCAN 6 <-fh user@host> - match user@host (masked host only) (supports wildcards)
SCAN 7 <-n realname> - match the specified realname (supports wildcards)
SCAN 8 [-v] - display the first 15 matching users (rather than just a count)
SCAN 9 [-i] - perform an ident report (listing number of unique idents found within the match)
SCANGLINE 1 ****** SCANGLINE COMMAND ******
SCANGLINE 2 Scans the gline list for a gline matching a certain host
SCANGLINE 3 Syntax: /msg $BOT$ scangline <host mask>
SCANGLINE 4 <host mask> - the host mask to lookup
SCHANGLINE 1 ****** SCHANGLINE COMMAND ******
SCHANGLINE 2 Glines all users on the given channel
SCHANGLINE 3 Syntax: /msg $BOT$ schangline [-u] <#channel> [duration] <reason>
SCHANGLINE 4 <#channel> - the channel name to gline
SCHANGLINE 5 [duration] - Duration of the gline, may have s,m,h,d for secs,mins,hours,days
SCHANGLINE 6 <reason> - reason for the gline
SCHANGLINE 7 [-u] - only glines the unidented clients found on the channel with ~*@IP glines
SGLINE 1 ****** SGLINE COMMAND ******
SGLINE 2 gline a user@host with relaxed restrictions
SGLINE 3 Syntax: /msg $BOT$ sgline <user@host> [duration] <reason>
SGLINE 4 <user@host> - the user@host to gline from the network
SGLINE 5 [duration] - duration of the gline, supports s,m,h,d for secs,mins,hours,days
SGLINE 6 <reason> - reason for the gline
SHELLS 1 ****** SHELLS COMMAND ******
SHELLS 2 Add/remove/modify shells limits/exceptions
SHELLS 3 Syntax: /msg $BOT$ SHELLS <addcompany|addnetblock|delcompany|delnetblock|list|chlimit|chname|clearall> <Shell company|Netblock> <max connections>
SHELLS 4 <Shell company>: The name of the shell company
SHELLS 5 <Netblock>: CIDR netblock
SHELLS 6 <max connections>: The number of connections allowed before gline
SHUTDOWN 1 ****** SHUTDOWN COMMAND ******
SHUTDOWN 2 Shutdown the service and exit
SHUTDOWN 3 Syntax: /msg $BOT$ shutdown <reason>
SHUTDOWN 4 <reason> - the reason to use in the /squit message of the server
STATUS 1 ****** STATUS COMMAND ******
STATUS 2 Show all sorts of debug and status information about the bot and server
STATUS 3 Syntax: /msg $BOT$ status
SUSPEND 1 ****** SUSPEND COMMAND ******
SUSPEND 2 Suspends an oper from the bot for a certain amount of time
SUSPEND 3 Syntax: /msg $BOT$ suspend <username> <duration> [-l level] <reason>
SUSPEND 4 <username> - username to suspend
SUSPEND 5 <duration> - the duration of the suspend (supports s,m,h,d for secs,mins,hours,days)
SUSPEND 6 [-l level] - level at which the user is suspended (required minimum to unsuspend)
SUSPEND 7 <reason> - reason for suspension
TRANSLATE 1 ****** TRANSLATE COMMAND ******
TRANSLATE 2 Translates a numeric into a nick
TRANSLATE 3 Syntax: /msg $BOT$ translate <numeric>
TRANSLATE 4 <numeric> - the numeric you want to translate
UNJUPE 1 ****** UNJUPE COMMAND ******
UNJUPE 2 Removes a server jupe previously set by the jupe command
UNJUPE 3 Syntax: /msg $BOT$ unjupe <server>
UNJUPE 4 <server> - server name to unjupe
UNMODERATE 1 ****** UNMODERATE COMMAND ******
UNMODERATE 2 UnModerates a channel previously moderated with 'moderate'
UNMODERATE 3 Syntax: /msg $BOT$ unmoderate <#channel>
UNMODERATE 4 <#channel> - the channel to stop moderating
UNSUSPEND 1 ****** UNSUSPEND COMMAND ******
UNSUSPEND 2 UNSuspend an oper previously suspended
UNSUSPEND 3 Syntax: /msg $BOT$ unsuspend <username>
UNSUSPEND 4 <username> - username to unsuspend
USERINFO 1 ****** USERINFO COMMAND ******
USERINFO 2 Shows information about all the opers that their server/handle match the supplied mask
USERINFO 3 Syntax: /msg $BOT$ userinfo <server|username> [-cl]
USERINFO 4 <server|username> - the server or username to lookup (supports wildcards)
USERINFO 5 [-cl] - If this is specified, the command will also list all commands available to each user matched
WHOIS 1 ****** WHOIS COMMAND ******
WHOIS 2 Gives information about a user on the network
WHOIS 3 Syntax: /msg $BOT$ whois <nick>
WHOIS 4 <nick> - the person you want to get info about
+17
View File
@@ -0,0 +1,17 @@
CREATE TABLE ShellCompanies (
id SERIAL,
name VARCHAR(200) UNIQUE NOT NULL,
active int4 NOT NULL DEFAULT 1,
addedby VARCHAR(200) NOT NULL,
addedon int4 NOT NULL,
lastmodby VARCHAR(200) NOT NULL,
lastmodon int4 NOT NULL,
maxlimit int4 NOT NULL
);
CREATE TABLE ShellNetblocks (
companyid int4 NOT NULL,
cidr VARCHAR(20) NOT NULL,
addedby VARCHAR(200) NOT NULL,
addedon int4 NOT NULL
);
+164
View File
@@ -0,0 +1,164 @@
-- "$Id: ccontrol.sql,v 1.34 2009/07/25 18:12:33 hidden1 Exp $"
-- 2009-01-16 : Spike
-- Merged ShellCompanies and ShellNetblocks tables in.
-- 2002-25-02 : |MrBean|
-- Added the Misc table
-- 2001-10-14 : nighty
-- corrected fieldname typo in "suspendReason" -> "suspend_reason"
-- 2001-13-02 : |MrBean|
-- Added level patch for ccontrol module
-- 2001-22-02 : |MrBean|
-- Added help table for a new help system being developed
-- 2001-13-03 : |MrBean|
-- Added Glines table
-- 2001-30-04 : |MrBean|
-- Added servers table
CREATE TABLE opers (
user_id SERIAL,
user_name TEXT NOT NULL UNIQUE,
password VARCHAR (40) NOT NULL,
access INT4 NOT NULL DEFAULT '0',
saccess INT4 NOT NULL DEFAULT '0',
-- For a full list of access mask see CControlCommands.h
server VARCHAR (128) NOT NULL DEFAULT 'undernet.org', -- the server the oper is assosiated to
flags INT4 NOT NULL DEFAULT '0',
isSuspended BOOLEAN NOT NULL DEFAULT 'n',
suspend_expires INT4,
suspend_level INT4,
suspended_by VARCHAR(128),
suspend_Reason VARCHAR(256),
isUHS BOOLEAN NOT NULL DEFAULT 'n',
isOPER BOOLEAN NOT NULL DEFAULT 'n',
isADMIN BOOLEAN NOT NULL DEFAULT 'n',
isSMT BOOLEAN NOT NULL DEFAULT 'n',
isCODER BOOLEAN NOT NULL DEFAULT 'n',
getLOGS BOOLEAN NOT NULL DEFAULT 'n',
GetLAG BOOLEAN NOT NULL DEFAULT 'n',
needOP BOOLEAN NOT NULL DEFAULT 'n',
email VARCHAR(128),
last_updated_by VARCHAR (128), -- nick!user@host
last_updated INT4 NOT NULL,
LastPassChangeTS INT4 NOT NULL DEFAULT '0',
notice BOOLEAN NOT NULL DEFAULT 't',
is_deleted BOOLEAN NOT NULL DEFAULT 'n',
PRIMARY KEY( user_id )
);
CREATE TABLE hosts (
user_id INT4 NOT NULL,
host VARCHAR(128) NOT NULL
);
CREATE TABLE help (
command VARCHAR(40) NOT NULL,
subcommand VARCHAR(40),
line INT4 NOT NULL DEFAULT '1',
help VARCHAR(255)
);
CREATE TABLE glines (
Id SERIAL,
Host VARCHAR(128) UNIQUE NOT NULL,
AddedBy VARCHAR(128) NOT NULL,
AddedOn INT4 NOT NULL,
ExpiresAt INT4 NOT NULL,
LastUpdated INT4 NOT NULL DEFAULT date_part('epoch', CURRENT_TIMESTAMP)::int,
Reason VARCHAR(255)
);
CREATE TABLE servers (
Name VARCHAR(100) NOT NULL,
LastUplink VARCHAR(100),
LastConnected INT4 NOT NULL DEFAULT '0',
SplitedOn INT4 NOT NULL DEFAULT '0',
LastNumeric VARCHAR(4),
SplitReason VARCHAR(512),
Version VARCHAR(256),
AddedOn INT4 NOT NULL,
LastUpdated INT4 NOT NULL,
ReportMissing BOOLEAN NOT NULL DEFAULT 't'
);
CREATE TABLE comlog (
ts INT4 NOT NULL,
oper text,
command VARCHAR(512)
);
CREATE TABLE opernews (
MessageId SERIAL,
MessageFlags INT4 NOT NULL DEFAULT '0',
PostTime INT4 NOT NULL,
PostedBy VARCHAR(128) NOT NULL,
Message VARCHAR(512) NOT NULL,
ExpiresOn INT4
);
CREATE TABLE exceptions (
Host VARCHAR(128) NOT NULL,
Connections INT4 NOT NULL,
AddedBy VARCHAR(128) NOT NULL,
AddedOn INT4 NOT NULL DEFAULT date_part('epoch', CURRENT_TIMESTAMP)::int,
Reason VARCHAR(450)
);
CREATE TABLE commands (
RealName VARCHAR(128) NOT NULL UNIQUE,
Name VARCHAR(128) NOT NULL UNIQUE,
Flags INT4 NOT NULL,
IsDisabled BOOLEAN NOT NULL DEFAULT 'n',
NeedOp BOOLEAN NOT NULL DEFAULT 'n',
NoLog BOOLEAN NOT NULL DEFAULT 'n',
MinLevel INT4 NOT NULL DEFAULT '1',
SAccess BOOLEAN NOT NULL DEFAULT 'n'
);
CREATE TABLE notes (
user_id INT4 NOT NULL REFERENCES opers (user_id),
sentby TEXT NOT NULL,
postedOn INT4 NOT NULL,
IsNew BOOLEAN NOT NULL DEFAULT 'n',
note VARCHAR (512)
);
CREATE TABLE Misc (
VarName VARCHAR(30) NOT NULL,
Value1 INT4,
Value2 INT4,
Value3 INT4,
Value4 VARCHAR(40),
Value5 VARCHAR(128)
);
CREATE TABLE BadChannels (
Name VARCHAR(400) NOT NULL,
Reason VARCHAR(512) NOT NULL,
AddedBy VARCHAR(200) NOT NULL
);
CREATE TABLE ShellCompanies (
id SERIAL,
name VARCHAR(200) UNIQUE NOT NULL,
active int4 NOT NULL DEFAULT 1,
addedby VARCHAR(200) NOT NULL,
addedon int4 NOT NULL,
lastmodby VARCHAR(200) NOT NULL,
lastmodon int4 NOT NULL,
maxlimit int4 NOT NULL
);
CREATE TABLE ShellNetblocks (
companyid int4 NOT NULL,
cidr VARCHAR(20) NOT NULL,
addedby VARCHAR(200) NOT NULL,
addedon int4 NOT NULL
);
+128
View File
@@ -0,0 +1,128 @@
-- "$Id: ccontrol.update.sql,v 1.28 2009/07/25 18:12:33 hidden1 Exp $"
-- ccontrol database changes update
-- this file will add the new features to an old database
-- this script will only update the opers who doesnt have getlogs enabled
-- because of misfunctionality of postgresql
-- Add missing columns
-- ALTER TABLE opers ADD isSuspended BOOLEAN NOT NULL DEFAULT 'n';
-- ALTER TABLE opers ADD suspend_Reason VARCHAR(256);
-- ALTER TABLE opers ADD email VARCHAR(128);
-- ALTER TABLE opers ADD isUHS BOOLEAN NOT NULL DEFAULT 'n';
-- ALTER TABLE opers ADD isOPER BOOLEAN NOT NULL DEFAULT 'n';
-- ALTER TABLE opers ADD isADMIN BOOLEAN NOT NULL DEFAULT 'n';
-- ALTER TABLE opers ADD isSMT BOOLEAN NOT NULL DEFAULT 'n';
-- ALTER TABLE opers ADD isCODER BOOLEAN NOT NULL DEFAULT 'n';
-- ALTER TABLE opers ADD getLOGS BOOLEAN NOT NULL DEFAULT 'n';
-- ALTER TABLE opers ADD needOP BOOLEAN NOT NULL DEFAULT 'n';
-- ALTER TABLE opers ADD saccess INT4 NOT NULL DEFAULT '0';
-- Update all the other opers to the new settings
-- UPDATE opers set isOPER = 't' where flags = 2;
-- UPDATE opers set isADMIN = 't' where flags = 4;
-- UPDATE opers set isSMT = 't' where flags = 8;
-- UPDATE opers set isCODER = 't' where flags = 32;
-- Create the commands table
-- CREATE TABLE commands (
-- RealName VARCHAR(128) NOT NULL UNIQUE,
-- Name VARCHAR(128) NOT NULL UNIQUE,
-- Flags INT4 NOT NULL,
-- IsDisabled BOOLEAN NOT NULL DEFAULT 'n',
-- NeedOp BOOLEAN NOT NULL DEFAULT 'n',
-- NoLog BOOLEAN NOT NULL DEFAULT 'n',
-- MinLevel INT4 NOT NULL DEFAULT '1'
-- SAccess BOOLEAN NOT NULL DEFAULT 'n'
-- );
-- For those who already have the commands table
--ALTER TABLE commands add SAccess BOOLEAN NOT NULL DEFAULT 'n';
-- Add the notes table
--CREATE TABLE notes (
-- user_id INT4 NOT NULL REFERENCES opers (user_id),
-- sentby TEXT NOT NULL,
-- postedOn INT4 NOT NULL,
-- IsNew BOOLEAN NOT NULL DEFAULT 'n',
-- note VARCHAR (512)
-- );
-- ALTER TABLE opers add suspend_level INT4 NOT NULL DEFAULT '0';
-- ALTER TABLE opers rename suspendreason to suspend_Reason;
-- ALTER TABLE servers add SplitReason VARCHAR(512);
-- 28/12/01 - Add some missing feilds to the servers table
-- alter TABLE servers add Version VARCHAR(256);
-- alter TABLE servers add AddedOn INT4 NOT NULL;
-- alter TABLE servers add LastUpdated INT4 NOT NULL;
-- 30/12/01 - Add notice column to the opers table
-- alter TABLE opers add Notice BOOLEAN NOT NULL DEFAULT 't';
-- update opers set notice = 't';
-- 02/01/02 - update all opers so that they'll have access for scan
-- update opers set saccess = (saccess | 65536);
-- 25/01/02 - update all opers who had access to LEARNNET to the new flags
-- update opers set saccess = (saccess | 131072) where (saccess & 1)=1;
-- 25/02/02 - Add the Misc table
-- CREATE TABLE Misc (
-- VarName VARCHAR(30) NOT NULL,
-- Value1 INT4,
-- Value2 INT4,
-- Value3 INT4,
-- Value4 VARCHAR(40),
-- Value5 VARCHAR(128)
-- );
-- 14/03/02 Add MaxUsers command for opers
--update opers set saccess = (saccess | 262144);
-- 20/03/02 Add LASTCOM command for opers
-- update opers set saccess = (saccess | 8);
-- 16/05/02 Add the BadChannels table
-- CREATE TABLE BadChannels (
-- Name VARCHAR(400) NOT NULL,
-- Reason VARCHAR(512) NOT NULL,
-- AddedBy VARCHAR(200) NOT NULL
-- );
-- update opers set saccess = (saccess | 2097152) where isCODER = 't';
-- 27/08/02 Add REOP command to opers
-- update opers set saccess = (saccess | 4194304);
-- 16/12/02 Added lastupdated to glines
-- alter table glines add LastUpdated INT4 NOT NULL DEFAULT date_part('epoch', CURRENT_TIMESTAMP)::int;
-- 28/04/02 Add reason to the exceptions table
-- alter table exceptions add Reason VARCHAR(450);
-- 13/03/04 Add is deleted fields
-- alter table opers add is_deleted BOOLEAN NOT NULL DEFAULT 'n';
-- 25/03/04 Add ReportMissing to servers
-- alter table servers add ReportMissing boolean not null default 't';
-- 04/06/04 Add UNJUPE command to the opers
-- update opers set saccess = (saccess | 33554432);
-- 05/06/04 Move MODUSER to the opers
-- update opers set access = (access | 2097152);
-- 2009/07/24 Add GETLAG and LastPassChangeTS to opers
alter TABLE opers add LastPassChangeTS INT4 NOT NULL DEFAULT '0';
alter TABLE opers add GetLAG BOOLEAN NOT NULL DEFAULT 'n';
+1
View File
@@ -0,0 +1 @@
.arch-ids
+1
View File
@@ -0,0 +1 @@
.arch-ids
+1
View File
@@ -0,0 +1 @@
.arch-ids
+76
View File
@@ -0,0 +1,76 @@
#!/usr/bin/env python
#
# Script to check GNUWorld's mod.cservice translations for mismatched
# variable arguments
# (C) 2001 Alex Badea <vampire@go.ro>
#
# Change this to suit your system
gnuworld_home = "../"
# English language ID (or, any language ID that is known to have
# valid translated strings)
english_id = 1
# Regular expression (don't ask me how I got to it)
regstr = "(%([0123456789]+\\$)?[-\\+ #'0]*[0123456789]*(\\.[0123456789]+)?([hjlLqtzZ]|hh|ll)?[diouxXfeEgGaAcspnm])"
# ---------------------------------------------------------------------------
import sys
import os
import re
from string import *
trans = {}
def read_language_table(fname):
print "* Reading translations from %s" % fname
f = open(fname, "r")
for line in f.readlines():
line = strip(line)
if len(line) < 2: continue
if line[0][:1] == "--": continue
if line[0][:1] == "\.": continue
toks = split(line, '\t')
if len(toks) < 4: continue
if toks[0] == "DELETE": continue
if toks[0] == "COPY": continue
try:
pk = (int(toks[0]), int(toks[1]))
except ValueError:
print "* Non-numeric IDs, line: %s" % `toks`
continue
if toks[len(toks)-2] != "31337":
print "* Translation ID (%d,%d) doesn't have a '31337' timestamp" % pk
if toks[len(toks)-1] != "0":
print "* Translation ID (%d,%d) doesn't have a '0' deleted flag" % pk
if trans.has_key(pk):
print "* Duplicate translation ID (%d,%d) Text: '%s' conflicts with '%s'" % (pk[0], pk[1], toks[2], trans[toks[1]])
trans[pk] = toks[2]
f.close()
print "* Read %d translations" % len(trans)
read_language_table(os.path.join(gnuworld_home, "doc", "language_table.sql"))
r = re.compile(regstr)
print "* Checking varargs..."
for (lang, tr) in trans.keys():
if lang == english_id: continue
ctext = trans[(lang, tr)]
cva_list = r.findall(ctext)
if not len(cva_list):
if count(ctext, '%'): print '* Possible missed vararg:', ctext
etext = trans[(english_id, tr)]
eva_list = r.findall(etext)
if cva_list != eva_list:
print "* Mismatched vararg list, translation ID %d:" % tr
print " %d> %s" % (lang, ctext)
print " %d> %s" % (english_id, etext)
print "* Done"
+127
View File
@@ -0,0 +1,127 @@
#!/usr/bin/env python
#
# Script to check GNUWorld's mod.cservice translations
# (C) 2001 Alex Badea <vampire@go.ro>
#
# Change this to suit your system
gnuworld_home = "../"
# Language ID to check
language_id = "8"
# The maximum distance, in lines, between a bot->Notice and a getResponse
notice_thresh = 1
# ---------------------------------------------------------------------------
import sys
import os
from string import *
responses = {}
resp_used = {}
trans = {}
trans_r = {}
alpha = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_"
def read_language_table(fname):
f = open(fname, "r")
for line in f.readlines():
line = strip(line)
toks = split(line, '\t')
if len(toks) < 4: continue
if toks[0] != language_id: continue
if toks[len(toks)-1] != "31337": continue
if trans.has_key(toks[1]):
print "* Duplicate translation ID (%s) Text: '%s' conflicts with '%s' defined by ID %d" % (toks[1], toks[2], trans[toks[1]], trans_r[toks[2]])
if trans_r.has_key(toks[2]):
print "* Duplicate translation text '%s', ID %s already defined by ID %s" % (toks[2], toks[1], trans_r[toks[2]])
trans[toks[1]] = toks[2]
trans_r[toks[2]] = toks[1]
f.close()
print "* Read %d translations from %s" % (len(trans), fname)
def read_response_table(fname):
f = open(fname, "r")
for line in f.readlines():
line = strip(line)
toks = split(line)
if len(toks) < 2: continue
if toks[0] != "const": continue
if toks[1] != "int": continue
if responses.has_key(toks[2]):
print "* Duplicate response name (%s) ID: %s" % (toks[2], toks[4])
responses[toks[2]] = toks[4][:-1]
resp_used[toks[2]] = 0
f.close()
print "* Read %d responses from %s" % (len(responses), fname)
def parse_file(fname):
f = open(os.path.join(gnuworld_home, "mod.cservice", fname), "r")
line = f.readline()
lineno = 1
last_notice = 0
while line:
# Check the integrity of language:: references
try: start = index(line, "language::")
except ValueError: start = -1
if start >= 0:
start = start + 10
end = start
while (line[end] in alpha) and (end < len(line)):
end = end + 1
id = line[start:end]
numeric = 'UNDEFINED'
text = '[UNASSIGNED]'
if responses.has_key(id):
numeric = responses[id]
if trans.has_key(numeric):
text = trans[numeric]
resp_used[id] = 1
print "%s(%d): language::%s (%s) = '%s'" % (fname, lineno, id, numeric, text)
#print "%-25s (%4d): %-30s (%4s) -> %s" % (fname, lineno, id, numeric, text)
# Check for unlisted translations
try: start = index(line, "Notice")
except ValueError: start = -1
notice_done = 0
if (start >= 0) and (start == 0 or not line[start-1] in alpha):
last_notice = lineno
notice_line = strip(line[:-1])
if line[-2] == ";": notice_done = 1
try: start = index(line, "getResponse")
except ValueError: start = -1
if start >= 0:
last_notice = 0
if last_notice and (lineno > last_notice + notice_thresh or notice_done):
print "* Possible untranslated string in %s(%d): %s" % (fname, last_notice, notice_line)
last_notice = 0
lineno = lineno + 1
line = f.readline()
f.close()
read_language_table(os.path.join(gnuworld_home, "doc", "language_table.sql"))
read_response_table(os.path.join(gnuworld_home, "mod.cservice", "responses.h"))
files = os.listdir(os.path.join(gnuworld_home, "mod.cservice"))
for file in files:
if len(file) < 4: continue
if file[-3:] != ".cc": continue
parse_file(file)
for resp in resp_used.keys():
if not resp_used[resp]:
numeric = 'UNDEFINED'
text = '[UNASSIGNED]'
if responses.has_key(resp):
numeric = responses[resp]
if trans.has_key(numeric):
text = trans[numeric]
print "* Unused response language::%s (%s) = '%s'" % (resp, numeric, text)
print "* Done"
+1
View File
@@ -0,0 +1 @@
.arch-ids
+1
View File
@@ -0,0 +1 @@
.arch-ids
+1
View File
@@ -0,0 +1 @@
.arch-ids
+1
View File
@@ -0,0 +1 @@
.arch-ids
+1
View File
@@ -0,0 +1 @@
.arch-ids
+365
View File
@@ -0,0 +1,365 @@
#!/bin/bash
# You can change the above to the good path to your "bash" binary if needed
#
# $Id: Manager1K.sh,v 1.4 2003/07/14 10:35:44 nighty Exp $
#
# some default script values
DBNAME="cservice"
DBHOST="127.0.0.1"
# default information to put in the db for those .., DO NOT USE a BLANK 'LASTMODIF', use "0".
LASTMODIFBY=`basename $0`
LASTMODIF="now()::abstime::int4"
# I suggest you dont modify stuff below this point unless you know what you are doing ;P
PSQLCMD=""
echo -n "Checking for 'psql' binary... "
if [ -x /usr/local/pgsql/bin/psql ]; then
PSQL="1"
PSQLCMD="/usr/local/pgsql/bin/psql"
else
PSQL="0"
if [ -x `which psql | head -n 1` ]; then
PSQL="1"
PSQLCMD="psql"
else
PSQL="0"
fi
fi
if [ "$PSQL" == "0" ]; then
echo "not found."
echo "--> Stopping..."
echo "--> exit(1)"
exit 1
else
echo "Ok."
fi
echo "***********************************************************************"
echo "* *"
echo "* GNUworld/mod.cservice level 1000 management script *"
echo "* *"
echo "* With this script, you can make an existing user become a level 1000 *"
echo "* or create a new user that will be level 1000. *"
echo "* if you Modify a user already level 1000, he will be turned in 999. *"
echo "* *"
echo "* *"
echo "* Warning: This program stops on any input error. *"
echo "* *"
echo "***********************************************************************"
echo "\$Id: Manager1K.sh,v 1.4 2003/07/14 10:35:44 nighty Exp $"
echo "***********************************************************************"
echo "* Released under the GNU Public License *"
echo "***********************************************************************"
echo -n "<-- Database host/IP ? [$DBHOST] "
read -e NEWDBHOST
if [ "$NEWDBHOST" != "" ]; then
echo "--> Using custom: $NEWDBHOST"
DBHOST="$NEWDBHOST"
else
echo "--> Using default: $DBHOST"
fi
echo -n "<-- Database name ? [$DBNAME] "
read -e NEWDBNAME
if [ "$NEWDBNAME" != "" ]; then
echo "--> Using custom: $NEWDBNAME"
DBNAME="$NEWDBNAME"
else
echo "--> Using default: $DBNAME"
fi
echo -n "<-- (M)odify existing user or (C)reate new user ? [M] "
read -e REP1
if [ "$REP1" == "c" ]; then
REP1="C"
fi
if [ "$REP1" == "m" ]; then
REP1="M"
fi
if [ "$REP1" != "C" ]; then
if [ "$REP1" != "M" ]; then
REP1="M"
fi
fi
FROMC="0"
FORCEUSERNAME=""
if [ "$REP1" == "C" ]; then
echo "--> CREATE"
echo -n "<-- User name ? "
read -e REP2
if [ "$REP2" == "" ]; then
echo "--> ERROR: Invalid User name (blank)"
echo "--> Stopping..."
echo "--> exit(1)"
exit 1
fi
NUMCHARU=`echo -n $REP2 | wc -c`
NOTOKU0=`expr $NUMCHARU \> 12`
NOTOKU1=`expr $NUMCHARU \< 2`
if [ "$NOTOKU0" == "1" ]; then
echo "--> ERROR: Too many chars in username ($NUMCHARU). Valid range: 2 to 12."
echo "--> Stopping..."
echo "--> exit(1)"
exit 1
fi
if [ "$NOTOKU1" == "1" ]; then
echo "--> ERROR: Too few chars in username ($NUMCHARU). Valid range: 2 to 12."
echo "--> Stopping..."
echo "--> exit(1)"
exit 1
fi
FORCEUSERNAME="$REP2"
if `echo -n "SELECT id FROM users WHERE lower(user_name)='$REP2'" | $PSQLCMD -h $DBHOST $DBNAME >/dev/null 2>&1`; then
USRID=`echo -n "SELECT id FROM users WHERE lower(user_name)='$REP2'" | $PSQLCMD -h $DBHOST $DBNAME | head -n 3 | tail -n 1 | awk '{ print $1 }'`
if [ "$USRID" != "(0" ]; then
echo "--> ERROR: Invalid User name (already taken)"
echo "--> Stopping..."
echo "--> exit(1)"
exit 1
fi
else
echo "--> ERROR: Credentials provided for database connection are either invalid or database setup isn't correct."
echo "--> ERROR: Connection to database '$DBNAME' at '$DBHOST' failed."
echo "--> Stopping..."
echo "--> exit(2)"
exit 2
fi
echo -n "<-- E-Mail address ? "
read -e REP2
if [ "$REP2" == "" ]; then
echo "--> ERROR: Invalid E-Mail address (blank)"
echo "--> Stopping..."
echo "--> exit(1)"
exit 1
fi
USRID=`echo -n "SELECT id FROM users WHERE lower(email)='$REP2'" | $PSQLCMD -h $DBHOST $DBNAME | head -n 3 | tail -n 1 | awk '{ print $1 }'`
if [ "$USRID" != "(0" ]; then
echo "--> ERROR: Invalid E-Mail address (already taken)"
echo "--> Stopping..."
echo "--> exit(1)"
exit 1
else
UEMAIL="$REP2"
echo "!!! NOTICE: E-Mail is OK (not in use), but not checked against SYNTAX/NOREG/DOMAINLOCK. Assuming you know what you do ;P"
fi
echo "--> (1) What's your mother's maiden name ?"
echo "--> (2) What's your dog's (or cat's) name ?"
echo "--> (3) What's your father's birth date ?"
echo -n "<-- What verification question (1, 2 or 3) ? [2] "
read -e REP2
REPOK="0"
if [ "$REP2" == "" ]; then
REP2="2"
fi
if [ "$REP2" == "1" ]; then
REPOK="1"
fi
if [ "$REP2" == "2" ]; then
REPOK="1"
fi
if [ "$REP2" == "3" ]; then
REPOK="1"
fi
if [ "$REPOK" == "0" ]; then
echo "--> ERROR: Invalid verification question choice ($REP2)"
echo "--> Stopping..."
echo "--> exit(1)"
exit 1
fi
UQID="$REP2"
echo -n "<-- Answer to the verification question (4 chars minimum) ? "
read -e REP2
if [ "$REP2" == "" ]; then
echo "--> ERROR: Invalid answer (blank)"
echo "--> Stopping..."
echo "--> exit(1)"
exit 1
fi
NUMCHAR=`echo -n $REP2 | wc -c`
NOTOK=`expr $NUMCHAR \< 4`
if [ "$NOTOK" == "1" ]; then
echo "--> ERROR: You need at least 4 chars !"
echo "--> Stopping..."
echo "--> exit(1)"
exit 1
fi
UVA="$REP2"
echo -n "<-- Please specify the user password (no thing will be displayed on screen, 6 chars minimum) : "
read -es PASS1
echo ""
NUMCHARP=`echo -n $PASS1 | wc -c`
NOTOKP=`expr $NUMCHARP \< 6`
if [ "$NOTOKP" == "1" ]; then
echo "--> ERROR: You need at least 6 chars !"
echo "--> Stopping..."
echo "--> exit(1)"
exit 1
fi
echo -n "<-- Please, this password again : "
read -es PASS2
echo ""
if [ "$PASS1" != "$PASS2" ]; then
echo "--> ERROR: Password mismatch"
echo "--> Stopping..."
echo "--> exit(1)"
exit 1
fi
GENSALT=`mcookie | cut -b-8`
ENCPART=`echo -n $GENSALT$PASS1 | md5sum | cut -f1 -d' '`
ENCPASS="$GENSALT$ENCPART"
echo "--> Crypted password : $ENCPASS"
echo "--> ENCODED : [$ENCPART]"
echo "--> SALT : [$GENSALT]"
echo "--> Adding user '$FORCEUSERNAME'..."
DAQRY="INSERT INTO users (user_name,password,email,url,question_id,verificationdata,language_id,public_key,last_updated_by,last_updated,signup_cookie,signup_ip,tz_setting) VALUES ('$FORCEUSERNAME','$ENCPASS','$UEMAIL','',$UQID,'$UVA',1,'','$LASTMODIFBY',now()::abstime::int4,'Added from the console','127.0.0.1','')"
echo "--> DB: `echo -n \"$DAQRY\" | $PSQLCMD -h $DBHOST $DBNAME`"
FROMC="1"
REP1="M"
fi
if [ "$REP1" == "M" ]; then
if [ "$FORCEUSERNAME" == "" ]; then
echo "--> MODIFY"
echo -n "<-- User name ? "
read -e REP2
if [ "$REP2" == "" ]; then
echo "--> ERROR: Invalid User name (blank)"
echo "--> Stopping..."
echo "--> exit(1)"
exit 1
fi
else
REP2="$FORCEUSERNAME"
fi
if `echo -n "SELECT id FROM users WHERE lower(user_name)='$REP2'" | $PSQLCMD -h $DBHOST $DBNAME >/dev/null 2>&1`; then
USRID=`echo -n "SELECT id FROM users WHERE lower(user_name)='$REP2'" | $PSQLCMD -h $DBHOST $DBNAME | head -n 3 | tail -n 1 | awk '{ print $1 }'`
if [ "$USRID" == "(0" ]; then
echo "--> ERROR: Invalid User name (non existant)"
echo "--> Stopping..."
echo "--> exit(1)"
exit 1
fi
else
echo "--> ERROR: Credentials provided for database connection are either invalid or database setup isn't correct."
echo "--> ERROR: Connection to database '$DBNAME' at '$DBHOST' failed."
echo "--> Stopping..."
echo "--> exit(2)"
exit 2
fi
if [ "$FROMC" == "1" ]; then
if [ "$USRID" == "1" ]; then
echo "--> NOTICE: It's the first user inserted.. which means you probably never used 'cservice.addme.sql' on that database ($DBNAME)"
echo "--> NOTICE: We will be running what should be at this moment just like if you ran 'cservice.addme.sql'"
echo "--> NOTICE: You will NOT need to run 'cservice.addme.sql' anymore, so don't run it ;P"
ADDADMCHAN="INSERT into channels (name,flags,channel_ts,registered_ts,last_updated) VALUES ('*',1,now()::abstime::int4,31337,now()::abstime::int4)"
ADDCODERCHAN="INSERT into channels (name,flags,channel_ts,registered_ts,last_updated) VALUES ('#coder-com',1,now()::abstime::int4,31337,now()::abstime::int4)"
ADDCODERACCESS="INSERT into levels (channel_id,user_id,access,added_by,added,last_modif_by,last_modif,last_updated) VALUES (2,1,500,'$LASTMODIFBY',$LASTMODIF,'$LASTMODIFBY',$LASTMODIF,now()::abstime::int4)"
echo "--> Inserting ADMIN (*) channel..."
echo "--> DB: `echo -n \"$ADDADMCHAN\" | $PSQLCMD -h $DBHOST $DBNAME`"
echo "--> Inserting CODER (#coder-com) channel..."
echo "--> DB: `echo -n \"$ADDCODERCHAN\" | $PSQLCMD -h $DBHOST $DBNAME`"
echo "--> Inserting level 500 access for '$FORCEUSERNAME' on '#coder-com'..."
echo "--> DB: `echo -n \"$ADDCODERACCESS\" | $PSQLCMD -h $DBHOST $DBNAME`"
fi
fi
ADMINLVL=`echo -n "SELECT access FROM levels WHERE channel_id=1 AND user_id=$USRID" | $PSQLCMD -h $DBHOST $DBNAME | head -n 3 | tail -n 1 | awk '{ print $1 }'`
echo -n "--> users.id = $USRID current admin level = "
if [ "$ADMINLVL" == "(0" ]; then
echo "0"
else
echo $ADMINLVL
fi
if [ "$ADMINLVL" == "1000" ]; then
echo "--> Modifying ADMIN access from $ADMINLVL to 999..."
DAQRY="UPDATE levels SET access=999,last_modif_by='$LASTMODIFBY',last_modif=$LASTMODIF,last_updated=now()::abstime::int4 WHERE channel_id=1 AND user_id=$USRID AND access=$ADMINLVL"
echo "--> DB: `echo -n \"$DAQRY\" | $PSQLCMD -h $DBHOST $DBNAME`"
else
if [ "$ADMINLVL" == "(0" ]; then
echo "--> Adding ADMIN access at level 1000..."
DAQRY="INSERT INTO levels (channel_id,user_id,access,added_by,added,last_modif_by,last_modif,last_updated) VALUES (1,$USRID,1000,'$LASTMODIFBY',$LASTMODIF,'$LASTMODIFBY',$LASTMODIF,now()::abstime::int4)"
echo "--> DB: `echo -n \"$DAQRY\" | $PSQLCMD -h $DBHOST $DBNAME`"
else
echo "--> Modifying ADMIN access from $ADMINLVL to 1000..."
DAQRY="UPDATE levels SET access=1000,last_modif_by='$LASTMODIFBY',last_modif=$LASTMODIF,last_updated=now()::abstime::int4 WHERE channel_id=1 AND user_id=$USRID AND access=$ADMINLVL"
echo "--> DB: `echo -n \"$DAQRY\" | $PSQLCMD -h $DBHOST $DBNAME`"
fi
fi
fi
echo "--> Job finished !"
echo "--> NOTICE: Remember your CService bot updates his cache on a regular basis"
echo "--> NOTICE: depending on your cservice.conf file this can take a few minutes for the changes/addition to be available on IRC."
echo "--> Stopping..."
echo "--> exit(0)"
exit 0
# EOF
+288
View File
@@ -0,0 +1,288 @@
#!/bin/bash
# You can change the above to the good path to your "bash" binary if needed
#
# $Id: WipeUser.sh,v 1.7 2003/07/14 10:35:44 nighty Exp $
#
# some default script values
DBNAME="cservice"
DBHOST="127.0.0.1"
# I suggest you dont modify stuff below this point unless you know what you are doing ;P
PSQLCMD=""
echo -n "Checking for 'psql' binary... "
if [ -x /usr/local/pgsql/bin/psql ]; then
PSQL="1"
PSQLCMD="/usr/local/pgsql/bin/psql"
else
PSQL="0"
if [ -x `which psql | head -n 1` ]; then
PSQL="1"
PSQLCMD="psql"
else
PSQL="0"
fi
fi
if [ "$PSQL" == "0" ]; then
echo "not found."
echo "--> Stopping..."
echo "--> exit(1)"
exit 1
else
echo "Ok."
fi
echo "***********************************************************************"
echo "* *"
echo "* GNUworld/mod.cservice Username Removal Tool *"
echo "* *"
echo "* With this script, you can totally remove a user's entry in your db *"
echo "* *"
echo "* Warning: This program stops on any input error. *"
echo "* *"
echo "***********************************************************************"
echo "\$Id: WipeUser.sh,v 1.7 2003/07/14 10:35:44 nighty Exp $"
echo "***********************************************************************"
echo "* Released under the GNU Public License *"
echo "***********************************************************************"
echo -n "<-- Database host/IP ? [$DBHOST] "
read -e NEWDBHOST
if [ "$NEWDBHOST" != "" ]; then
echo "--> Using custom: $NEWDBHOST"
DBHOST="$NEWDBHOST"
else
echo "--> Using default: $DBHOST"
fi
echo -n "<-- Database name ? [$DBNAME] "
read -e NEWDBNAME
if [ "$NEWDBNAME" != "" ]; then
echo "--> Using custom: $NEWDBNAME"
DBNAME="$NEWDBNAME"
else
echo "--> Using default: $DBNAME"
fi
echo -n "<-- User name to totally remove ? "
read -e REP2
if [ "$REP2" == "" ]; then
echo "--> ERROR: Invalid User name (blank)"
echo "--> Stopping..."
echo "--> exit(1)"
exit 1
fi
FORCEUSERNAME="$REP2"
if `echo -n "SELECT id FROM users WHERE lower(user_name)='$REP2'" | $PSQLCMD -h $DBHOST $DBNAME >/dev/null 2>&1`; then
USRID=`echo -n "SELECT id FROM users WHERE lower(user_name)='$REP2'" | $PSQLCMD -h $DBHOST $DBNAME | head -n 3 | tail -n 1 | awk '{ print $1 }'`
if [ "$USRID" == "(0" ]; then
echo "--> ERROR: Invalid User name (non existant)"
echo "--> Stopping..."
echo "--> exit(1)"
exit 1
fi
else
echo "--> ERROR: Credentials provided for database connection are either invalid or database setup isn't correct."
echo "--> ERROR: Connection to database '$DBNAME' at '$DBHOST' failed."
echo "--> Stopping..."
echo "--> exit(2)"
exit 2
fi
if [ "$USRID" == "1" ]; then
echo "--> ERROR: Cannot remove master user (ID = 1)"
echo "--> Stopping..."
echo "--> exit(1)"
exit 1
fi
QC001="SELECT COUNT(user_id) FROM userlog WHERE user_id=$USRID"
QC002="SELECT COUNT(user_id) FROM levels WHERE user_id=$USRID"
QC003="SELECT COUNT(user_id) FROM levels WHERE access=500 AND user_id=$USRID"
QC004="SELECT COUNT(user_id) FROM supporters WHERE user_id=$USRID"
QC005="SELECT COUNT(user_id) FROM objections WHERE user_id=$USRID"
QC006="SELECT COUNT(user_id) FROM users_lastseen WHERE user_id=$USRID"
QC007="SELECT COUNT(manager_id) FROM pending WHERE manager_id=$USRID"
QC008="SELECT COUNT(user_id) FROM pending_emailchanges WHERE user_id=$USRID"
QC009="SELECT COUNT(user_id) FROM pending_pwreset WHERE user_id=$USRID"
QC010="SELECT COUNT(user_id) FROM acl WHERE user_id=$USRID"
QC011="SELECT COUNT(manager_id) FROM pending_mgrchange WHERE manager_id=$USRID"
QC012="SELECT COUNT(new_manager_id) FROM pending_mgrchange WHERE new_manager_id=$USRID"
QC013="SELECT COUNT(user_id) FROM mailq WHERE user_id=$USRID"
QC014="SELECT COUNT(user_id) FROM notes WHERE user_id=$USRID or from_user_id=$USRID"
QC015="SELECT COUNT(user_id) FROM fraud_list_data WHERE user_id=$USRID"
QC016="SELECT COUNT(user_id) FROM notices WHERE user_id=$USRID"
echo "--> Counting records..."
CNT01=`echo -n "$QC001" | $PSQLCMD -h $DBHOST $DBNAME | head -n 3 | tail -n 1 | awk '{ print $1 }' | sed -e 's/(//'`
CNT02=`echo -n "$QC002" | $PSQLCMD -h $DBHOST $DBNAME | head -n 3 | tail -n 1 | awk '{ print $1 }' | sed -e 's/(//'`
CNT03=`echo -n "$QC003" | $PSQLCMD -h $DBHOST $DBNAME | head -n 3 | tail -n 1 | awk '{ print $1 }' | sed -e 's/(//'`
CNT04=`echo -n "$QC004" | $PSQLCMD -h $DBHOST $DBNAME | head -n 3 | tail -n 1 | awk '{ print $1 }' | sed -e 's/(//'`
CNT05=`echo -n "$QC005" | $PSQLCMD -h $DBHOST $DBNAME | head -n 3 | tail -n 1 | awk '{ print $1 }' | sed -e 's/(//'`
CNT06=`echo -n "$QC006" | $PSQLCMD -h $DBHOST $DBNAME | head -n 3 | tail -n 1 | awk '{ print $1 }' | sed -e 's/(//'`
CNT07=`echo -n "$QC007" | $PSQLCMD -h $DBHOST $DBNAME | head -n 3 | tail -n 1 | awk '{ print $1 }' | sed -e 's/(//'`
CNT08=`echo -n "$QC008" | $PSQLCMD -h $DBHOST $DBNAME | head -n 3 | tail -n 1 | awk '{ print $1 }' | sed -e 's/(//'`
CNT09=`echo -n "$QC009" | $PSQLCMD -h $DBHOST $DBNAME | head -n 3 | tail -n 1 | awk '{ print $1 }' | sed -e 's/(//'`
CNT10=`echo -n "$QC010" | $PSQLCMD -h $DBHOST $DBNAME | head -n 3 | tail -n 1 | awk '{ print $1 }' | sed -e 's/(//'`
CNT11=`echo -n "$QC011" | $PSQLCMD -h $DBHOST $DBNAME | head -n 3 | tail -n 1 | awk '{ print $1 }' | sed -e 's/(//'`
CNT12=`echo -n "$QC012" | $PSQLCMD -h $DBHOST $DBNAME | head -n 3 | tail -n 1 | awk '{ print $1 }' | sed -e 's/(//'`
CNT13=`echo -n "$QC013" | $PSQLCMD -h $DBHOST $DBNAME | head -n 3 | tail -n 1 | awk '{ print $1 }' | sed -e 's/(//'`
CNT14=`echo -n "$QC014" | $PSQLCMD -h $DBHOST $DBNAME | head -n 3 | tail -n 1 | awk '{ print $1 }' | sed -e 's/(//'`
CNT15=`echo -n "$QC015" | $PSQLCMD -h $DBHOST $DBNAME | head -n 3 | tail -n 1 | awk '{ print $1 }' | sed -e 's/(//'`
CNT16=`echo -n "$QC016" | $PSQLCMD -h $DBHOST $DBNAME | head -n 3 | tail -n 1 | awk '{ print $1 }' | sed -e 's/(//'`
echo "--> The following entries would be removed if confirmed :"
echo "-->"
echo "--> $CNT01 userlog entries"
echo "--> $CNT02 channel accesses ($CNT03 level 500 (channels would be PURGED))"
echo "--> $CNT04 channel support entries"
echo "--> $CNT05 application objections"
echo "--> $CNT06 last_seen entry"
echo "--> $CNT07 channel applications (old and present)"
echo "--> $CNT08 pending email change entries"
echo "--> $CNT09 pending verif q/a reset entries"
echo "--> $CNT10 ACL entry"
echo "--> $CNT11 pending manager changes (user is old manager, channel will be PURGED)"
echo "--> $CNT12 pending manager changes (user is temp manager, channel will be PURGED)"
echo "--> $CNT13 mailq entries"
echo "--> $CNT14 notes sent/received"
echo "--> $CNT15 fraud list entries"
echo "--> $CNT16 notices entries"
echo "--> 1 user entry"
echo "-->"
echo -n "<-- Are you sure you want to totally and definetively remove those entries from your databse [y/N] ? [N] "
read -e YOUSURE
if [ "$YOUSURE" != "y" ]; then
if [ "$YOUSURE" != "Y" ]; then
YOUSURE="N"
else
YOUSURE="Y"
fi
else
YOUSURE="Y"
fi
if [ "$YOUSURE" == "N" ]; then
echo "--> You're such a weenie ;P"
echo "--> Aborting upon user request (nothing was removed)"
echo "--> Stopping..."
echo "--> exit(0)"
exit 0
fi
echo "--> Removing entries..."
QR001="DELETE FROM userlog WHERE user_id=$USRID"
QR002="DELETE FROM levels WHERE user_id=$USRID AND (access!=500 OR channel_id=1)"
QR003="SELECT channel_id FROM levels WHERE access=500 AND user_id=$USRID" # first set of channels to purge
QR004="DELETE FROM supporters WHERE user_id=$USRID"
QR005="DELETE FROM objections WHERE user_id=$USRID"
QR006="DELETE FROM users_lastseen WHERE user_id=$USRID"
QR007="DELETE FROM pending WHERE manager_id=$USRID"
QR008="DELETE FROM pending_emailchanges WHERE user_id=$USRID"
QR009="DELETE FROM pending_pwreset WHERE user_id=$USRID"
QR010="DELETE FROM acl WHERE user_id=$USRID"
QR011="SELECT channel_id FROM pending_mgrchange WHERE manager_id=$USRID" # second set of channels to purge
QR012="DELETE FROM pending_mgrchange WHERE new_manager_id=$USRID"
QR013="DELETE FROM mailq WHERE user_id=$USRID"
QR014="DELETE FROM notes WHERE user_id=$USRID or from_user_id=$USRID"
QR015="DELETE FROM fraud_list_data WHERE user_id=$USRID"
QR016="DELETE FROM notices WHERE user_id=$USRID"
QR099="DELETE FROM users WHERE id=$USRID"
REM01=`echo -n "$QR001" | $PSQLCMD -h $DBHOST $DBNAME`
echo "--> DB: $REM01"
REM02=`echo -n "$QR002" | $PSQLCMD -h $DBHOST $DBNAME`
echo "--> DB: $REM02"
echo -n "$QR003" | $PSQLCMD -h $DBHOST $DBNAME | grep "." | grep -v -- "--" | grep -v "rows" | grep -v "channel_id" | awk '{ print "DELETE FROM levels WHERE channel_id=" $1 }' | $PSQLCMD -h $DBHOST $DBNAME | xargs echo "--> DB:"
echo -n "$QR003" | $PSQLCMD -h $DBHOST $DBNAME | grep "." | grep -v -- "--" | grep -v "rows" | grep -v "channel_id" | awk '{ print "DELETE FROM channels WHERE id=" $1 }' | $PSQLCMD -h $DBHOST $DBNAME | xargs echo "--> DB:"
REM04=`echo -n "$QR004" | $PSQLCMD -h $DBHOST $DBNAME`
echo "--> DB: $REM04"
REM05=`echo -n "$QR005" | $PSQLCMD -h $DBHOST $DBNAME`
echo "--> DB: $REM05"
REM06=`echo -n "$QR006" | $PSQLCMD -h $DBHOST $DBNAME`
echo "--> DB: $REM06"
REM07=`echo -n "$QR007" | $PSQLCMD -h $DBHOST $DBNAME`
echo "--> DB: $REM07"
REM08=`echo -n "$QR008" | $PSQLCMD -h $DBHOST $DBNAME`
echo "--> DB: $REM08"
REM09=`echo -n "$QR009" | $PSQLCMD -h $DBHOST $DBNAME`
echo "--> DB: $REM09"
REM10=`echo -n "$QR010" | $PSQLCMD -h $DBHOST $DBNAME`
echo "--> DB: $REM10"
echo -n "$QR011" | $PSQLCMD -h $DBHOST $DBNAME | grep "." | grep -v -- "--" | grep -v "rows" | grep -v "channel_id" | awk '{ print "DELETE FROM pending_mgrchanges WHERE channel_id=" $1 }' | $PSQLCMD -h $DBHOST $DBNAME | xargs echo "--> DB:"
echo -n "$QR011" | $PSQLCMD -h $DBHOST $DBNAME | grep "." | grep -v -- "--" | grep -v "rows" | grep -v "channel_id" | awk '{ print "DELETE FROM channels WHERE id=" $1 }' | $PSQLCMD -h $DBHOST $DBNAME | xargs echo "--> DB:"
REM12=`echo -n "$QR012" | $PSQLCMD -h $DBHOST $DBNAME`
echo "--> DB: $REM12"
REM13=`echo -n "$QR013" | $PSQLCMD -h $DBHOST $DBNAME`
echo "--> DB: $REM13"
REM14=`echo -n "$QR014" | $PSQLCMD -h $DBHOST $DBNAME`
echo "--> DB: $REM14"
REM15=`echo -n "$QR015" | $PSQLCMD -h $DBHOST $DBNAME`
echo "--> DB: $REM15"
REM16=`echo -n "$QR016" | $PSQLCMD -h $DBHOST $DBNAME`
echo "--> DB: $REM16"
REM99=`echo -n "$QR099" | $PSQLCMD -h $DBHOST $DBNAME`
echo "--> DB: $REM99"
echo "--> Username '$FORCEUSERNAME' has been totally removed."
echo "--> Job finished !"
echo "--> NOTICE: Remember your CService bot updates his cache on a regular basis"
echo "--> NOTICE: depending on your cservice.conf file this can take a few minutes for the changes/addition to be available on IRC."
echo "--> Stopping..."
echo "--> exit(0)"
exit 0
# EOF
+11
View File
@@ -0,0 +1,11 @@
-- This script removes old pending_traffic records to conserve storage space.
-- Select those applications where status is one of the following, and remove
-- the pending_traffic records - they are no longer required for runtime checking.
-- 3 - 'Completed'
-- 4 - 'Cancelled'
-- 9 - 'Rejected'
SELECT channel_id INTO to_die_pending FROM pending WHERE status = 3 OR status = 4 OR status = 9;
BEGIN;
DELETE FROM pending_traffic where channel_id = to_die_pending.channel_id;
DROP TABLE to_die_pending;
END;
+31
View File
@@ -0,0 +1,31 @@
#!/bin/bash
#
# $Id: enc_pass.sh,v 1.5 2003/07/14 10:35:44 nighty Exp $
#
# Just for the fun of it ;)
#
GENSALT=`mcookie | cut -b-8`
if [ "$1" != "" ]; then
NUMCHAR=`echo -n $1 | wc -c`
if [ `expr $NUMCHAR \= 8` == 1 ]; then
echo "*** Using custom SALT : $1"
GENSALT="$1"
else
echo "ERROR: Custom SALT has an invalid number of chars (needs to be 8)"
echo "*** Using SALT : $GENSALT"
fi
else
echo "*** Using SALT : $GENSALT"
fi
echo -n "Cleartext password : "
read -se CTPASS
echo ""
ENCPART=`echo -n $GENSALT$CTPASS | md5sum | cut -f1 -d' '`
echo "----> SALT : $GENSALT"
echo "----> ENCODED : $ENCPART"
echo "----> CRYPT PASS : $GENSALT$ENCPART"
exit 0
+194
View File
@@ -0,0 +1,194 @@
#!/bin/bash
####################################################################################################
#
# "$Id: fixDOS.sh,v 1.7 2003/07/14 10:35:44 nighty Exp $"
#
# fixDOS.sh : a small bash script to convert all .php, .inc etc.. files in your current
# directory from DOS (\r\n) to UNIX (\n) CRLF/LF Format.
#
# Use 'fixDOS.sh --help' for more informations.
#
#
# 2002-01-09 : <nighty@undernet.org>, first release.
#
#
####################################################################################################
if [ "$1" == "--help" ]; then
echo "HELP for '`basename $0`' :"
echo "-"
echo "- Usage '`basename $0` [xxx] [-nobackup]'"
echo "- [xxx] would be another file format you want to fix (e.g. *.xxx)"
echo "- [-nobackup] must be used either alone, or as second parameter,"
echo "- it prevents the program from keeping trace of 'old' files."
echo "- Default will fix following extensions :"
echo "- PHP, INC, HTML, HTM, C, CC, H, PHP3, TXT."
exit 0
fi
#
# Check files
echo -n "Checking files... "
SEDPROGRAM=`which sed | head -n 1 | cut -d\ -f1 `
if [ "$SEDPROGRAM" == "which:" ]; then
echo "(failed, could'nt find 'sed' in the path)"
exit 1
fi
echo "(ok)"
#
# Fix every .php, .inc, and any passer <.xxx> argument
# thus removing ^M's from files (DOS->Unix format)
FILE="0"
echo "Fixing files in `pwd` :"
echo -n "Fixing .PHP files ["
for fichphp in ./*.php; do
if `sed -e 's/\r//g' $fichphp > /tmp/$fichphp-TMP.$$ 2>/dev/null`; then
mv $fichphp $fichphp.bakFD
mv /tmp/$fichphp-TMP.$$ $fichphp
echo -n "."
FILE="1"
else
echo -n "no file"
fi
done
echo "] (ok)"
echo -n "Fixing .INC files ["
for fichinc in ./*.inc; do
if `sed -e 's/\r//g' $fichinc > /tmp/$fichinc-TMP.$$ 2>/dev/null`; then
mv $fichinc $fichinc.bakFD
mv /tmp/$fichinc-TMP.$$ $fichinc
echo -n "."
FILE="1"
else
echo -n "no file"
fi
done
echo "] (ok)"
echo -n "Fixing .HTML files ["
for fichinc in ./*.html; do
if `sed -e 's/\r//g' $fichinc > /tmp/$fichinc-TMP.$$ 2>/dev/null`; then
mv $fichinc $fichinc.bakFD
mv /tmp/$fichinc-TMP.$$ $fichinc
echo -n "."
FILE="1"
else
echo -n "no file"
fi
done
echo "] (ok)"
echo -n "Fixing .HTM files ["
for fichinc in ./*.htm; do
if `sed -e 's/\r//g' $fichinc > /tmp/$fichinc-TMP.$$ 2>/dev/null`; then
mv $fichinc $fichinc.bakFD
mv /tmp/$fichinc-TMP.$$ $fichinc
echo -n "."
FILE="1"
else
echo -n "no file"
fi
done
echo "] (ok)"
echo -n "Fixing .C files ["
for fichinc in ./*.c; do
if `sed -e 's/\r//g' $fichinc > /tmp/$fichinc-TMP.$$ 2>/dev/null`; then
mv $fichinc $fichinc.bakFD
mv /tmp/$fichinc-TMP.$$ $fichinc
echo -n "."
FILE="1"
else
echo -n "no file"
fi
done
echo "] (ok)"
echo -n "Fixing .CC files ["
for fichinc in ./*.cc; do
if `sed -e 's/\r//g' $fichinc > /tmp/$fichinc-TMP.$$ 2>/dev/null`; then
mv $fichinc $fichinc.bakFD
mv /tmp/$fichinc-TMP.$$ $fichinc
echo -n "."
FILE="1"
else
echo -n "no file"
fi
done
echo "] (ok)"
echo -n "Fixing .H files ["
for fichinc in ./*.h; do
if `sed -e 's/\r//g' $fichinc > /tmp/$fichinc-TMP.$$ 2>/dev/null`; then
mv $fichinc $fichinc.bakFD
mv /tmp/$fichinc-TMP.$$ $fichinc
echo -n "."
FILE="1"
else
echo -n "no file"
fi
done
echo "] (ok)"
echo -n "Fixing .PHP3 files ["
for fichinc in ./*.php3; do
if `sed -e 's/\r//g' $fichinc > /tmp/$fichinc-TMP.$$ 2>/dev/null`; then
mv $fichinc $fichinc.bakFD
mv /tmp/$fichinc-TMP.$$ $fichinc
echo -n "."
FILE="1"
else
echo -n "no file"
fi
done
echo "] (ok)"
echo -n "Fixing .TXT files ["
for fichinc in ./*.txt; do
if `sed -e 's/\r//g' $fichinc > /tmp/$fichinc-TMP.$$ 2>/dev/null`; then
mv $fichinc $fichinc.bakFD
mv /tmp/$fichinc-TMP.$$ $fichinc
echo -n "."
FILE="1"
else
echo -n "no file"
fi
done
echo "] (ok)"
if [ "$1" != "-nobackup" ]; then
if [ "$1" != "" ]; then
echo -n "Fixing .$1 files ["
for ficharg in ./*.$1; do
if `sed -e 's/\r//g' $ficharg > /tmp/$ficharg-TMP.$$ 2>/dev/null`; then
mv $ficharg $ficharg.bakFD
mv /tmp/$ficharg-TMP.$$ $ficharg
echo -n "."
FILE="1"
else
echo -n "no file"
fi
done
echo "] (ok)"
fi
if [ "$2" != "-nobackup" ]; then
if [ "$FILE" == "1" ]; then
echo -n "Backing up files in '`pwd`/backup-fixDOS-$$.tar.gz'... "
tar -cOpf backup-fixDOS-$$.tar *.bakFD
gzip -9 backup-fixDOS-$$.tar
rm -f *.bakFD
echo "(ok)"
fi
else
rm -f *.bakFD
fi
else
rm -f *.bakFD
fi
echo "Cleanup finished."
echo "-"
exit 0
+1
View File
@@ -0,0 +1 @@
.arch-ids
+235
View File
@@ -0,0 +1,235 @@
#!/usr/local/pgsql/bin/pgtclsh
# $Id: appjudge,v 1.12 2003/08/29 13:52:33 nighty Exp $
# Author: sengaia@undernet.org, 20010619
# Last modif: nighty@undernet.org, 20030823 (fixed the feature, added more traps, packed a couple of procs, added ability of running the judge remotely)
# This script automates a good part of the channel-registration process, you need
# to set up sensible settings in appjudge-config for it to do you any good though.
# Load configuration
source [file dirname $argv0]/appjudge-config
proc clock_stamp {} {
return [clock format [clock seconds] -format "%Y%m%d %H:%M"]
}
proc log_channel {hDB channel_id state areason acode} {
global AS_REJECTED AS_COMPLETED
# who manager? he manager!
pg_select $hDB "SELECT channel_id,manager_id FROM pending WHERE channel_id=$channel_id" mgr_res { set mgr_id [lindex [array get mgr_res "manager_id"] 1] }
pg_select $hDB "SELECT id,user_name,flags FROM users WHERE id=$mgr_id" mgr_res {
set mgr_name [lindex [array get mgr_res "user_name"] 1]
set mgr_flags [lindex [array get mgr_res "flags"] 1]
set mgr_what "$mgr_name ($mgr_id"
if {[expr $mgr_flags & 8]} { set mgr_what "${mgr_what}, fraud)" } else { set mgr_what "${mgr_what})" }
}
# gather the supporters
set supporter_ids ""
pg_select $hDB "SELECT channel_id,user_id FROM supporters WHERE (channel_id = $channel_id)" sup_res {
lappend supporter_ids [lindex [array get sup_res "user_id"] 1]
}
set sup_list ""
foreach sup_id $supporter_ids {
pg_select $hDB "SELECT id,user_name,flags FROM users where id=$sup_id" user_res {
set user_name [lindex [array get user_res "user_name"] 1]
set user_flags [lindex [array get user_res "flags"] 1]
set user_what "$user_name ($sup_id"
if {[expr $user_flags & 8]} { set user_what "${user_what}, fraud)" } else { set user_what "${user_what})" }
set sup_list "${sup_list}, $user_what"
}
}
set sup_list [string trim $sup_list ", "]
set log_msg "\[The Judge\]: Application ${state}. ${areason} Applicant: ${mgr_what}. Supporters: ${sup_list}."
pg_exec $hDB "INSERT INTO channellog (ts,channelid,event,message,last_updated) VALUES(now()::abstime::int4,$channel_id,$acode,'\[The Judge\]: Application ${state}. ${areason} Applicant: ${mgr_what}. Supporters: ${sup_list}.',now()::abstime::int4)"
}
proc get_channel {hDB channel_id} {
pg_select $hDB "SELECT id,name FROM channels WHERE id=$channel_id" chname { return [lindex [array get chname "name"] 1]}
}
proc reject_app {hDB channel_id reason} {
global AS_REJECTED REVIEWER_ID
puts [format "%s: Rejecting application for channel %s: %s" [clock_stamp] [get_channel $hDB $channel_id] $reason]
log_channel $hDB $channel_id "REJECTED" $reason 13
pg_exec $hDB "UPDATE pending SET status=$AS_REJECTED, last_updated=now()::abstime::int4, reviewed_by_id=$REVIEWER_ID, decision_ts=now()::abstime::int4, decision='Rejected: $reason' WHERE channel_id=$channel_id"
# Need the associated userid
pg_select $hDB "SELECT channel_id,manager_id FROM pending WHERE channel_id=$channel_id" res_ch {
set notify_user [lindex [array get res_ch "manager_id"] 1]
}
}
proc check_comments {hDB channel_id} {
global AS_PENDREVIEW
set check_res 0
# Check for objections
pg_select $hDB "SELECT COUNT(*) AS objcount FROM objections WHERE channel_id=$channel_id" res_obj {
set objcount [lindex [array get res_obj "objcount"] 1]
if {$objcount} {
puts [format "%s: Moving channel %s to status %d (there are %d objections/comments)" [clock_stamp] [get_channel $hDB $channel_id] $AS_PENDREVIEW $objcount]
pg_exec $hDB "UPDATE pending SET status=$AS_PENDREVIEW,last_updated=now()::abstime::int4 WHERE channel_id=$channel_id"
set check_res 1
}
}
# Check wether or not the application was labeled for review
pg_select $hDB "SELECT channel_id,comments FROM pending WHERE channel_id=$channel_id" res_cmt {
set comments [string trim [lindex [array get res_cmt "comments"] 1]]
if {[string match "REVIEW:*" $comments]} {
puts [format "%s: Moving channel %s to status %d (it was labeled for review)" [clock_stamp] [get_channel $hDB $channel_id] $AS_PENDREVIEW]
pg_exec $hDB "UPDATE pending SET status=$AS_PENDREVIEW, last_updated=now()::abstime::int4 WHERE channel_id=$channel_id"
set check_res 1
}
}
return $check_res
}
proc check_fraudulous {hDB chan_id mgr_id} {
global AS_PENDREVIEW
set supporter_ids ""
pg_select $hDB "SELECT channel_id,user_id FROM supporters WHERE (channel_id = $chan_id)" sup_res {
lappend supporter_ids [lindex [array get sup_res "user_id"] 1]
}
# check for fraudulous users
set isfraud 0
foreach sup_id $supporter_ids {
pg_select $hDB "SELECT id,user_name,flags FROM users where id=$sup_id" user_res {
set user_flags [lindex [array get user_res "flags"] 1]
if {[expr $user_flags & 8]} { incr isfraud }
}
}
pg_select $hDB "SELECT id,user_name,flags FROM users where id=$mgr_id" user_res {
set user_flags [lindex [array get user_res "flags"] 1]
if {[expr $user_flags & 8]} { incr isfraud }
}
if {$isfraud > 0} {
# move it to 'Ready for review' if anyone is fraudulous
puts [format "%s: Moving channel %s to status %d (%d fraudulent applicant/supporters found)" [clock_stamp] [get_channel $hDB $chan_id] $AS_PENDREVIEW $isfraud]
pg_exec $hDB "UPDATE pending SET status=$AS_PENDREVIEW,last_updated=now()::abstime::int4 WHERE channel_id=$chan_id"
}
return $isfraud
}
proc check_suspended {hDB chan_id mgr_id} {
global AS_REJECTED
set supporter_ids ""
pg_select $hDB "SELECT channel_id,user_id FROM supporters WHERE (channel_id = $chan_id)" sup_res {
lappend supporter_ids [lindex [array get sup_res "user_id"] 1]
}
# check for suspended applicant/supporter
set issusp 0
foreach sup_id $supporter_ids {
pg_select $hDB "SELECT id,user_name,flags FROM users where id=$sup_id" user_res {
set user_flags [lindex [array get user_res "flags"] 1]
if {[expr $user_flags & 1]} { incr issusp }
}
}
pg_select $hDB "SELECT id,user_name,flags FROM users where id=$mgr_id" user_res {
set user_flags [lindex [array get user_res "flags"] 1]
if {[expr $user_flags & 1]} { incr issusp }
}
if {$issusp > 0} {
# reject the channel if any suspended found !
puts [format "%s: Moving channel %s to status %d (%d suspended applicant/supporters found)" [clock_stamp] [get_channel $hDB $chan_id] $AS_REJECTED $issusp]
reject_app $hDB $chan_id "The applicant and/or one or more of the supporters are suspended."
}
return $issusp
}
# Open the DB
if {$SQL_PASS == ""} {
set hSQL [pg_connect -conninfo "host=$SQL_HOST dbname=$SQL_DB user=$SQL_USER"]
} else {
set hSQL [pg_connect -conninfo "host=$SQL_HOST dbname=$SQL_DB password=$SQL_PASS user=$SQL_USER"]
}
puts [format "%s: The court is now in session." [clock_stamp]]
# Step 0.5: Reject applications that are still in status 0 after x days.
set sup_timeout [expr $DAY * $SUPPORT_DAYS]
pg_select $hSQL "SELECT channel_id,status,check_start_ts FROM pending WHERE (status = $AS_PENDING_SUPPORT) AND (now()::abstime::int4 > (created_ts + $sup_timeout))" sup_expired {
set chan_id [lindex [array get sup_expired "channel_id"] 1]
reject_app $hSQL $chan_id "One or more of the supporters did not confirm their support."
}
# Step 1: reject applications that failed to pass the activity test within the required timeframe
set app_timeout [expr $DAY * $MAX_DAYS]
pg_select $hSQL "SELECT channel_id,status,check_start_ts,unique_join_count FROM pending WHERE (status = $AS_TRAFFIC_CHECK) AND (now()::abstime::int4 > (check_start_ts + $app_timeout))" t_expired {
set chan_id [lindex [array get t_expired "channel_id"] 1]
set joins [lindex [array get t_expired "unique_join_count"] 1]
# Were there less than $MIN_SUPPORTERS?
pg_select $hSQL "SELECT COUNT(*) AS supcount FROM supporters WHERE (channel_id = $chan_id) AND (join_count > 0)" sup_res {
set sup_joins [lindex [array get sup_res "supcount"] 1]
}
if {$sup_joins < $MIN_SUPPORTERS} {
reject_app $hSQL $chan_id "Not enough supporter activity in the channel."
} else {
# Does it pass the unique join check?
if {$joins >= $UNIQUE_JOINS} {
# Yes - Label it for human inspection and pass it on
# get supporter count
pg_select $hSQL "SELECT COUNT(*) AS supcount FROM supporters WHERE channel_id=$chan_id" res_supc { set sup_joins [lindex [array get sup_res "supcount"] 1] }
puts [format "%s: Moving channel %s to status %d (application labeled for human inspection)" [clock_stamp] [get_channel $hSQL $chan_id] $AS_NOTIFICATION]
pg_exec $hSQL "UPDATE pending SET status=$AS_NOTIFICATION,check_start_ts=now()::abstime::int4,comments='REVIEW: Only $sup_joins supporters have been seen.', last_updated=now()::abstime::int4 WHERE channel_id=$chan_id"
} else {
# No - Reject
reject_app $hSQL $chan_id "Not enough activity in the channel."
}
}
}
# Step 2: pass along applications that have passed the activity test
pg_select $hSQL "SELECT channel_id,status FROM pending WHERE (status=$AS_TRAFFIC_CHECK) AND (unique_join_count >= $UNIQUE_JOINS)" t_check {
# check if supporters joined often enough
set chan_id [lindex [array get t_check "channel_id"] 1]
pg_select $hSQL "SELECT COUNT(*) AS supcount FROM supporters WHERE (channel_id = $chan_id) AND (join_count > 0)" sup_res {
set sup_joins [lindex [array get sup_res "supcount"] 1]
}
if {$sup_joins >= $MIN_SUPPORTERS} {
puts [format "%s: Moving channel %s to status %d (traffic check passed)" [clock_stamp] [get_channel $hSQL $chan_id] $AS_NOTIFICATION]
pg_exec $hSQL "UPDATE pending SET status=$AS_NOTIFICATION,check_start_ts=now()::abstime::int4,last_updated=now()::abstime::int4 WHERE channel_id=$chan_id"
}
}
# Step 3: check for end of notify period
set notify_delay [expr $DAY * $NOTIFY_DAYS]
pg_select $hSQL "SELECT channel_id,status,manager_id,reviewed FROM pending WHERE (status = $AS_NOTIFICATION) AND ((check_start_ts + $notify_delay) < now()::abstime::int4)" t_notified {
set chan_id [lindex [array get t_notified "channel_id"] 1]
set mgr_id [lindex [array get t_notified "manager_id"] 1]
set reviewed [lindex [array get t_notified "reviewed"] 1]
# Figure out what to do
if {![check_comments $hSQL $chan_id]} { # NO objection found !, good.
# Has a human being seen this application?
if {$reviewed == "Y"} {
if {![check_suspended $hSQL $chan_id $mgr_id]} {
if {![check_fraudulous $hSQL $chan_id $mgr_id]} {
# Register the channel
log_channel $hSQL $chan_id "ACCEPTED" "All checks passed." 7
puts [format "%s: Moving channel %s to status %d (notify period ended)" [clock_stamp] [get_channel $hSQL $chan_id] $AS_COMPLETED]
pg_exec $hSQL "UPDATE pending SET status=$AS_COMPLETED,reviewed_by_id=$REVIEWER_ID,decision_ts=now()::abstime::int4,decision='Accepted by The Judge', last_updated=now()::abstime::int4 WHERE channel_id=$chan_id"
puts [format "%s: Registering channel %s (all checks passed)" [clock_stamp] [get_channel $hSQL $chan_id]]
pg_exec $hSQL "UPDATE channels SET registered_ts=now()::abstime::int4, last_updated = now()::abstime::int4 WHERE id=$chan_id"
pg_exec $hSQL "INSERT INTO levels (channel_id,user_id,access,added,added_by,last_modif,last_modif_by,last_updated) VALUES($chan_id,$mgr_id,500,now()::abstime::int4,'The Judge',now()::abstime::int4,'The Judge',now()::abstime::int4)"
}
}
} else {
# No, label it for review if no one is suspended on it
if {![check_suspended $hSQL $chan_id $mgr_id]} {
puts [format "%s: Moving channel %s to status %d (it was never reviewed)" [clock_stamp] [get_channel $hSQL $chan_id] $AS_PENDREVIEW]
pg_exec $hSQL "UPDATE pending SET status=$AS_PENDREVIEW,last_updated=now()::abstime::int4 WHERE channel_id=$chan_id"
}
}
} else {
# Objections found, label it for review if no one is suspended on it ;)
if {![check_suspended $hSQL $chan_id $mgr_id]} {
puts [format "%s: Moving channel %s to status %d (it was never reviewed)" [clock_stamp] [get_channel $hSQL $chan_id] $AS_PENDREVIEW]
pg_exec $hSQL "UPDATE pending SET status=$AS_PENDREVIEW,last_updated=now()::abstime::int4 WHERE channel_id=$chan_id"
}
}
}
# Now that wasn't so hard...
pg_disconnect $hSQL
+39
View File
@@ -0,0 +1,39 @@
#
# $Id: appjudge-config,v 1.7 2003/08/23 16:02:25 nighty Exp $
# original code by Sengaia
#
# Database name (duh)
set SQL_DB "cservice"
set SQL_USER "gnuworld"
set SQL_PASS ""
set SQL_HOST "127.0.0.1"
# Number of seconds in a day, I suggest you do not change this ;)
set DAY 86400
# 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
# The Judge's Reviewer ID
set REVIEWER_ID 0
# 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
+3
View File
@@ -0,0 +1,3 @@
15,45 * * * * /usr/local/pgsql/regproc/appjudge >> /usr/local/pgsql/regproc/judge.log
59 23 * * * /usr/local/pgsql/regproc/cycle-judge
+20
View File
@@ -0,0 +1,20 @@
#!/bin/sh
# "$Id: cycle-judge,v 1.6 2004/01/02 01:59:04 nighty Exp $"
# Changes: use gzip when present to compress files, and give users the option to control the behaviour
# "Alexander Maassen" <outsider@key2peace.org>
#
# Fixed cycle-judge so it WORKS!
# "Reed Loden" <reed@reedloden.com>
# Change the setting below to the location where your judge.log resides without the trailing slash
SRCPATH=/usr/local/pgsql/regproc
# Change the setting below if you want the archived logs somewhere else
DSTPATH=/usr/local/pgsql/regproc/logs
if [ -f $SRCPATH/judge.log ]; then
gzip -9 $SRCPATH/judge.log
mv $SRCPATH/judge.log.gz $DSTPATH/judge.log.`date +%Y%m%d`.gz
touch $SRCPATH/judge.log
else
echo "No logs found. Aborting..."
fi
+1
View File
@@ -0,0 +1 @@
.arch-ids
+1
View File
@@ -0,0 +1 @@
.arch-ids
+1
View File
@@ -0,0 +1 @@
.arch-ids
+1
View File
@@ -0,0 +1 @@
.arch-ids
+1
View File
@@ -0,0 +1 @@
.arch-ids
+61
View File
@@ -0,0 +1,61 @@
<HTML>
<!-- CMaster Channel Services Website. -->
<!-- $Id: faq.html,v 1.2 2001/10/22 19:48:00 gte Exp $ -->
<!-- Here is the FAQ Table Template (Until we do this in a database properly ;) -->
<!--
<P>
<TABLE CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR><TD BGCOLOR=#DDDDDD><FONT FACE="Tahoma, Times New Roman" SIZE=2><B>
Q: How the hell does this thing work?!
</B></FONT></TD></TR>
<TR><TD BGCOLOR=#EEEEEE><FONT FACE="Tahoma, Times New Roman" SIZE=2>
dunno
</FONT></TD></TR></TABLE>
<P>
-->
<HEAD>
</HEAD>
<BODY>
<FONT FACE="Tahoma, Times New Roman" SIZE=2>
<FONT SIZE=+2>Frequenty Asked Questions</FONT>
<P>
<TABLE CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR><TD BGCOLOR=#DDDDDD><FONT FACE="Tahoma, Times New Roman" SIZE=2><B>
Q: How do I give myself admin access to X?
</B></FONT></TD></TR>
<TR><TD BGCOLOR=#EEEEEE><FONT FACE="Tahoma, Times New Roman" SIZE=2>
A:<BR>Run the cservice.addme.sql script in the doc/ directory.<BR> Eg:<BR>
psql &ltdatabasename&gt &ltcservice.addme.sql
</FONT></TD></TR></TABLE>
<P>
<TABLE CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR><TD BGCOLOR=#DDDDDD><FONT FACE="Tahoma, Times New Roman" SIZE=2><B>
Q: Whats the full command to start X?
</B></FONT></TD></TR>
<TR><TD BGCOLOR=#EEEEEE><FONT FACE="Tahoma, Times New Roman" SIZE=2>
A:<BR> After installation, the binary is contained in the gnuworld/bin directory.<BR>
If you don't want to see debug output, the best way to run gnuworld is:<P>
./gnuworld -c -f GNUWorld.conf >/dev/null 2>1 &
</FONT></TD></TR></TABLE>
<P>
<TABLE CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR><TD BGCOLOR=#DDDDDD><FONT FACE="Tahoma, Times New Roman" SIZE=2><B>
Q: I get this error: PostgreSQL error message: connectDBStart() -- connect() failed: Connection refused
</B></FONT></TD></TR>
<TR><TD BGCOLOR=#EEEEEE><FONT FACE="Tahoma, Times New Roman" SIZE=2>
A: <BR>
Make sure you are starting the PostgreSQL server with the -i parameter (To listen on TCP sockets).
</FONT></TD></TR></TABLE>
<P>
<TABLE CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR><TD BGCOLOR=#DDDDDD><FONT FACE="Tahoma, Times New Roman" SIZE=2><B>
Q: I get this error: checking for libpq++.h... configure: error: Unable to find PostGreSQL
</B></FONT></TD></TR>
<TR><TD BGCOLOR=#EEEEEE><FONT FACE="Tahoma, Times New Roman" SIZE=2>
A:<BR>
Are you sure you have installed PostgreSQL? It can be downloaded from <A HREF="http://www.postgresql.org">http://www.postgresql.org.</A><BR>
Also, ensure you read the PostgreSQL documentation and add the configuration switch --with-CXX to install the PostgreSQL C++ API.
</FONT></TD></TR></TABLE>
<P>
Last Updated: 22/10/2001. [<A HREF="index.html">Back</A>] [<A HREF="mailto:gte@undernet.org">Webmaster</A>]
</FONT>
</BODY>
</HTML>
+41
View File
@@ -0,0 +1,41 @@
<HTML>
<!-- CMaster Channel Services Website. -->
<!-- $Id: index.html,v 1.3 2001/12/22 22:42:15 gte Exp $ -->
<HEAD>
</HEAD>
<BODY>
<FONT FACE="Tahoma, Times New Roman" SIZE=2>
<FONT SIZE=+2>
CMaster Channel Services
</FONT>
<P>
Welcome to the Homepages of the "CMaster" - The Undernet Channel Services server!<BR><BR>
Development on the service began in October 2000 and was a joint venture between the
<A HREF="http://www.coder-com.undernet.org">Coder Comittee</A>
and <A HREF="http://www.cservice.undernet.org">Channel Service Commitee</A>. It has almost been running a year now, and has developed considerably since the
first version.<P>
The current version is 1.1pl2, available from <A HREF="http://sourceforge.net/cvs/?group_id=6921">CVS</A>.
<P>
<FONT SIZE=+2>Information Available:</FONT><BR>
<UL>
<LI><A HREF="faq.html">Frequently Asked Questions</A></LI>
<LI><A HREF="manual.html">GNUWorld Manual (Contributed by Cti- &ltcti@zurna.org&gt)</A></LI>
<LI><A HREF="install.html">Installation Instructions</A> [<A HREF="http://sourceforge.net/forum/forum.php?forum_id=21470">Help Forum</A>]</LI>
<LI><A HREF="web.html">Web Interface Information</A></LI>
<LI><A HREF="webfaces.html">3rd Party Web Interfaces</A></LI>
<LI><A HREF="mailto:bugs@undernet.org?Subject=Bug Report for CMaster">Report Bugs</A></LI>
<LI><A HREF="future.html">Future Enhancements [<A HREF="http://sourceforge.net/forum/forum.php?forum_id=21469">Forum</A>]</LI>
<LI><A HREF="language.html">Multilingual Support</A></LI>
<LI><A HREF="changelog.html">Changelog</A></LI>
<LI><A HREF="contrib.html">Contributions</A></LI>
</UL>
<P>
Last Updated: 22/12/2001. [<A HREF="mailto:gte@undernet.org">Webmaster</A>]
</FONT>
</BODY>
</HTML>
+21
View File
@@ -0,0 +1,21 @@
<HTML>
<!-- CMaster Channel Services Website. -->
<!-- $Id: install.html,v 1.1 2001/10/20 23:57:51 gte Exp $ -->
<HEAD>
</HEAD>
<BODY>
<FONT FACE="Tahoma, Times New Roman" SIZE=2>
<FONT SIZE=+2>Installation Instructions</FONT>
<P>
The "<A HREF="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/gnuworld/gnuworld/doc/">doc</A>" directory in the
CVS repository/distribution contains a number of documents on installing GNUWorld/CMaster/PostgreSQL. They are
reproduced here for Convenience :)
<P>
Last Updated: 20/10/2001. [<A HREF="index.html">Back</A>] [<A HREF="mailto:gte@undernet.org">Webmaster</A>]
</FONT>
</BODY>
</HTML>
+671
View File
@@ -0,0 +1,671 @@
<html>
<!-- CMaster Channel Services Website. -->
<!-- $Id: manual.html,v 1.3 2001/12/22 22:46:17 gte Exp $ -->
<head>
<title>GNUWorld / CMaster / CControl Manual</title>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#003366" vlink="#003366" alink="#003366">
<p><font face="Geneva, Arial, Helvetica, san-serif" size="+2">GNUWorld / CMaster
/ CControl Manual </font></p>
<p>************************************************************************************************************************<br>
************************************************************************************************************************<br>
<br>
<b>Version : 1.1<br>
Author : Cti- <a href="mailto:cti@zurna.org">Cti@zurna.org</a><br>
Language : English<br>
Document : General info (manual)<br>
Last Update: 22/12/2001<br>
Web Address: http://gnuworld.undernet.org/cmaster/manual.htm</b></p>
<p>UPDATES:</p>
<p>1.1 - Fixed missing sections (2.2, 2.3, 3.1) - Added links for easy use - Rewrite
HTML.<br>
<br>
<br>
************************************************************************************************************************<br>
<br>
This file contains general information about<br>
the manuals. There are four main manuals you can find.<br>
manual.gnuworld : GNUWorld installation guide<br>
manual.ccontrol : ccontrol installation guide (EUworld)<br>
manual.cservice : cservice installation guide (X)<br>
manual.website : Customized Web Interface guide<br>
<br>
************************************************************************************************************************<br>
<br>
These manuals does NOT include problems occured during the compiling of GNUWorld,
I accept that<br>
you compiled and configured GNUWorld correctly. But you can still find a quick
installation guide<br>
inside the manual.gnuworld. For details refer to the README file by GNUWorld
development team.<br>
If you still have some errors visit us at #coder-com on Undernet, if you are
lucky you can find <br>
someone to help you there.<br>
<br>
************************************************************************************************************************<br>
ccontrol.manual includes <br>
************************************************************************************************************************<br>
Short description of ccontrol module<br>
Setting up ccontrol for the first time<br>
Example *.conf file<br>
F.A.Q (not yet)<br>
<br>
<br>
************************************************************************************************************************<br>
cservice.manual includes<br>
************************************************************************************************************************<br>
Short description of cservice module<br>
Setting up cservice for the first time<br>
Example *.conf file<br>
How to add extra level 1000's to DB<br>
F.A.Q<br>
<br>
************************************************************************************************************************<br>
manual.website includes<br>
************************************************************************************************************************<br>
Short description of website<br>
How to install Apache for your box<br>
How to install an PHP interpreter<br>
Config files for apache and php<br>
Explanation on config.inc<br>
F.A.Q (again)<br>
<br>
If you have any questions regarding these fallowing topics please feel free
to mail to <br>
"<a href="mailto:gnuworld-devel@lists.sourceforge.net">gnuworld-devel@lists.sourceforge.net</a>"
and we will insert it as soon as possible.<br>
************************************************************************************************************************<br>
<font size="+2">INDEX </font><br>
************************************************************************************************************************<br>
<font size="+1"><a href="#part1">PART I - MANUAL.GNUWORLD</a></font><br>
<b><a href="#11">Section 1.1 - Obtaining GNUWorld with CVS</a><br>
<a href="#12">Section 1.2 - Building GNUWorld</a><br>
<a href="#13">Section 1.3 - Editing the config file (localhost.conf)</a><br>
<a href="#14">Section 1.4 - Running GNUWorld</a></b><br>
<font size="+1"><a href="#part2">PART II - MANUAL.CSERVICE</a></font><br>
<b><a href="#21">Section 2.1 - Setting up cservice module for the first time</a><br>
<a href="#22">Section 2.2 - Editing cservice.conf file</a><br>
<a href="#23">Section 2.3 - Adding Extra Level 1000 accounts to DB</a></b><br>
<font size="+1"><a href="#part3">PART III - MANUAL.CCONTROL</a></font><br>
<b><a href="#31">Section 3.1 - Setting up ccontrol module for the first time</a><br>
<a href="#32">Section 3.2 - Editing ccontrol.conf file</a></b><br>
<font size="+1"><a href="#part4">PART IV - MANUAL.WEBSITE</a></font><br>
<b><a href="#41">Section 4.1 - Obtaining Apache & PHP interpreter</a><br>
<a href="#42">Section 4.2 - Compiling Apache & PHP interpreter</a><br>
<a href="#43">Section 4.3 - Configuring Apache & PHP interpreter</a><br>
<a href="#43">Section 4.4 - Editing config.inc file</a></b><br>
<font size="+1"><a href="#part5">PART V - PostGreS Short Manual</a></font><br>
<br>
<br>
************************************************************************************************************************<br>
************************************************************************************************************************<br>
************************************************************************************************************************<br>
<br>
<a name="part1"></a>PART I - MANUAL.GNUWORLD<br>
<br>
We assume that you have the fallowing stuff installed<br>
and working properly on your box to run GNUWorld<br>
<br>
- A working PostGreSQL server with right permissions<br>
- An uplink IRC server with the proper U Lines<br>
- Copy of GNUWorld (check section 1.1 to how to get)<br>
- A machine to run GNUWorld<br>
<br>
For the customized web site you also need the<br>
following services working properly<br>
<br>
- Running web server (Recommended Apache)<br>
(get latest apache server relase from <a href="http://www.apache.org">http://www.apache.org</a>)<br>
- PHP interpreter<br>
(get latest relase from <a href="http://www.php.net">http://www.php.net</a>)<br>
************************************************************************************************************************<br>
<a name="11"></a>Section 1.1 * Obtaining GNUWorld and Web site with CVS<br>
************************************************************************************************************************<br>
<br>
1- cvs -d :pserver:anonymous@cvs.gnuworld.sourceforge.net:/cvsroot/gnuworld<br>
login<br>
2- When prompted for a password, hit the return key<br>
3- cvs -z3 -d :pserver:anonymous@cvs.gnuworld.sourceforge.net:/cvsroot/gnuworld<br>
co gnuworld<br>
4- cvs -z3 -d :pserver:anonymous@cvs.gnuworld.sourceforge.net:/cvsroot/gnuworld<br>
co website<br>
(Execute the above commands on a single line in your shell) Line 3 will create<br>
a directory under your current directory named "gnuworld" in which all of<br>
GNUWorld's files will be placed. Line 4 will create a directory under your<br>
current directory named "website" in which all of website files will be<br>
placed.<br>
<br>
If you downloaded the tar gzipped version of GNUWorld use<br>
the fallowing command to unpack the archive as fallows:<br>
<br>
gzip -cd gnuworld.xxx.tar.gz | tar xf -<br>
<br>
where xxx is the version of GNUWorld you have obtained.<br>
<br>
<br>
************************************************************************************************************************<br>
<a name="12"></a>Section 1.2 * Building GNUWorld<br>
************************************************************************************************************************<br>
<br>
To build GNUWorld you need a complier that supports ANSI C++ Standart.<br>
(gmake also recommended).<br>
1- cd gnuworld<br>
<br>
2- ./configure<br>
(if you do not want to load all the modules but a specific one<br>
use the following commands as needed)<br>
<br>
CONFIGURE FOR ONLY THE CSERVICE CLIENT:<br>
./configure --enable-modules=cservice<br>
CONFIGURE FOR ONLY THE CCONTROL CLIENT:<br>
./configure --enable-modules=ccontrol<br>
CONFIGURE BOTH THE CSERVICE & CCONTROL MODULES:<br>
./configure --enable-modules=cservice,ccontrol<br>
<br>
Configure will build the Makefiles that GNUWorld will use to<br>
compile its source.<br>
<br>
3- make<br>
This will build all the libraries and binaries.<br>
<br>
4- make install<br>
To install the binaries and library.<br>
<br>
************************************************************************************************************************<br>
<a name="13"></a>Section 1.3 * Editing the config file<br>
************************************************************************************************************************<br>
<br>
Switch to the /bin directory and edit the localhost.conf<br>
<br>
uplink = 25.202.242.30 # The server we will connect to<br>
port = 5500 # The port we will connect to<br>
password = santa # Our server password in Uplink's C: Line<br>
name = channels.undernet.org # Our server name<br>
description = Channel Service # The description will be seen in /links<br>
numeric = 63 # Our server numeric (must be unique on the network)<br>
maxclients = 50 # maxclients we can run<br>
<br>
<br>
module = libcservice.la (related conf file)<br>
module = libccontrol.la (related conf file)<br>
<br>
Example: <br>
<br>
module = libcservice.la cservice.conf<br>
(This will load the cservice module and looks for cservice.conf file for its
configration. If you have a <br>
differnt name than cservice.conf, like X.conf etc. specify it here like : module
= libcservice.la X.conf )<br>
<br>
Don't touch the rest of the file for fine tuning.<br>
<br>
************************************************************************************************************************<br>
Section 1.4 * Running GNUWorld<br>
************************************************************************************************************************<br>
<br>
Simply type <br>
./gnuworld -f localhost.conf<br>
<br>
EOP ( End of Part :P )<br>
************************************************************************************************************************<br>
************************************************************************************************************************<br>
************************************************************************************************************************<br>
<br>
<br>
<a name="part2"></a>PART II - MANUAL.CSERVICE<br>
CService module is used to maintain channels over the network and keep them
open<br>
<br>
********************************************************************************<br>
<a name="21"></a>Section 2.1 * Setting up cservice for the first time<br>
********************************************************************************<br>
<br>
We assume that pgSQL is running and configured and you have the right permissions
to create and<br>
modify a database.<br>
<br>
<br>
1- Create the database for cservice module<br>
>createdb cservice<br>
<br>
(assume cservice database does not exist)<br>
<br>
2- Install the PL Language<br>
> createlang plpgsql cservice -L /usr/local/pgsql/lib<br>
<br>
3- Switch to gnuworld/doc directory<br>
<br>
4- Load the schema <br>
> psql cservice </p>
<cservice.sql><br>
> psql cservice <languages.sql><br>
> psql cservice <language.table.sql><br>
> psql cservice <cservice.web.sql><br>
<br>
5- Add the administrator account<br>
> psql cservice <cservice.addme.sql><br>
<br>
This will create an account with level 1000 on channel "*"<br>
NOTE: "*" is not a physical channel that you can not /join it.<br>
<br>
6- Connect to the IRC Server and login to your admin account.<br>
<b><br>
Username: Admin<br>
Password: temPass<br>
<br>
Be sure to change your password.</b><br>
<br>
************************************************************************************************************************<br>
<a name="22"></a>Section 2.2 * Example conf file<br>
************************************************************************************************************************<br>
<br>
The default conf file is cservice.conf. You can find it under /bin directory.<br>
<br>
sql_host = 127.0.0.1 # Hostname/IP of PostGreSQL server<br>
sql_port = 5432 # Port of PostGreSQL server<br>
sql_db = Database name<br>
(If you did everything as we told you it have to be cmaster,sql_db = cservice )<br>
<br>
sql_user = gnuworld # sql_user is the username to pass to PostGreSQL<br>
on connection.Usefull if your accoount name is<br>
not the same as your Database username.<br>
<br>
nickname = E42-b # Bot name (X on Undernet)<br>
username = cservice # Bot username (Cservice on Undernet)<br>
hostname = undernet.org # Bot Hostname (undernet.org on Undernet)<br>
userdescription = # Client description For help type: /msg X help<br>
mode = +idk # Usermodes<br>
<br>
relay_channel = #cmaster.info # Channel to relay useful information.<br>
<br>
debug_channel = #cmaster.debug # Channel to relay debug information.<br>
<br>
You can get info about other values in the conf file itself.<br>
<br>
<br>
************************************************************************************************************************<br>
<a name="23"></a>Section 2.3 * Adding Extra level 1000 admin accounts.<br>
************************************************************************************************************************<br>
<br>
Adding extra 1000's has two ways. First one is adding them directly to the database and second one is editing<br>
cservice.addme.sql file and loading it with: psql cservice <cservice.addme.sql><br>
<br>
Its suggested that, add any extra level 1000 accounts before adding any new channels/usernames to database.<br>
<br>
<br>
INSERT into users (user_name,password,language_id,last_updated)<br>
VALUES ('the_user_name','07d976a29bdb3ff42e10c102852151b28097bbad',1,now()::abstime::int4);<br>
<br>
INSERT into levels (channel_id,user_id,access,last_updated)<br>
VALUES (1,the_user_id,1000,now()::abstime::int4);<br>
<br>
* the_user_name should be the username will be added with level 1000<br>
<br>
* the_user_id should be the "current users +1". If you only added the admin<br>
account it should be 2 now. When adding a third person it should be 3<br>
and go on...<br>
<br>
The password of the newuser will be temPass again.<br>
<br>
Change the values in cservice.addme.sql and load it with the command above or switch to<br>
pgsql's directory (default is /usr/local/pgsql/bin) type psql and hit enter.<br>
After that copy and paste the changed values (the ones above)into the shell and hit enter.<br>
<br>
EOP<br>
************************************************************************************************************************<br>
************************************************************************************************************************<br>
************************************************************************************************************************<br>
<br>
<a name="part3"></a>PART III - MANUAL.CCONTROL<br>
<br>
CControl is an IRC Operator Service which is also in use on Undernet now.<br>
This part dedicated to ccontrol :P<br>
<br>
********************************************************************************<br>
<a name="31"></a>Section 3.1 * Setting up ccontrol module for the first time<br>
********************************************************************************<br>
<br>
Follow these steps to setup the database for the ccontrol module. This<br>
file assumes that postgresql is running and configured, and that you have<br>
access to add and modify databases within it.<br>
<br>
1- Create the database if you didn't do it before<br>
> createdb ccontrol<br>
<br>
2- Switch to doc directory <br>
cd doc<br>
<br>
3- Load the schema<br>
> psql ccontrol < ccontrol.sql<br>
> psql ccontrol < ccontrol.help.sql<br>
<br>
4- Add yourself to the bot<br>
> psql ccontrol < ccontrol.addme.sql<br>
<br>
This will add the user Admin with *!*@* hostmask and all the commands enabled.<br>
Handle: Admin password: temPass<br>
(This script should be run once and before any modifications to database)<br>
<br>
Do NOT forget to change your hostmask for your needs after your first login.<br>
You can get more info by: /msg bot help modoper<br>
<br>
********************************************************************************<br>
<a name="32"></a>Section 3.2 * Editing ccontrol.conf file<br>
********************************************************************************<br>
<br>
The default conf file is ccontrol.conf you can find it under /bin directory<br>
<br>
sql_host = 127.0.0.1 # Host/IP of the PostGreSQL server<br>
sql_port = 5432 # Port of SQL server<br>
sql_db = database name (default ccontrol)<br>
<br>
## Bot Info ##<br>
<br>
username = KWorld2 # Bot's username<br>
nickname = KWorld2 # Bot's nickname<br>
hostname = KWorld2.krushnet.org # Bot's hostname<br>
userdescription = KWorld2 # Information seen in /whois<br>
operchanmodes = +isn # IRC Operator channel modes to set<br>
mode = +iodkw # Default Bot modes<br>
operchan = #valhalla # IRC Operator channel<br>
msgchan = #gnuworld.message # Channel where useful info relayed<br>
glength = 3600 # Default gline length (in seconds)<br>
operchanreason = Oper only channel # Default reason for adding an oper chan<br>
abuse_mail = abuse@yournet.org # the email that the report should be emailed to<br>
ccemail = ccontrol@yournet.org # the email that ccontrol will put in the from field of the report<br>
sendmail = /usr/sbin/sendmail # Full path to the sendmail program<br>
mail_report = 0 # set 1 for the bot to mail the report , 0 if you dont want a report to be mailed<br>
gline_interval = 3600 # the interval in which ccontrol should check for expired glines<br>
max_connection = 5 # the maximum connections a host can have before glined<br>
max_GLen = 86400 # the length of the gline the for excessive connection (in seconds)<br>
<br>
<br>
EOP<br>
************************************************************************************************************************<br>
************************************************************************************************************************<br>
************************************************************************************************************************<br>
<br>
<a name="part4"></a>PART IV - MANUAL.GNUWORLD<br>
<br>
Here is the part where everybody is waiting for...<br>
<br>
********************************************************************************<br>
<a name="41"></a>Section 4.1 * Obtaining Apache Web Server & PHP interpreter<br>
********************************************************************************<br>
<br>
You can get the latest relase of apache web server at:<br>
http://httpd:apache.org/distbinaries/linux/<br>
<br>
You can get the latest relase of PHP interpreter at:<br>
http://www.php.net<br>
<br>
<br>
********************************************************************************<br>
<a name="42"></a>Section 4.2 * Compiling Apache Web Server & PHP interpreter<br>
********************************************************************************<br>
<br>
Be sure that Complete Source Codes of both these are in the same directory.<br>
Name of the apache should be something like that: apapche_1.3.x.tar.gz<br>
<br>
1- After downloading the latest version of Apache untar it:<br>
> gunzip -c apache_1.3.x.tar.gz | tar -xf <br>
where x is the version you have just downloaded.<br>
2- Unpack the php-4.0.x.tar.gz file<br>
> gunzip -c php-4.0.x.tar.gz | tar -xf<br>
again x is the version info.<br>
<br>
After these two steps we have two new directories. One for Apache and one for PHP.<br>
Now let's switch to apache and configure it <br>
<br>
3- After you unpack, switch to Apache's directory.<br>
cd apache_1.3.x<br>
<br>
4- Run the configure script:<br>
./configure<br>
<br>
5- Then part apache's directory<br>
cd ..<br>
<br>
It's PHP interpreters turn now... Well performance is important for us so we will<br>
use module installation of PHP. And we will use Static Module where we insert <br>
PHP into Apache. They will work like 1 program :)<br>
<br>
6- Switch to PHP's directory<br>
cd php-4.0.x<br>
7- And configure it:<br>
./configure-with-pgsql-with-apache=../apache_1.3.x-enable-track-vars<br>
!!! IMPORTANT !!!<br>
After "apache=" specify the directory of apache...<br>
8- If you want to use PHP with graphics also you will need GD Library<br>
like we insert apache and pgsql support with "-with" tag we will insert<br>
GD library with "-with-gd"<br>
./configure-with-pgsql-with-gd-with-apache=../apache_1.3.x-enable-track-vars<br>
<br>
9- Make and install it (depends on your box this will take 2-8 minutes)<br>
make<br>
make install<br>
<br>
<br>
After compiling switch back to Apache's directory<br>
<br>
10- cd ../apache_1.3.x<br>
<br>
11- Configure it<br>
./configure-prefix=/www-active-module=src/modules/php4/libphp4.a<br>
<br>
the -prefix=/www paramater tells where to install apache. If you want to install it to /home/httpd<br>
than you have to use -prefix=/home/httpd<br>
<br>
12- make and install again (this time apache)<br>
make<br>
make install<br>
<br>
13- After that copy the php.ini file to /usr/local/lib/ and edit it with a text editor.<br>
cd ../php-4.0.x<br>
cp php.ini-dist /usr/local/lib/php.ini<br>
<br>
14- Now add some little info to apache's conf file (httpd.conf) for PHP.<br>
you can find that file under apache_1.3.x/conf/<br>
<br>
Addtype application/x-httpd-php .php<br>
Addtype application/x-httpd-php .php3<br>
Addtype application/x-httpd-php .php4<br>
<br>
15- Pray to god and start apache<br>
./apactrl start<br>
<br>
16- To check if its running type:<br>
ps -aux | grep 'httpd'<br>
<br>
<br>
<br>
********************************************************************************<br>
<a name="43"></a>Section 4.3 * Configuring Apache & PHP interpreter<br>
********************************************************************************<br>
<br>
This section includes the *must* variables you have to set in apache and php's conf <br>
files before you run them... For more details of conf file of Apache see Section 4.5<br>
<br>
To run apache properly you have to set some variables in httpd.conf. You can find this<br>
file under /conf directory of apache. Simply open httpd.conf with a text editor<br>
<br>
!!!IMPORTANT!!! Edit these variables to suit your needs. Do not copy paste.<br>
<br>
ServerRoot "/www" -- The top directory which server conf files and error files kept.<br>
KeepAlive On -- To allow persistant connectios. On or Off. GNUWorld needs this value on.<br>
ServerAdmin you@yournet -- The Server Administrator's info<br>
Port 80 -- The listening port for standalone servers.<br>
DocumentRoot "/home/root" -- The directory out of which you will serve your documents. <br>
By default, all requests are taken from this directory, <br>
but symbolic links and aliases may be used to point to other locations.<br>
<br>
ServerName "www.your.net" -- Specifies your server's name. In older relases apache won't run if you <br>
do not define this.<br>
<br>
<Directory "/home/root">
<p>-- This should be the same as DocumentRoot. <br>
<br>
*****************************<br>
<br>
in the php.ini file edit these<br>
<br>
[PostgresSQL]<br>
; Allow or prevent persistent links.<br>
pgsql.allow_persistent = On<br>
<br>
[extension_dir]<br>
; Directory in which the loadable extensions (modules) reside.<br>
extension_dir = ./<br>
<br>
<br>
This is the basic stuff for apache and php. If you have more questions come
and ask in #coder-com<br>
But do not forget we are not apache experts but couple of ppl coding for Undernet
on our free<br>
times. <br>
<br>
********************************************************************************<br>
<a name="44"></a>Section 4.4 * Editing config.inc file<br>
********************************************************************************<br>
<br>
Config.inc file is the only file you have to EDIT for your *very own* customized<br>
Web Interface. If you don't have PHP experience don't play with the other files<br>
that you might have screw them up.<br>
<br>
define(LIVE_LOCATION,"/live"); define this to "" if you dont put it in a subdirectory
like '/live' (default) but in '/' for example.<br>
define(IFACE_URL,"http://cservice.undernet.org/live/"); // The GUI main URL
(the one to access it)<br>
define(SERVICE_CHANNEL,"#cservice"); // The CService Official Channel<br>
<br>
/* NOTE: to FORGE reply adresses, user 'nobody' needs a 'Tnobody' line added
in /etc/sendmail.cf (or equiv.) */<br>
define(NETWORK_NAME,"Undernet"); // Define this to your network name... better
to be a "normal" single word ;)<br>
define(BOT_NAME,"X"); // You bot's name, defines some strings in the website
to fit more your configuration.<br>
define(IRC_SERVER,"irc.undernet.org"); // Default server for irc:// option.<br>
define(NETWORK_EMAIL,"cservice@undernet.org"); // the email of your network
(default).<br>
<br>
define(PURGE_EMAIL,"purge@undernet.org"); // the email where channel purge request
form is sent.<br>
define(XAT_EMAIL,"x@undernet.org"); // the email where manager change form is
sent.<br>
<br>
define(FROM_NEWUSER,"cmaster@undernet.org"); // the From: email for a NEWUSER
registration email.<br>
define(FROM_NEWUSER_SUBJECT,"Your Undernet Channel Service Account"); // the
subject of that mail.<br>
<br>
define(FROM_FPASS,"cmaster-recovery@undernet.org"); // the From: email for a
FORGOTTEN PASSWORD email.<br>
define(FROM_FPASS_SUBJECT,"Your Undernet Channel Service Password for "); //
the sujbect of that mail. 'username' is added at this string's end.<br>
<br>
/******************************/<br>
/* LOCAL DATABASE DEFINITIONS */<br>
/******************************/<br>
define(LOCALDB_NAME,"local_db"); // the local database that contains the gnuworld/doc/local_db.sql
information.<br>
define(LOCALDB_USER,"gnuworld"); // the local user that has full access to LOCALDB_NAME.<br>
define(LOCALDB_PASS,""); // the password, use blank if you dont use passwords.<br>
<br>
/*******************************/<br>
/* REMOTE DATABASE DEFINITIONS */<br>
/*******************************/<br>
define(REMOTEDB_NAME,"cservice"); // the remote databasr that contains cservice.sql,
cservice.web.sql information.<br>
define(REMOTEDB_USER,"gnuworld"); // the user that has access remotely to that
db<br>
define(REMOTEDB_PASS,""); // the password, use blank if you dont use passwords.<br>
define(REMOTEDB_HOST,"127.0.0.1"); // define to whatever host/IP of the "remote"
db is.<br>
<br>
/*******************************/<br>
/* LOCAL WEBSITE CONFIGURATION */<br>
/*******************************/<br>
define(HEAD_LOGO,"cservice-head.jpg"); // this points to an existing image in
website/docs/gnuworld/images. 59 pixels max height.<br>
define(HOSTING_LOGO,""); // this image should go in website/docs/gnuworld/images
and be maximum 250*33 pixels.<br>
define(HOSTING_URL,"");<br>
<br>
define(CSERVICE_SITE_URL,"../");<br>
<br>
those options are only used when using multiple mirrors of your CService website<br>
if you dont do mirrors at all, just leave those options as they are, this wont
affect anything.<br>
if you do mirrors, the following options means that if the website is accessed
with "ROUNDROBIN",<br>
it will automatically redirect accesses to "LOCALMIRROR".<br>
<br>
define(LOCALMIRROR,"cservice-live.xx.undernet.org");<br>
define(ROUNDROBIN,"cservice-live.undernet.org");<br>
<br>
<br>
/* IP CHECK OPTIONS */<br>
<br>
define(IPCHK_MAXHITS,3); // Number of failed forgotten_pass/login attempts before
IP_LOCK<br>
define(IPCHK_BANTIME,86400); // Time your IP/username is locked (seconds) when
caught into IPCHK_MAXHITS+ failed attempts.<br>
<br>
define(LREQ_TIME,600); // min time between forgotten password requests to avoid
flooding, set this to 0 to disable.<br>
define(UNETUB_TIME,14400); // 4 hours before being able to create another user
from the same IP. set to 0 to disable.<br>
<br>
<br>
<br>
<b>!!!! DONT FORGET TO REMOVE THE LAST LINE ON THE CONFIG.INC OR IT WILL NOT
WORK... !!!!</b><br>
<br>
<br>
<br>
<br>
For More questions you know what to do !!! Send them to me and I will add them
on the next relase of this help file.<br>
<br>
<br>
EOP<br>
************************************************************************************************************************<br>
************************************************************************************************************************<br>
************************************************************************************************************************<br>
<br>
<a name="part5"></a>PART V - PostGre Short Installation<br>
<br>
This is the file that you can find also in the INSTALL file.<br>
If you have questions please send them to cti@zurna.org<br>
and I will add them to FAQ's when I do it. Cti-<br>
<br>
(You have to switch to Super User -Root- to do these steps)<br>
<br>
./configure<br>
gmake<br>
gmake install<br>
adduser postgres<br>
su - postgres<br>
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data<br>
/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 &<br>
adduser cmaster<br>
<br>
When it asked you "this user can add other users? y/n" Hit no (or yes)<br>
and when it asked "this user can create databases" hit YES<br>
<br>
After that switch to cmaster ( or whatever your username is)<br>
and type /usr/local/pgsql/bin createdb cmaster (or what you want your database
name to be)<br>
<br>
And its ready now !!!!</p>
<p><a href="http://gnuworld.undernet.org/cmaster/index.html">[Go Back]</a> - <a href="mailto:cti@zurna.org">[Maintainer]</a><br>
<br>
<br>
</p>
</body>
</html>
+19
View File
@@ -0,0 +1,19 @@
<HTML>
<!-- CMaster Channel Services Website. -->
<!-- $Id: web.html,v 1.1 2001/10/20 23:57:51 gte Exp $ -->
<HEAD>
</HEAD>
<BODY>
<FONT FACE="Tahoma, Times New Roman" SIZE=2>
<FONT SIZE=+2>Web Interface Information</FONT>
<P>
Coming in the not too distant future.
<P>
Last Updated: 20/10/2001. [<A HREF="index.html">Back</A>] [<A HREF="mailto:gte@undernet.org">Webmaster</A>]
</FONT>
</BODY>
</HTML>
+139
View File
@@ -0,0 +1,139 @@
#!/usr/bin/env python
#
# Script to check GNUWorld's mod.cservice translations
# Episode 2 - Check for inconsistent translation strings
#
# (C) 2001 Alex Badea <vampire@go.ro>
#
# Change this to suit your system
gnuworld_home = "../"
# Language ID to check
language_id = "1"
# ---------------------------------------------------------------------------
import sys
import os
from string import *
responses = {}
resp_used = {}
trans = {}
trans_r = {}
alpha = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_"
def read_language_table(fname):
f = open(fname, "r")
for line in f.readlines():
line = strip(line)
toks = split(line, '\t')
if len(toks) < 4: continue
if toks[0] != language_id: continue
if toks[len(toks)-1] != "31337": continue
if trans.has_key(toks[1]):
print "* Duplicate translation ID (%s) Text: '%s' conflicts with '%s' defined by ID %d" % (toks[1], toks[2], trans[toks[1]], trans_r[toks[2]])
if trans_r.has_key(toks[2]):
print "* Duplicate translation text '%s', ID %s already defined by ID %s" % (toks[2], toks[1], trans_r[toks[2]])
trans[toks[1]] = toks[2]
trans_r[toks[2]] = toks[1]
f.close()
print "* Read %d translations from %s" % (len(trans), fname)
def read_response_table(fname):
f = open(fname, "r")
for line in f.readlines():
line = strip(line)
toks = split(line)
if len(toks) < 2: continue
if toks[0] != "const": continue
if toks[1] != "int": continue
if responses.has_key(toks[2]):
print "* Duplicate response name (%s) ID: %s" % (toks[2], toks[4])
responses[toks[2]] = toks[4][:-1]
resp_used[toks[2]] = 0
f.close()
print "* Read %d responses from %s" % (len(responses), fname)
class Parser:
def __init__(self, fname):
self.fname = fname
f = open(os.path.join(gnuworld_home, "mod.cservice", fname), "r")
self.buf = f.read()
f.close()
def pos(self, sub, start=0):
try: return index(self.buf, sub, start)
except ValueError: return -1
def run(self):
idx = self.pos("getResponse", 0)
while idx != -1:
lineno = count(self.buf[:idx], '\n') + 1
idx = idx + len("getResponse")
while self.buf[idx] != "(":
idx = idx + 1
idx = idx + 1
para = 1
quote = 0
tok = ""
tokens = []
while 1:
ch = self.buf[idx]
if quote:
if ch == '"':
tok = replace(tok, '""', '')
quote = 0
else:
if ch == "(":
para = para + 1
elif ch == ")":
para = para - 1
if para == 0:
tokens.append(tok)
break
elif ch == "\"":
quote = 1
elif ch in " \n\t\r":
idx = idx + 1
continue
elif ch == ",":
tokens.append(tok)
tok = ""
idx = idx + 1
continue
elif ch == ";":
tokens.append(tok)
break
tok = tok + ch
idx = idx + 1
if len(tokens) < 3:
print "%s(%d): getResponse has less than 3 arguments" % (self.fname, lineno)
pass
elif len(tokens[1]) < 10 or tokens[1][:10] != "language::":
print "%s(%d): Second argument to getResponse doesn't start with 'language::'" % (self.fname, lineno)
else:
id = tokens[1][10:]
numeric = responses[id]
trans_text = trans[numeric]
text = tokens[2]
if text[:7] == "string(": text = text[7:]
if text[-1] == ")": text = text[:-1]
if text[0] == '"': text = text[1:]
if text[-1] == '"': text = text[:-1]
if len(tokens) > 2 and trans_text != text:
print "%s(%d): Default response doesn't match with translation:\n Def: %s\n Trans: %s" % (self.fname, lineno, text, trans_text)
idx = self.pos("getResponse", idx)
read_language_table(os.path.join(gnuworld_home, "doc", "language_table.sql"))
read_response_table(os.path.join(gnuworld_home, "mod.cservice", "responses.h"))
files = os.listdir(os.path.join(gnuworld_home, "mod.cservice"))
for file in files:
if len(file) < 4: continue
if file[-3:] != ".cc": continue
Parser(file).run()
print "* Done"
+674
View File
@@ -0,0 +1,674 @@
------------------------------------------------------------------------------------
-- "$Id: cservice.sql,v 1.87 2008/11/12 20:45:42 mrbean_ Exp $"
-- Channel service DB SQL file for PostgreSQL.
-- ChangeLog:
-- 2012-05-25: MrBean
-- Added 'totp_key' colum to 'users' table
-- 2011-12-12: Spike
-- Added gline and whitelist tables.
-- 2006-08-10: nighty
-- Modified flags definitions for table channels, according to actual
-- truth, thus adding a previously undocumented flag : 0x200 for FLOATLIM Active.
-- 2006-07-17: nighty
-- Added description for MIA Review Tag
-- 2005-11-17: nighty
-- Moved table 'ip_restrict' from cservice.web.sql to cservice.sql
-- Added indexes to table 'adminlog'
-- Added a new table for X to process notices to info channel from the website
-- 2002-03-09: nighty
-- Added 'maxlogins' column in 'users' table.
-- 2002-03-07: nighty
-- Updated channel_log/user_log events types.
-- 2002-02-16: nighty
-- Added one field to 'users' for TimeZone.
-- 2001-12-29: nighty
-- Added two fields to 'channels' to reflect changes on FLOATING LIMIT in mod.cservice
-- 2001-12-06: nighty
-- Added two fields to 'users' table to take care of an abuse hunting module.
-- 2001-10-14: nighty
-- Corrected bogus table entries and added missing fields / tables.
-- 2001-04-30: Gte
-- Redesigned deletion system, new table called deletion_transactions
-- to store deletion details for CMaster's to clear cached values.
-- 2001-01-04: Gte
-- Added 'deleted' flag, to flag records as deleted
-- (To enable CMaster to see deletions - can be *really* deleted during
-- routine maintainence/vacuum).
-- If deleted, value is non zero - null value treated as undeleted.
-- 2000-12-30: Gte
-- Added some update notification events for CMaster to listen
-- on and refresh its internal cache.
--
-- 2000-12-22: Gte
-- Fixed invalid UserID reference in userlog table.
--
-- 2000-12-10: Gte
-- Fixed a few typo's, changed TIMESTAMP's to INT4's.
--
-- 2000-10-22: Isomer
-- Removed 'ChannelManager' information from channels table
-- Added email/url/public_key to users table
-- Defined the flags
-- added channellog/userlog for combined ilc databases etc.
-- Changed many strings to 'TEXT'.
-- removed nick_flood_pro.
-- added defaults for flood_pro's.
-- changed the key type on the bans table.
-- added supporters table.
-- lotsa misc things
-- added 'added_by' and 'added_by_ts' to access table
-- users now have language, not channels
-- checked current CS sources in case we missed something.
--
-- 2000-09-21: Bleep
-- Added last_updated timestamps
--
-- Prior: Maintained by moof.
-- The service supports multiple languages, defined in language
-- files.
CREATE TABLE languages (
id SERIAL,
code VARCHAR( 16 ) UNIQUE,
name VARCHAR( 16 ),
last_updated INT4 NOT NULL,
deleted INT2 DEFAULT '0',
PRIMARY KEY(id)
);
-- Translations for multi-lingual support.
CREATE TABLE translations (
language_id INT4 CONSTRAINT translations_language_id_ref REFERENCES languages ( id ),
response_id INT4 NOT NULL DEFAULT '0',
text TEXT,
last_updated INT4 NOT NULL,
deleted INT2 DEFAULT '0',
PRIMARY KEY (language_id, response_id)
);
CREATE TABLE help (
topic VARCHAR(20) NOT NULL,
language_id INT4 CONSTRAINT help_language_id_ref REFERENCES languages ( id ),
contents TEXT
);
CREATE INDEX help_topic_idx ON help (topic);
CREATE INDEX help_language_id_idx ON help (language_id);
-- Create the channel table first since we'll be referring back to it
-- frequently.
CREATE TABLE channels (
id SERIAL,
name TEXT NOT NULL UNIQUE,
flags INT4 NOT NULL DEFAULT '0',
-- 0x0000 0001 - No Purge
-- 0x0000 0002 - Special Channel
-- 0x0000 0004 - No Reg -- Don't register for a time period after which is
-- reviewed by cservice admin.
-- 0x0000 0008 - Never Reg -- Never register
-- 0x0000 0010 - Channel Suspended
-- everyone (including the 500) is suspended.
-- 0x0000 0020 - Temp Manager
-- 0x0000 0040 - Cautioned
-- 0x0000 0080 - Manager on Vacation
-- 0x0000 0100 - Channel Locked.
-- 0x0000 0200 - FLOATLIM Active
-- 0x0000 0400 - MIA Review Tag
-- 0x0001 0000 - AlwaysOp
-- 0x0002 0000 - StrictOp
-- 0x0004 0000 - NoOp
-- 0x0008 0000 - AutoTopic
-- 0x0010 0000 - OpOnly (Depricated).
-- 0x0020 0000 - AutoJoin
-- Do we want to keep either or both of these?
-- nb: removed nickflood pro. not useful.
mass_deop_pro INT2 NOT NULL DEFAULT 3,
flood_pro INT2 NOT NULL DEFAULT 7,
url VARCHAR (128),
description VARCHAR (128),
-- Any administrative comments that apply globally to this
-- channel.
comment VARCHAR (300),
keywords VARCHAR(128),
registered_ts INT4,
channel_ts INT4 NOT NULL,
channel_mode VARCHAR(26),
-- USERFLAGS: Defaults new access records to:
-- 0: No Default
-- 1: AutoOP
-- 2: AutoVOICE
userflags INT2 DEFAULT '0',
limit_offset INT4 DEFAULT '3',
limit_period INT4 DEFAULT '20',
limit_grace INT4 DEFAULT '1',
limit_max INT4 DEFAULT '0',
last_updated INT4 NOT NULL,
deleted INT2 DEFAULT '0',
-- max_bans: override global max_bans setting
-- if set to 0, use global setting - there is NO unlimited option.
max_bans INT4 DEFAULT '0',
PRIMARY KEY (id)
);
-- A channel is inactive if the manager hasn't logged in for 21 days
CREATE UNIQUE INDEX channels_name_idx ON channels(LOWER(name));
-- Table for bans; channel_id references the channel entry this ban belongs to.
CREATE TABLE bans (
id SERIAL,
channel_id INT4 CONSTRAINT bans_channel_id_ref REFERENCES channels (id),
banmask VARCHAR (128) NOT NULL,
set_by VARCHAR (128), -- nick!user@host
set_ts INT4,
level INT2,
expires INT4, -- Expiration timestamp.
reason VARCHAR (128),
last_updated INT4 NOT NULL,
deleted INT2 DEFAULT '0',
PRIMARY KEY (banmask,channel_id)
);
CREATE INDEX bans_expires_idx ON bans(expires);
CREATE INDEX bans_channelkey_idx ON bans(channel_id);
-- Access entries; admin access kept on channel '*'.
CREATE TABLE users (
id SERIAL,
user_name TEXT NOT NULL,
password VARCHAR (40) NOT NULL,
email TEXT,
url VARCHAR(128),
-- Which question the user provided the answer too from the signup page.
question_id INT2,
-- The answer to the question. 42?
verificationdata VARCHAR(30),
language_id INT4 CONSTRAINT language_channel_id_ref REFERENCES languages (id),
public_key TEXT,
post_forms int4 DEFAULT 0 NOT NULL,
flags INT2 NOT NULL DEFAULT '0',
-- 0x00 01 -- Suspended globally.
-- 0x00 02 -- Logged in (Depricated).
-- 0x00 04 -- Invisible.
-- 0x00 08 -- Fraud username.
-- 0x00 10 -- "No-Notes" - We don't want to be sent notes.
-- 0x00 20 -- "No Purge" - Don't remove the username for being idle.
-- 0x00 40 -- "No Admin" - Any * authentication is disabled (verify/commands) (its the DISABLEAUTH ON/OFF setting online)
-- 0x00 80 -- "Alumni" - Any * privileged is gone, *excepted* the verify; more like an honorary position
-- 0x01 00 -- IRC Operator - User is flagged as being 'supposed' to be an official operator, as for allowing them
-- special accesses such as posting complaints even when system is closed to public.
-- 0x02 00 -- "No ADDUSER" - prevent anyone adding username to channels (user-set flag, default disabled)
last_updated_by VARCHAR (128), -- nick!user@host
last_updated INT4 NOT NULL,
deleted INT2 DEFAULT '0',
tz_setting VARCHAR(255) DEFAULT '',
signup_cookie VARCHAR(255) DEFAULT '',
signup_ts INT4,
signup_ip VARCHAR(15),
maxlogins INT4 DEFAULT 1,
totp_key VARCHAR(60) DEFAULT '',
PRIMARY KEY ( id )
) ;
CREATE INDEX users_username_idx ON users( lower(user_name) );
CREATE INDEX users_email_idx ON users( lower(email) );
CREATE INDEX users_signup_ts_idx ON users( signup_ts );
CREATE INDEX users_signup_ip_idx ON users( signup_ip );
-- This table used to store the "Last Seen" informatation previously
-- routinely updated in the users table.
CREATE TABLE users_lastseen (
user_id INT4 CONSTRAINT lastseen_users_id_ref REFERENCES users ( id ),
last_seen INT4,
last_hostmask VARCHAR( 256 ),
last_ip VARCHAR( 256 ),
last_updated INT4 NOT NULL,
PRIMARY KEY (user_id)
);
CREATE TABLE levels (
channel_id INT4 CONSTRAINT levels_channel_id_ref REFERENCES channels ( id ),
user_id INT4 CONSTRAINT levels_users_id_ref REFERENCES users ( id ),
access INT4 NOT NULL DEFAULT '0',
flags INT2 NOT NULL DEFAULT '0',
-- 0x00 01 -- AutoOp
-- 0x00 02 -- Protect (From CS source, unused)
-- 0x00 04 -- Temp forced access - Temp used by bot, ignore.
-- 0x00 08 -- AutoVoice
suspend_expires INT4 DEFAULT '0',
suspend_level INT4 DEFAULT '0',
suspend_by VARCHAR( 128 ),
added INT4,
added_By VARCHAR( 128 ),
last_Modif INT4,
last_Modif_By VARCHAR( 128 ),
last_Updated INT4 NOT NULL,
deleted INT2 DEFAULT '0',
PRIMARY KEY( channel_id, user_id )
);
CREATE INDEX levels_access_idx ON levels( access ) ;
CREATE INDEX levels_userid_idx ON levels( user_id ) ;
-- Note: The below index is a new postgres 7.2 feature which vastly speeds up the
-- checking of expired suspension levels. If you still use <7.2, stick to the index
-- commented out below.
-- CREATE INDEX levels_suspendexpires_idx ON levels( suspend_expires ) ;
CREATE INDEX levels_suspendexpires_idx ON levels( suspend_expires ) WHERE suspend_expires <> 0;
CREATE TABLE channellog (
ts INT4,
channelID INT4 CONSTRAINT channel_log_ref REFERENCES channels ( id ),
event INT2 DEFAULT '0',
-- Defines the message event type, so we can filter nice reports.
-- 1 -- EV_MISC - Uncategorised event.
-- 2 -- EV_JOIN - When someone 'JOIN's the bot.
-- 3 -- EV_PART - When someone 'PART's the bot.
-- 4 -- EV_OPERJOIN - When an oper 'JOIN's the bot.
-- 5 -- EV_OPERPART - When an oper 'PART's the bot.
-- 6 -- EV_FORCE - When someone FORCE's access in a channel.
-- 7 -- EV_REGISTER - When this channel is (re)registered.
-- 8 -- EV_PURGE - When this channle is purged.
-- 9 -- EV_COMMENT - Generic comments.
-- 10 -- EV_REMOVEALL - When REMOVEALL command is used.
-- 11 -- EV_IDLE - When a channel is idle for > 48 hours.
-- 12 -- EV_MGRCHANGE - When a channel switched managers either temporarily or permanently
-- 13 -- EV_ADMREJECT - When an application gets manually rejected by an admin on the web
-- 14 -- EV_WITHDRAW - When an application gets cancelled by its applicant on the web
-- 15 -- EV_NEWAPP - When a new application is posted by a user on the web
-- 16 -- EV_NONSUPPORT - When an application gets rejected due to NON-SUPPORT from one of the supporters on the web
-- 17 -- EV_ADMREVIEW - When an admins "Review" an application
-- 18 -- EV_CLRREVIEW - When a Reviewed application get its "Reviewed" flag cleared by an admin.
-- 19 -- EV_SUSPEND - When a channel is suspended by an administrator (channel.flags & 0x10 is 'set')
-- 20 -- EV_UNSUSPEND - When a channel is unsuspended by an administrator (channels.flags & 0x10 is 'unset')
message TEXT,
last_updated INT4 NOT NULL,
deleted INT2 DEFAULT '0'
);
CREATE INDEX channellog_channelID_idx ON channellog(channelID);
CREATE INDEX channellog_event_idx ON channellog(event);
CREATE TABLE userlog (
ts INT4,
user_id INT4 CONSTRAINT user_log_ref REFERENCES users ( id ),
event INT4 DEFAULT '0',
-- 1 -- EV_SUSPEND - Notification/Reason for suspension.
-- 2 -- EV_UNSUSPEND - Notification of an unsuspend.
-- 3 -- EV_MODIF - Modification of user record by an admin.
-- 4 -- EV_MISC - Uncategorised event.
-- 5 -- EV_COMMENT - Admin comment on username.
-- 6 -- EV_MGRCHANGE - When a user status is to swith manager with another user (also logged) on a channel
-- 7 -- EV_MAILCHANGE - When a user's email gets changed
-- 8 -- EV_PWRESET - When a user's verif q/a get changed
-- 9 -- EV_FPASSWD - When a user uses "Forgotten Password"
-- 10-- EV_PWCHANGE - When a user changes his password on the web (New Password)
-- 11-- EV_POSTCOMPLAINT - When a user identified posts a complaint on the web
-- 12-- EV_POSTCLOSE - When a Ticket/Complaint is closed or resolved.
message TEXT,
last_updated INT4 NOT NULL
);
CREATE INDEX userlog_channelID_idx ON userlog(user_id);
CREATE INDEX userlog_event_idx ON userlog(event);
CREATE TABLE supporters (
channel_id INT4 CONSTRAINT channel_supporters_ref REFERENCES channels ( id ),
user_id INT4 CONSTRAINT users_supporters_ref REFERENCES users( id ),
support CHAR DEFAULT '?',
-- ? - Not answered yet.
-- Y - Supports this channel.
-- N - Doesn't support this channel.
reason TEXT,
-- Reason for not supporting it if required.
join_count INT4 DEFAULT '0',
-- Number of times this 'supporter' has joined the channel.
-- Field updated by CMaster to reflect channel 'traffic'.
last_updated INT4 NOT NULL,
deleted INT2 DEFAULT '0',
PRIMARY KEY(channel_id,user_id)
);
CREATE INDEX supporters_support_idx ON supporters(support);
create index supporters_user_id_idx ON supporters(user_id);
CREATE TABLE pending (
channel_id INT4 CONSTRAINT pending_channel_ref REFERENCES channels (id),
manager_id INT4 CONSTRAINT pending_manager_ref REFERENCES users (id),
created_ts INT4 NOT NULL,
check_start_ts INT4 NOT NULL,
status INT4 DEFAULT '0',
-- Status of 'pending' channel:
-- 0 = 'Pending Supporters Confirmation'
-- 1 = 'Traffic Check'
-- 2 = 'Notification'
-- 3 = 'Completed'
-- 4 = 'Cancelled by applicant'
-- 8 = 'Pending Admin Review'
-- 9 = 'Rejected'
join_count INT4 DEFAULT '0',
unique_join_count INT4 DEFAULT '0',
decision_ts INT4,
decision TEXT,
managername VARCHAR (80),
reg_acknowledged CHAR DEFAULT 'N',
comments TEXT,
last_updated INT4 NOT NULL,
description TEXT,
reviewed CHAR NOT NULL DEFAULT 'N',
reviewed_by_id INT4 CONSTRAINT pending_review_ref REFERENCES users (id),
PRIMARY KEY(channel_id)
);
CREATE INDEX pending_status_idx ON pending(status);
CREATE INDEX pending_manager_id_idx ON pending(manager_id);
CREATE TABLE pending_traffic (
channel_id INT4 CONSTRAINT pending_traffic_channel_ref REFERENCES channels (id),
ip_number INT4,
join_count INT4,
PRIMARY KEY(channel_id, ip_number)
);
CREATE INDEX pending_traffic_channel_id_idx ON pending_traffic(channel_id);
CREATE TABLE domain (
id SERIAL,
domain varchar(1024) NOT NULL UNIQUE,
flags INT2 NOT NULL DEFAULT '1',
-- Flags are exclusive and can be SELECT'd on.
-- 0x00 01 - Bad Domain.
-- 0x00 02 - Good Domain.
-- 0x00 04 - Pending Domain.
last_updated INT4 NOT NULL,
deleted INT2 DEFAULT '0',
PRIMARY KEY(id)
);
CREATE INDEX domain_domain_idx ON domain(domain);
CREATE TABLE deletion_transactions (
tableID INT4,
-- Table Types:
-- 1 = users
-- 2 = channels
-- 3 = levels
-- 4 = bans
key1 INT4,
key2 INT4,
key3 INT4,
-- Up to 3 key's that uniquely identify the data
-- being deleted in this table. See CMaster source
-- to determine how this is interpreted.
last_updated INT4 NOT NULL
);
-- Table to deal with the whole no-reg schema.
-- We use username and channelname instead of id's because these records may
-- exist past the lifetime of particular user accounts, and we'll want
-- to make sure certain email address's remain unable to register, etc.
-- Specific flags are INT4's becuase postgres does not want to index on anything
-- smaller :/
CREATE TABLE noreg (
id SERIAL,
user_name TEXT,
email TEXT,
channel_name TEXT,
type INT4 NOT NULL,
-- 1 - Non-support registered against this channel/manager application.
-- 2 - Abuse.
-- 3 - Elective.
-- 4 - Fraud Username.
-- 5 - Username pattern'd lock (able to lock any new username from matching *mp3* for example)
-- 6 - Verification answer lock (stored in 'user_name', planning on db fields renaming for more customisation later)
never_reg INT4 NOT NULL DEFAULT '0',
-- Never, ever register this channel, or user or pair.
for_review INT4 NOT NULL DEFAULT '0',
-- Don't automatically expire this, post for review.
expire_time INT4,
created_ts INT4,
set_by TEXT,
reason TEXT
);
CREATE INDEX noreg_user_name_idx ON noreg (lower(user_name));
CREATE INDEX noreg_email_idx ON noreg (lower(email));
CREATE INDEX noreg_channel_name_idx ON noreg (lower(channel_name));
CREATE INDEX noreg_expire_time_idx ON noreg (expire_time);
CREATE TABLE notes (
message_id SERIAL,
user_id INT4 CONSTRAINT users_notes_ref REFERENCES users( id ),
from_user_id INT4 CONSTRAINT users_notes_ref2 REFERENCES users( id ),
message VARCHAR( 300 ),
last_updated INT4 NOT NULL,
PRIMARY KEY(message_id, user_id)
);
--CREATE TABLE mailq (
-- user_id INT4 CONSTRAINT mailq_users_ref REFERENCES users(id),
-- channel_id INT4 CONSTRAINT mailq_channels_ref REFERENCES channels(id),
-- created_ts INT4,
-- template INT4,
-- var1 CHAR(128),
-- var2 CHAR(128),
-- var3 CHAR(128),
-- var4 CHAR(128),
-- var5 CHAR(128)
--);
-- Values of Templates:
-- MT_SUPPORTER 1
-- MT_REJECTED 2
-- MT_REGISTERED 3
-- Template arguments:
-- MT_REJECTED
-- var1 Reject Reason
-- Update notification rules.
-- (N.B: Disabled, aparently conditional RULES are no longer
-- supported in postgres 7.1.x).
--CREATE RULE cm1 AS ON UPDATE TO channels DO NOTIFY channels_u;
--CREATE RULE cm2 AS ON UPDATE TO bans DO NOTIFY bans_u;
--CREATE RULE cm3 AS ON UPDATE TO users DO NOTIFY users_u;
--CREATE RULE cm4 AS ON UPDATE TO levels DO NOTIFY levels_u;
CREATE FUNCTION update_users() RETURNS OPAQUE AS '
BEGIN
NOTIFY users_u;
RETURN NEW;
END;
' LANGUAGE 'plpgsql';
CREATE FUNCTION update_channels() RETURNS OPAQUE AS '
BEGIN
NOTIFY channels_u;
RETURN NEW;
END;
' LANGUAGE 'plpgsql';
CREATE FUNCTION update_levels() RETURNS OPAQUE AS '
BEGIN
NOTIFY levels_u;
RETURN NEW;
END;
' LANGUAGE 'plpgsql';
CREATE FUNCTION update_bans() RETURNS OPAQUE AS '
BEGIN
NOTIFY bans_u;
RETURN NEW;
END;
' LANGUAGE 'plpgsql';
CREATE TRIGGER t_update_users AFTER UPDATE ON users FOR EACH ROW EXECUTE PROCEDURE update_users();
CREATE TRIGGER t_update_bans AFTER UPDATE ON bans FOR EACH ROW EXECUTE PROCEDURE update_bans();
CREATE TRIGGER t_update_channels AFTER UPDATE ON channels FOR EACH ROW EXECUTE PROCEDURE update_channels();
CREATE TRIGGER t_update_levels AFTER UPDATE ON levels FOR EACH ROW EXECUTE PROCEDURE update_levels();
-- Function to create a new users_lastseen record for each new user added.
-- If the function fails, you may need to add the plpgsql scripting language support
-- to your database:
-- /usr/local/pgsql/bin/createlang plpgsql dbname -L /usr/local/pgsql/lib/
CREATE FUNCTION new_user() RETURNS OPAQUE AS '
-- creates the users associated last_seen record
BEGIN
INSERT INTO users_lastseen (user_id, last_seen, last_updated) VALUES(NEW.id, now()::abstime::int4, now()::abstime::int4);
RETURN NEW;
END;
' LANGUAGE 'plpgsql';
-- Trigger to call the function upon insert to users.
CREATE TRIGGER t_new_user AFTER INSERT ON users FOR EACH ROW EXECUTE PROCEDURE new_user();
-- Functions to automatically generate "Deletion Stubs" for removed records, so CMaster
-- can pick up on these and clear its cache.
CREATE FUNCTION delete_user() RETURNS OPAQUE AS '
BEGIN
INSERT INTO deletion_transactions (tableID, key1, key2, key3, last_updated)
VALUES(1, OLD.id, 0, 0, now()::abstime::int4);
RETURN OLD;
END;
' LANGUAGE 'plpgsql';
CREATE TRIGGER t_delete_user AFTER DELETE ON users FOR EACH ROW EXECUTE PROCEDURE delete_user();
-- Channel table Deletion Stubs
--
CREATE FUNCTION delete_channel() RETURNS OPAQUE AS '
BEGIN
INSERT INTO deletion_transactions (tableID, key1, key2, key3, last_updated)
VALUES(2, OLD.id, 0, 0, now()::abstime::int4);
RETURN OLD;
END;
' LANGUAGE 'plpgsql';
CREATE TRIGGER t_delete_channel AFTER DELETE ON channels FOR EACH ROW EXECUTE PROCEDURE delete_channel();
-- Level table Deletion Stubs
--
CREATE FUNCTION delete_level() RETURNS OPAQUE AS '
BEGIN
INSERT INTO deletion_transactions (tableID, key1, key2, key3, last_updated)
VALUES(3, OLD.channel_id, OLD.user_id, 0, now()::abstime::int4);
RETURN OLD;
END;
' LANGUAGE 'plpgsql';
CREATE TRIGGER t_delete_level AFTER DELETE ON levels FOR EACH ROW EXECUTE PROCEDURE delete_level();
-- Ban table Deletion Stubs
--
CREATE FUNCTION delete_ban() RETURNS OPAQUE AS '
BEGIN
INSERT INTO deletion_transactions (tableID, key1, key2, key3, last_updated)
VALUES(4, OLD.id, 0, 0, now()::abstime::int4);
RETURN OLD;
END;
' LANGUAGE 'plpgsql';
CREATE TRIGGER t_delete_ban AFTER DELETE ON bans FOR EACH ROW EXECUTE PROCEDURE delete_ban();
-- Table used to store run-time configurable settings.
CREATE TABLE variables (
var_name VARCHAR(30),
contents text,
hint text,
last_updated INT4,
PRIMARY KEY(var_name)
);
-- Table used to store the admin log (converted from file to db).
CREATE TABLE adminlog (
id SERIAL,
user_id INT4 NOT NULL,
cmd VARCHAR(100),
args VARCHAR(255),
timestamp INT4 NOT NULL,
issue_by VARCHAR(255),
PRIMARY KEY(id)
);
CREATE INDEX adminlog_c_idx ON adminlog(cmd,timestamp);
CREATE INDEX adminlog_u_idx ON adminlog(user_id,timestamp);
CREATE INDEX adminlog_a_idx ON adminlog(args);
CREATE INDEX adminlog_i_idx ON adminlog(issue_by);
CREATE TABLE ip_restrict (
id SERIAL,
user_id int4 NOT NULL,
allowmask varchar(255) NOT NULL,
allowrange1 int4 NOT NULL,
allowrange2 int4 NOT NULL,
added int4 NOT NULL,
added_by int4 NOT NULL,
type int4 NOT NULL
);
CREATE INDEX ip_restrict_idx ON ip_restrict(user_id,type);
CREATE TABLE webnotices (
id SERIAL,
created_ts int4 NOT NULL,
contents VARCHAR(255) NOT NULL,
PRIMARY KEY(id)
);
CREATE TABLE glines (
Id SERIAL,
Host VARCHAR(128) UNIQUE NOT NULL,
AddedBy VARCHAR(128) NOT NULL,
AddedOn INT4 NOT NULL,
ExpiresAt INT4 NOT NULL,
LastUpdated INT4 NOT NULL DEFAULT now()::abstime::int4,
Reason VARCHAR(255)
);
CREATE TABLE whitelist (
Id SERIAL,
IP VARCHAR(15) UNIQUE NOT NULL,
AddedBy VARCHAR(128) NOT NULL,
AddedOn INT4 NOT NULL,
ExpiresAt INT4 NOT NULL,
Reason VARCHAR(255)
);
-----------------------------------------------------------------------------------------
+36
View File
@@ -0,0 +1,36 @@
-- "$Id: cservice.addme.sql,v 1.7 2002/08/30 10:18:44 nighty Exp $"
-- 2001-02-23 : |MrBean|
-- 2001-10-14 : nighty
--
-- This script will reigster the admin channel *
-- And will create an admin by the name of Admin
-- with pass : temPass And access level 1000
-- Note this script assumes that you didnt add any users/channels to the db
--
--
-- YOU MUST RUN THIS SCRIPT ONLY ONCE AND MODIFYING ONLY 'Admin' BY
-- YOUR PREFERRED NICKNAME.
--
-- This action will also register #coder-com to you, its still needed for 'VERIFY'
-- to work on authenticated users.
--
INSERT into channels (name,flags,channel_ts,registered_ts,last_updated)
VALUES ('*',1,extract(epoch FROM now())::int,31337,extract(epoch FROM now())::int);
INSERT into channels (name,flags,channel_ts,registered_ts,last_updated)
VALUES ('#coder-com',1,extract(epoch FROM now())::int,31337,extract(epoch FROM now())::int);
INSERT into users (user_name,password,language_id,last_updated,created_ts)
VALUES ('Admin','xEDi1V791f7bddc526de7e3b0602d0b2993ce21d',1,extract(epoch FROM now())::int,extract(epoch FROM now())::int);
INSERT into users_lastseen (user_id,last_seen,last_updated)
VALUES (1,extract(epoch FROM now())::int,extract(epoch FROM now())::int);
INSERT into levels (channel_id,user_id,access,last_updated)
VALUES (1,1,1000,extract(epoch FROM now())::int);
INSERT into levels (channel_id,user_id,access,last_updated)
VALUES (2,1,500,extract(epoch FROM now())::int);
-- END HERE
+30
View File
@@ -0,0 +1,30 @@
-- "$Id: cservice.config.sql,v 1.11 2008/01/01 13:49:19 kewlio Exp $"
-- Default configuration entries for CMaster bot.
INSERT INTO variables (var_name,contents,last_updated,hint)
VALUES ('REQUIRED_SUPPORTERS', '3', date_part('epoch', CURRENT_TIMESTAMP)::int, 'Required supporters for an application');
INSERT INTO variables (var_name,contents,last_updated,hint)
VALUES ('MAX_BAN_REASON_LENGTH', '300', date_part('epoch', CURRENT_TIMESTAMP)::int, 'Maximum length for ban reason.');
INSERT INTO variables (var_name,contents,last_updated,hint)
VALUES ('MAX_BANS', '300', date_part('epoch', CURRENT_TIMESTAMP)::int, 'Maximum bans per channel');
INSERT INTO variables (var_name,contents,last_updated,hint)
VALUES ('BAN_CHECK_ON_BURST', '1', date_part('epoch', CURRENT_TIMESTAMP)::int, 'Check bans during burst');
INSERT INTO variables (var_name,contents,last_updated,hint)
VALUES ('FLOOD_MESSAGES', '1', date_part('epoch', CURRENT_TIMESTAMP)::int, 'Show flood messages');
INSERT INTO variables (var_name,contents,last_updated,hint)
VALUES ('FAILED_LOGINS', '50', date_part('epoch', CURRENT_TIMESTAMP)::int, 'Number of concurrent failed logins before reporting');
INSERT INTO variables (var_name,contents,last_updated,hint)
VALUES ('ALERT_FAILED_LOGINS', '1', date_part('epoch', CURRENT_TIMESTAMP)::int, 'Tell users the number of failed logins?');
INSERT INTO variables (var_name,contents,last_updated,hint)
VALUES ('FAILED_LOGINS_RATE', '900', date_part('epoch', CURRENT_TIMESTAMP)::int, 'Time between alerts about failed logins per user');
INSERT INTO variables (var_name,contents,last_updated,hint)
VALUES ('MAX_FAILED_LOGINS', '20', date_part('epoch', CURRENT_TIMESTAMP)::int, 'Maximum failed logins per client');
INSERT INTO variables (var_name,contents,last_updated,hint)
VALUES ('MAX_BAN_DURATION', '31536000', date_part('epoch', CURRENT_TIMESTAMP)::int, 'Maximum ban duration (in seconds)');
INSERT INTO variables (var_name,contents,last_updated,hint)
VALUES ('LOGINS_FROM_SAME_IP', '0', date_part('epoch', CURRENT_TIMESTAMP)::int, 'Maximum logins from same IP when maxlogins=1');
INSERT INTO variables (var_name,contents,last_updated,hint)
VALUES ('LOGINS_FROM_SAME_IP_AND_IDENT', '0', date_part('epoch', CURRENT_TIMESTAMP)::int, 'Force check of ident as well as IP when maxlogins=1');
INSERT INTO variables (var_name,contents,last_updated,hint)
VALUES ('USE_LOGIN_DELAY', '1', date_part('epoch', CURRENT_TIMESTAMP)::int, 'Use login delay when cservice links if set to 1');
+719
View File
@@ -0,0 +1,719 @@
-- Help information copied from current live database.
--
-- Its not particularly in any nice order, but you can use the web interface
-- to change it all anyway.
--
-- $Id: cservice.help.sql,v 1.9 2008/01/09 22:46:54 kewlio Exp $
DELETE FROM help;
COPY "help" FROM stdin;
SET 1 /msg X set <#channel> <variable> <value>\n/msg X set <variable> <value>\nThis will set a channel or user account setting. \nUseraccount settings: INVISIBLE MAXLOGINS LANG\nChannel settings: AUTOJOIN AUTOTOPIC DESCRIPTION KEYWORDS MASSDEOP MODE NOOP STRICTOP URL USERFLAGS\nFor more help type /msg X help SET <variable>
ACCESS 2 /msg X access <#canal> <*|chaine|utilisateur|=nickname> [-min <niveau>] [-max <niveau>] [-modif] [-none|-voice|-op]\r\nPeut afficher l'accès pour une certaine personne ou une chaine de caractère. L'information indique le niveau d'accès,\r\nl'état de suspension et son niveau le cas échéant, ainsi que la dernière fois que l'utilisateur à été vu.\r\nSi il y a plus de 15 entrées, allez sur http://cservice.undernet.org/live/ et logguez vous\r\npour voir la liste entière en cliquant sur "Channel Information" et en envoyant le nom du canal. \r\nVous pouvez aussi mélanger ces options au lieu d'un nom d'utilisateur ou d'une chaîne de caractère pour obtenir des résultats spécifiques.
SET AUTOJOIN 1 /msg X set <#channel> autojoin ON|OFF\nWhen the setting is ON, X will join the channel and autorejoin after a netsplit.\nWhen the flag is OFF, X will part if it's on the channel, and it won't rejoin after a netsplit
SET AUTOTOPIC 1 /msg X set <#channel> AUTOTOPIC ON|OFF\nThis flag makes X reset the topic to the channel DESCRIPTION and URL every 30 minutes. \nNote that if the channel is idle, the topic will not be reset during that time.
OP 2 /msg X op <#canal> [nick] [nick2] ... [nickN]\r\nOppe une ou plusieurs personnes dans le canal spécifié. Si aucun nickname n'est spécifié, et que vous n'êtes pas déjà oppé, X vous oppera.
BANLIST 2 /msg X banlist <#canal>\r\nMontre la liste des bans du canal. Cette commande marche que vous soyez ou non dans le canal.
OPERJOIN 2 /msg X operjoin <#canal>\r\nCeci fait joindre le canal spécifié à X. Cette commande est réservée aux Opérateurs IRC et ne doit être utilisée que pour résoudre des désynchronisations.
OPERPART 2 /msg X operpart <#canal>\r\nCeci fait partir X du canal spécifié. Cette commande est réservée aux Opérateurs IRC et ne doit être utilisée que pour résoudre des désynchronisations.
CHANINFO 12 /msg X chaninfo <#kanal>\r\nBir kanalýn kayýtlý olup olmadýðýný, kayýtlý ise; kime ait olduðunu, eðer varsa; mevcut DESCRIPTION ve URL deðerliklerini görüntüler.
PART 2 /msg X part <#canal>\r\nFait partir X du canal spécifié. Si vous souhaitez que X parte un long moment, voyez la commande SET AUTOJOIN (niveau 500)
PURGE 2 /msg X purge <#canal> <raison>\r\nPurge le canal spécifié. Cette commande est réservée aux Administrateurs CService.
QUOTE 2 Pas toucher ;)
REGISTER 2 /msg X register <#canal> <utilisateur>\r\nCette commande est réservée aux Administrateurs CService.
REHASH 2 /msg X rehash <table>\r\nCette commande est réservée aux Développeurs CService.
SET INVISIBLE 2
UNBAN 2 /msg X unban <#canal> <nickname | *!*user@*.host>\r\nSupprime le *!*user@*.host spécifié de la liste interne de X pour votre canal ainsi que du canal le cas échéant.\r\nVous ne pouvez supprimer des bans de la liste interne de X que si vous avec un niveau supérieur ou égal au niveau de ce ban.\r\nPour chercher dans cette liste interne, voyez la commande LBANLIST (niveau 0).
SET NOADDUSER 1 /msg X set NOADDUSER ON|OFF\nToggle noadduser on or off for your username. \nWhen this setting is on, another user cannot add you to any channels.
SET DESCRIPTION 1 /msg X set <#channel> DESCRIPTION <description here>\nSets the channel description. This value can be seen in the CHANINFO reply.
SET INVISIBLE 1 /msg X set INVISIBLE ON|OFF\nToggle invisible on or off for your username. \nWhen this setting is on, another user cannot see wether you are online or not.
SET KEYWORDS 1 /msg X set <#channel> <keywords here>\nSets keywords for your channel. You can use SEARCH to find channels with a certain keyword set.
MOTD 1 /msg X motd\nDisplays X message of the day.
PART 1 /msg X part <#channel>\nMakes X part your channel. If you want to part X for a long time refer to the SET AUTOJOIN command (Level 500)
ACCESS 3
ADDCOMMENT 3
ADDUSER 3
BAN 3
BANLIST 3
CLEARMODE 3
DEOP 3
DEVOICE 3
FORCE 3
HELP 3
INFO 3
INVITE 3
ISREG 3
JOIN 3
KICK 3
LBANLIST 3
LOGIN 3
MODINFO 3
MOTD 3
NEWPASS 3
OP 3
OPERJOIN 3
OPERPART 3
PART 3
PURGE 3
QUOTE 3
REGISTER 3
REHASH 3
REMOVEALL 3
REMUSER 3
SAY 3
SEARCH 3
SERVNOTICE 3
SET 3
SHOWCOMMANDS 3
SHOWIGNORE 3
STATS 3
STATUS 3
SUPPORT 3
SUSPEND 3
TOPIC 3
UNBAN 3
UNFORCE 3
UNSUSPEND 3
VERIFY 3
VOICE 3
ACCESS 4
ADDCOMMENT 4
ADDUSER 4
BAN 4
BANLIST 4
CLEARMODE 4
DEOP 4
DEVOICE 4
FORCE 4
HELP 4
INFO 4
INVITE 4
ISREG 4
JOIN 4
KICK 4
LBANLIST 4
LOGIN 4
MODINFO 4
MOTD 4
NEWPASS 4
OP 4
OPERJOIN 4
OPERPART 4
PART 4
PURGE 4
QUOTE 4
REGISTER 4
REHASH 4
REMOVEALL 4
REMUSER 4
SAY 4
SEARCH 4
SERVNOTICE 4
SET 4
SHOWCOMMANDS 4
SHOWIGNORE 4
STATS 4
STATUS 4
SUPPORT 4
SUSPEND 4
TOPIC 4
UNBAN 4
UNFORCE 4
UNSUSPEND 4
VERIFY 4
VOICE 4
ACCESS 5
ADDCOMMENT 5
ADDUSER 5
BAN 5
BANLIST 5
CLEARMODE 5
DEOP 5
DEVOICE 5
FORCE 5
HELP 5
INFO 5
INVITE 5
ISREG 5
JOIN 5
KICK 5
LBANLIST 5
LOGIN 5
MODINFO 5
MOTD 5
NEWPASS 5
OP 5
OPERJOIN 5
OPERPART 5
PART 5
PURGE 5
QUOTE 5
REGISTER 5
REHASH 5
REMOVEALL 5
REMUSER 5
SAY 5
SEARCH 5
SERVNOTICE 5
SET 5
SHOWCOMMANDS 5
SHOWIGNORE 5
STATS 5
STATUS 5
SUPPORT 5
SUSPEND 5
TOPIC 5
UNBAN 5
UNFORCE 5
UNSUSPEND 5
VERIFY 5
VOICE 5
ACCESS 6
ADDCOMMENT 6
ADDUSER 6
BAN 6
BANLIST 6
CLEARMODE 6
DEOP 6
DEVOICE 6
FORCE 6
HELP 6
INFO 6
INVITE 6
ISREG 6
JOIN 6
KICK 6
LBANLIST 6
LOGIN 6
MODINFO 6
MOTD 6
NEWPASS 6
OP 6
OPERJOIN 6
OPERPART 6
PART 6
PURGE 6
QUOTE 6
REGISTER 6
REHASH 6
REMOVEALL 6
REMUSER 6
SAY 6
SEARCH 6
SERVNOTICE 6
SET 6
SHOWCOMMANDS 6
SHOWIGNORE 6
STATS 6
STATUS 6
SUPPORT 6
SUSPEND 6
TOPIC 6
UNBAN 6
UNFORCE 6
UNSUSPEND 6
VERIFY 6
VOICE 6
ACCESS 7
ADDCOMMENT 7
ADDUSER 7
BAN 7
BANLIST 7
CLEARMODE 7
DEOP 7
DEVOICE 7
FORCE 7
HELP 7
INFO 7
INVITE 7
ISREG 7
JOIN 7
KICK 7
LBANLIST 7
LOGIN 7
MODINFO 7
MOTD 7
NEWPASS 7
OP 7
OPERJOIN 7
OPERPART 7
PART 7
PURGE 7
QUOTE 7
REGISTER 7
REHASH 7
REMOVEALL 7
REMUSER 7
SAY 7
SEARCH 7
SERVNOTICE 7
SET 7
SHOWCOMMANDS 7
SHOWIGNORE 7
STATS 7
STATUS 7
SUPPORT 7
SUSPEND 7
TOPIC 7
UNBAN 7
UNFORCE 7
UNSUSPEND 7
VERIFY 7
VOICE 7
SET USERFLAGS 8 /msg X set <#canal> USERFLAGS [0-2]\nDetermina daca da sau nu OP sau VOICE va fi setat automat AUTOMODE cand un nou user este adaugat la lista de accese.\nValoarea "default" este 0 (None). Variabile: 0: None 1: Op 2: Voice
SHOWCOMMANDS 8 /msg X showcommands <#caanal>\nArata comenzile disponibile pentru tine pentru un canal specificat.
SHOWIGNORE 8 /msg X showignore\nArata lista de ignore a lui X. X va da ignore unui user cand acesta il flood-eaza intentionat sau nu. \nDurata ignore-ului este de 60 de minute.\nNota: X nu iti va mai raspunde daca esti ignorat. Daca nu mai primesti reply-uri de la X, intreaba un prieten ca sa verifice ignorelist-ul pentru tine.
STATS 8 /msg X stats\nAceasta comanda este doar pentru Adminii CService.
STATUS 8 /msg X status <#canal>\nceasta comanda face acelasi lucru ca si comanda de nivel 200 STATUS, cu exceptia ca nu va raporta modurile canalului (+nt etc.) la oricine care are access 200 sau mai mic.
SUPPORT 8 /msg X support <#canal> <yes/no>\nO metoda alternativa care iti permite sa confirmi ca esti de acord sau nu pentru o aplicatie a unui canal, daca te alfi in lista suporterilor. Dupa autentificare, X iti va trimite o notificare despre orice aplicatie a unui canal in care esti trecut ca un suporter si deasemenea iti va trimite o notificare referitor la comanda SUPPORT. \nAlternativ, poti sa vizualizezi aplicatia din pagina web pentru a vedea mai multe informatii despre acest lucru, pune o obiectie, si confirma sau nu suportul pentru acel canal de acolo. Comanda nu va fi valabila daca nu esti trecut in lista celor care sunt suporteri a acelui canal, sau un canal nu va avea o aplicatie de "Pending" in web.
SUSPEND 8 /msg X suspend <#canal> <username> <durata> <M|O|Z> [nivel]\nSuspenda accesul unui user la X pe canalul respectiv, pe o perioada specificata.\nDaca nu este specificat level-ul, level-ul suspendului va fi din default accesul celui care a folosit comanda.\nPoti SUSPENDA accesul cuiva doar daca este mai mic decat al tau. Durata maxima pentru SUSPEND este de 372 de zile (8928 ore, 535680 minute).
ACCESS 9
ADDCOMMENT 9
ADDUSER 9
BAN 9
BANLIST 9
CLEARMODE 9
DEOP 9
DEVOICE 9
FORCE 9
HELP 9
INFO 9
INVITE 9
ISREG 9
JOIN 9
KICK 9
LBANLIST 9
LOGIN 9
MODINFO 9
MOTD 9
NEWPASS 9
OP 9
OPERJOIN 9
OPERPART 9
PART 9
PURGE 9
QUOTE 9
REGISTER 9
REHASH 9
REMOVEALL 9
REMUSER 9
SAY 9
SEARCH 9
SERVNOTICE 9
SET 9
SHOWCOMMANDS 9
SHOWIGNORE 9
STATS 9
STATUS 9
SUPPORT 9
SUSPEND 9
TOPIC 9
UNBAN 9
UNFORCE 9
UNSUSPEND 9
VERIFY 9
VOICE 9
ACCESS 10
ADDCOMMENT 10
ADDUSER 10
BAN 10
BANLIST 10
CLEARMODE 10
DEOP 10
DEVOICE 10
FORCE 10
HELP 10
INFO 10
INVITE 10
ISREG 10
JOIN 10
KICK 10
LBANLIST 10
LOGIN 10
MODINFO 10
MOTD 10
NEWPASS 10
OP 10
OPERJOIN 10
OPERPART 10
PART 10
PURGE 10
QUOTE 10
REGISTER 10
REHASH 10
REMOVEALL 10
REMUSER 10
SAY 10
SEARCH 10
SERVNOTICE 10
SET 10
SHOWCOMMANDS 10
SHOWIGNORE 10
STATS 10
STATUS 10
SUPPORT 10
SUSPEND 10
TOPIC 10
UNBAN 10
UNFORCE 10
UNSUSPEND 10
VERIFY 10
VOICE 10
UNFORCE 2 /msg X unforce <#canal>\r\nCette commande est réservée aux Administrateurs CService.
SUSPENDME 1 Type /msg X@channels.undernet.org SUSPENDME <password> \nThis command is to be used in the situation where you believe your account has been compromised, and wish to immediately suspend all your access.\nThere must be more than one person logged into your account to issue this command.\nAfter issuing this command, you cannot perform any actions with your access until your account is dealt with by a CService representative.\nTo have the suspension removed send an email to object@undernet.org
SET MASSDEOP 1 /msg X set <#channel> MASSDEOP <value 0-7>\nThe maximum number of deops X will allow in a 15 sec period.\nA person exceeding this number will be deop'd and, if on the User List, suspended for 5 minutes. They will also have a level 25 Ban put on them and need to unban themselves after the suspend ends.
SET MAXLOGINS 1 /msg X set MAXLOGINS <value> (value must be between 1 and 3. Default value is 1).\nThis command defines the maximum number of times you may log into your account simultaneously.\nAs you login to an account for a 2nd and 3rd time, a warning is sent to the existing authenticated user(s) giving details of who has just logged into the account.\nThis is an additional security measure, and can give you an early warning sign that someone has your password and is (ab)using your account.
SET NOOP 1 /msg X set <#channel> NOOP ON|OFF\nWhen this flag is ON, noone except X can be an operator.
SET STRICTOP 1 /msg X set <#channel> STRICTOP ON|OFF\nWhen this setting is ON X allows only Level 100+ users who are authenticated to be opped.
SET URL 1 /msg X set <#channel> URL <http://url>\nYou can state your channel's homepage address(es) with this option (maximum of 75 characters). \nThe value can be seen in the CHANINFO response.
SET USERFLAGS 1 /msg X set <#channel> USERFLAGS [0-2]\nDetermines whether or not OP or VOICE will automatically be set for AUTOMODE when a new user is added to the userlist. \nDefault value is 0 (None). values: 0: none 1: Op 2: Voice
SHOWCOMMANDS 1 /msg X showcommands <#channel>\nShows the commands available to you for a given channel.
SHOWIGNORE 1 /msg X showignore\nShows X's ignore list. Ignores happen when someone intentionally or accidentally floods X. \nThe time length is 60 minutes. \nNote: X will not reply to you if you are being ignored. If you don't receive replies from X,\nask a friend to check the ignorelist for you.
STATS 1 /msg X stats\nThis command is for CService Admins only.
STATUS 1 /msg X status <#channel>\nThis does the same thing as level 200 STATUS, except it will not report channel modes (+nt etc.)\nto anyone with access below 200.
SET AUTOJOIN 2
SET MASSDEOPPRO 2
SUPPORT 1 /msg X support <#channel> <yes/no>\nAn alternate method allowing you to confirm or deny support for a channel application which you \nare listed as a supporter on. Upon authenticating, X will notify you of any channel applications that \nyou are listed as a supporter on and will also notify you of this SUPPORT command. \nAlternatively, you can choose to view the application on the web to see more information about it, \npost an objection, and confirm or deny your support from there. The command will not be effective \nif you are not listed on a channel as a supporter, or a channel does not have a pending application on the web.
HELP 12 /msg X help <komut>\r\nVerilen komut için yardým bilgilerini görüntüler.
SET LANG 1 /msg X set lang <language code>\nWith this command you can specify in what language X should reply to you. \nAvailable languages: AR - Arabic, CA - Catalan, CH - Christmas, DK - Danish, NL - Dutch, EA - Easter, EN - English, FR - Français, DE - German, IL - Hebrew, HU - Hungarian, IT - Italian, NO - Norsk, PT - Portuguese, RO - Romanian, ES - Spanish, TR - Turkce,
UNSUSPEND 2 /msg X unsuspend <#canal> <utilisateur>\r\nSupprime la suspension à X d'un utilisateur sur votre canal,\r\nlui permettant donc d'accèder de nouveau à X.\r\nVous ne pouvez UNSUSPEND que des gens ayant un accès inférieur au votre,\r\ndu moment que le niveau de suspension est également inférieur ou égal à votre propre niveau.
PURGE 1 /msg X purge <#channel> [-noop] <reason>\nPurges a channel. This command is for CService Admins only.\n-noop flag causes no reops during purge
VOICE 2 /msg X voice <#canal> [nick] [nick2] ... [nickN]\r\nVoice (+v) un ou plusieurs nickname dans votre canal.
ADDCOMMENT 1 /msg X addcomment <username> <the comment>\nsets a usercomment for a given username. This command is for Cservice Admins only
NEWPASS 1 From now on all passwords will be done via the webpage. Please visit http://cservice.undernet.org/ and click on "web interface"\nThen login with your OLD password. When the page is loaded click on the "newpass" link on the left hand column and follow the instructions.
ADDUSER 1 /msg X adduser <#channel> <username> <access>\nAdds a user to the channel's userlist. You cannot ADDUSER someone with equal or higher access than your own.
BANLIST 1 /msg X banlist <#channel>\nShows the channel banlist. This command works whether you are on the channel or not.
DEOP 1 /msg X deop <#channel> [nick] [nick2] ... [nickN]\nDeops one or more persons in your channel. If no nick is specified, and you are opped on the channel, X will deop you. \nNOTE: be mindful of triggering the limit that may be in effect with MASSDEOPPRO (see SET MASSDEOPPRO - level 500).
DEVOICE 1 /msg X devoice <#channel> [nick] [nick2] ... [nickN]\nDevoices one or more users in your channel.
HELP 1 /msg X help <command>\nDisplays help information on a given command.
QUOTE 1 Don't touch :p
REGISTER 1 /msg X register <#channel> <username>\nThis command is for CService Admins only.
REHASH 1 /msg X rehash <table>\nThis command is for CService Coders only.
SAY 1 /msg X say <#channel> <text>\nThis command is for CService Admins only.
TOPIC 1 /msg X topic <#channel> <topic>\nMakes X change the topic in your channel (maximum of 145 characters) and includes your username, \nenclosed in parentheses, at the beginning of the topic. \nNOTE: If a DESCRIPTION or URL has been set and AUTOTOPIC is ON,\n the channel topic will be overwritten in 30 minutes, unless the channel is idle.
UNBAN 1 /msg X unban <#channel> <nick | *!*user@*.host>\nRemoves a *!*user@*.host from the X banlist of your channel and any matching bans from the channel banlist also. \nYou can only remove bans from X's banlist that are equal to or lower than your own access. \nTo search X's banlist, refer to the LBANLIST command (level 0).
UNFORCE 1 /msg X unforce <#channel>\nThis command is for CService Admins only.
UNSUSPEND 1 /msg X unsuspend <#channel> <username>\nUnsuspends a user's access to X on your channel's userlist. \nYou can only UNSUSPEND someone with access lower than your own,\nprovided that the suspension level is also less than or equal to your own access level.
VERIFY 1 /msg X verify <nick>\nDisplays whether or not a person is logged in, and if so displays their username\nAnd also indicates whether or not they are an Official CService Administrator or Representative, and/or an IRC Operator.
VOICE 1 /msg X voice <#channel> [nick] [nick2] ... [nickN]\nVoices one or more users in your channel.
ACCESS 1 /msg X access <#channel> <*|pattern|username|=nickname> [-min <level>] [-max <level>] [-modif] [-none|-voice|-op]\nCan look up the access for a certain person or a string. The information indicates level,\nsuspension status and level if suspended, and when the user was last seen.\nIf there are more than 15 entries, go to http://cservice.undernet.org/live/ and login\nto see the entire list by clicking on the "Channel Information" link and submitting the channel name. \nYou can also use and mix these options instead of a username or string to get specific results.
BAN 1 /msg X ban <#channel> <nick|*!*user@*.host> [duration] [level] [reason]\nAdds a specific *!*user@*.host to the X banlist of your channel.\nYou may place a ban on a nick if the person is online or ban their *!*user@*.host if the person is not online. \nBans that cover a broader range than previously set bans will replace previous bans.\nAny user in the channel that matches the added ban will be kicked out if the ban level is 75+. \nThe duration can be specified in the following format: 400s, 300m, 200h, 365d (secs,mins,hours,days)\nSpecifying a duration of 0 will set a permanent ban (no expiry)\nThe ban level can range from 1 to your own level. The ban reason can be a maximum of 128 characters long. \nIf no duration or level is specified, the default duration will be 3 hours, and the level will be 75.\nBan Levels: 1-74 = Prevents the user from having ops (+o) on the channel. \nBan Levels: 75-500 = Prevents the user from being in the channel at all.
ADDUSER 2 /msg X adduser <#canal> <utilisateur> <niveau>\r\nAjoute un utilisateur au canal. Vous ne pouvez pas ajouter quelqu'un avec un niveau d'accès égal ou supérieur au votre.
CHANINFO 1 /msg X chaninfo <#channel>\nDisplays whether or not a channel is registered, to whom, and the currently set DESCRIPTION and URL, if any.
CLEARMODE 1 /msg X clearmode <#channel>\nClears all channel modes. Can be used when your channel has been locked up (set +i or +k without your knowledge).\nNOTE: This is not necessarily the best method to gain entry to your channel,\nbecause other people or bots may be opped in the channel that may reset the modes as you clear them.\nRefer to the STATUS command (level 200) for related information
FORCE 1 /msg X force <#channel>\nLogs you in to a given channel using an administrative access. This is a CService Admin command only.
INFO 1 /msg X info <username>\nDisplays information about a username such as their nick and user@host if they are currently online, \ntheir language and invisible settings, last seen information, and whether they may have been suspended by a CService Administrator. \nIf used on yourself, it also lists all channels which you have access on (only CService and you can see this information, not other users). \nIf you wish to make this information hidden to the public, refer to the SET INVISIBLE command (level 0).
BAN 2 /msg X ban <#canal> <nickname|*!*user@*.host> [durée] [niveau] [raison]\r\nAjoute un *!*user@*.host spécifique à la liste des bans de X de votre canal.\r\nVous pourrez placer un ban en utilisant le nickname si la personne est présente, ou sur le *!*user@*.host si elle ne l'est pas.\r\nLes bans couvrant un plus large masque que des bans mis précédemment remplaceront ces précédents bans.\r\nN'importe quel utilisateur dans le canal qui correspond au ban sera kické hors du canal si le niveau du ban est supérieur a 75.\r\nLe niveau de ban peut aller de 1 à votre niveau. La raison du ban doit comporter un maximum de 128 caractères.\r\nSi aucune durée n'est spécifiée, la durée par defaut sera 3 heures, et le niveau du ban par defaut sera 75.\r\nBan niveau: 1-74 = Empêche l'utilisateur d'être oppé (+o) sur le canal.\r\nBan niveau: 75-500 = Empêche l'utilisateur d'être dans le canal tout court.
INVITE 1 /msg X invite <#channel>\nMakes X invite you to your channel.
ISREG 1 /msg X isreg <#channel>\nCheck if a given channel is registered.
CHANINFO 2 /msg X chaninfo <#canal>\r\nMontre si un canal est enregistré ou non, à qui, et les DESCRIPTION et URL courantes le cas échéant.
REMOVEALL 2 /msg X removeall <#canal>\r\nSupprime tous les accès d'un canal. Cette commande est réservée aux Administrateurs CService.
JOIN 1 /msg X join <#channel>\nMakes X join a channel. If you want X to be in the channel permanetly please refer to the SET AUTOJOIN command (Level 500).
KICK 1 /msg X kick <#channel> <nick|pattern> [reason]\nMakes X kick someone from your channel. If your access level is 200 or higher you can also kick by pattern.
LBANLIST 1 /msg X lbanlist <#channel> <* | *!*user@*.host>\nSearches X's banlist for a certain string. Use * to see the whole list, or specify a *!*user@*.host to find a specific ban. \nIf there are more than 15 entries, go to http://cservice.undernet.org/live/ and login to see the entire list\nby clicking on the "Channel Information" link and submitting the channel name.
LOGIN 1 /msg x@channels.undernet.org login <username> <password>\nThis loads your access listing into memory and authenticates you on ALL channels which you have access on simultaneously.
MODINFO 1 /msg X modinfo <#channel> <access|automode> <username> <value>\nThe following commands can be used to make changes to existing users in your channel's userlist.\nYou cannot modify someone with an equal or higher level.\nWith the variable access you can change a users accesslevel. The range is 1 to your own level - 1.\nThe automode variable allows you to set mode none, voice or op.\nBased on this setting a user can be voiced, oped when he enters the channel.
DEVOICE 12 /msg X devoice <#kanal> [rumuz] [rumuz2] ... [rumuzN]\r\nKanalýnýzda bir ya da daha fazla kiþiden söz hakkýný alýr.
CLEARMODE 2 /msg X clearmode <#canal>\r\nSupprime tous les modes du canal. Peut être utilisé lorsque votre canal à été bloqué (mis +i ou +k sans votre consentement).\r\nNOTE: Ceci n'est pas forcément la meilleur méthode pour entrer dans votre canal,\r\ncar d'autres personnes ou robots peuvent être oppé dans le canal et peuvent remettre les modes dès que vous les supprimez.\r\nVoyez la commande STATUS (niveau 200) pour d'autres informations
ACCESS 12
DEOP 2 /msg X deop <#canal> [nick] [nick2] ... [nickN]\r\nDéoppe une ou plusieurs personnes dans votre canal. Si aucun nickname n'est spécifié X vous déopera vous.\r\nNOTE: Tâchez de ne pas dépasser la limite MASSDEOPPRO (voir SET MASSDEOPPRO - niveau 500).
DEVOICE 2 /msg X devoice <#canal> [nick] [nick2] ... [nickN]\r\nDévoice (-v) un ou plusieur utilisateurs dans votre canal.
FORCE 2 /msg X force <#canal>\r\nVous loggue dans le canal spécifié en utilisant un accès administrateur. Cette commande est reservée aux Administrateurs CService.
ADDCOMMENT 2 /msg X addcomment <utilisateur> <le commentaire>\r\nDéfini un commentaire utilisateur pour l'utilisateur spécifié. Cette commande est réservée aux Administrateurs CService.
HELP 2 /msg X help <commande>\r\nAffiche l'aide pour la commande spécifiée.
INFO 2 /msg X info <utilisateur>\r\nAffiche des informations sur un utilisateur CService, telles que son nom nickname et user@host si il est en ligne,\r\nson language et savoir si il est invisible, l'heure de la dernière fois ou l'utilisateur à été vu, et si il a été suspendu par un Administrateur CService.\r\nSi vous l'utilisez sur vous-même, celà listera également les canaux auquels vous avez accès (seulement CService et vous même pouvez voir cette information, pas les autres utilisateurs).\r\nSi vous souhaitez cacher cette information au public, voir à la commande SET INVISIBLE (niveau 0).
INVITE 2 /msg X invite <#canal>\r\nDemandes à X de vous inviter sur le canal spécifié.
ISREG 2 /msg X isreg <#canal>\r\nVérifie si le canal spécifié est enregistré.
JOIN 2 /msg X join <#canal>\r\nDemandes à X de joindre un canal. Si vous souhaitez que X reste en permanence dans votre canal, voyez la commande SET AUTOJOIN (niveau 500).
SAY 2 /msg X say <#canal> <texte>\r\nCette commande est réservée aux Administrateurs CService.
SEARCH 2 /msg X search <paramètre_de_recherche>\r\nLances une recherche parmis les canaux de X où le paramètre de recherche spécifié correspond à un des mots clés d'un canal.\r\nL'utilisation de wildcards (*) n'est pas requis.
SERVNOTICE 2 /msg X servnotice <#canal> <texte>\r\nCette commande est réservée aux Administrateurs CService.
KICK 2 /msg X kick <#canal> <nickname|chaine> [raison]\r\nDemandes à X d'éjecter quelqu'un du canal spécifié.\r\nSi vous avez un niveau 200 ou supérieur vous pouvez également éjecter selon une chaine de caractère contenu dans le user@host.
SHOWCOMMANDS 2 /msg X showcommands <#canal>\r\nMontre les commandes disponibles pour vous sur le canal spécifié.
SHOWIGNORE 2 /msg X showignore\r\nMontre la liste des user@host ignorés pas X. X ignore lorsque quelqu'un exprès ou par accident le flood.\r\nLa durée de l'ignore est de 60 minutes.\r\nNote: X ne vous répondra pas si vous êtes ignoré. Si vous ne recevez pas de réponses de X,\r\ndemandez à un ami de vérifier la liste des user@host ignorés pour vous.
LBANLIST 2 /msg X lbanlist <#canal> <* | *!*user@*.host>\r\nEffectue une recherche dans la liste des BANs de X sur une certaine chaine de caractères.\r\nUtilisez * pour voir la liste complète, ou bien spécifiez un *!*user@*.host pour trouver un BAN spécifique.\r\nSi il y a plus de 15 résultats, allez sur http://cservice.undernet.org/live/ et logguez vous pour voir la liste complète\r\nen cliquant sur le lien "Channel Information" et en soumettant le nom du canal.
LOGIN 2 /msg X@channels.undernet.org login <utilisateur> <mot_de_passe>\r\nCeci charge votre accès dans la mémoire de X et vous authentifie sur tous les canaux auquels vous avez accès.
MODINFO 2 /msg X modinfo <#canal> <ACCESS|AUTOMODE> <utilisateur> <valeur>\r\nCette commande peut être utilisée pour effectuer des changement sur des utilisateurs ayant un accès sur le canal spécifié.\r\nVous ne pouvez pas modifier quelqu'un ayant un niveau supérieur ou égal au votre.\r\nAvec la variable ACCESS vous pouvez changer le niveau d'un utilisateur. De 1 à ( votre_niveau - 1 ).\r\nLa variable AUTOMODE permets de définir NONE, VOICE or OP comme valeurs.\r\nBasé sur ces règlages, un utilisateur peut être voicé ou oppé lorsqu'il entre dans le canal.
MOTD 2 /msg X motd\r\nAffiche le message du jour de X.
STATS 2 /msg X stats\r\nCette commande est réservée aux Administrateurs CService.
REMIGNORE 1 /msg X remignore <*!*host@mask>\nremoves a user@host from the ignore list. This is a CService Admin command only.
STATUS 2 /msg X status <#canal>\r\nDonnes des informations sur les utilisateurs loggués sur le canal, etc.\r\nX ne donnera pas les modes (+nt etc.) a quelqu'un avec un niveau d'accès inférieur à 200.
VERIFY 2 /msg X verify <nickname>\r\nAffiche si la personne est logguée ou non, et si oui, sous quel nom d'utilisateur\r\net indique aussi si la personne est un Administrateur CService, ou un Représentant, et/ou un Opérateur IRC.
REMUSER 2 /msg X remuser <#canal> <utilisateur>\r\nSupprime l'utilisateur spécifié du canal spécifié. Vous devez avoir un accès supérieur à l'accès de l'utilisateur que vous souhaitez effacer.\r\nVous pouvez également vous enlever de n'importequel canal,\r\ntant que vous n'en êtes pas le propriétaire (niveau 500 sur ce canal).\r\nLes propriétaires qui veulent se supprimer de leur canal doivent purger leur canal.
PANIC 2 Cette commande ne devrait jamais être utilisée.\r\nL'utiliser serait mal.\r\nMal comment ?\r\nEssayez d'imaginer la vie s'arrêtant instantanément, et chaque molécule de votre corps explosant à la vitesse de la lumière.
DEOP 12 /msg X deop <#kanal> [rumuz] [rumuz2] ... [rumuzN]\r\nKanalýzdaki bir ya da daha fazla kiþinin operatörlüðünü alýr.\r\nEðer hiçbir rumuz belirtilmezse, ve siz kanalda operatör iseniz, X sizin operatörlüðünüzü alýr.\r\nNOT: MASSDEOPPRO özelliðindeki limiti aþmamanýz konusunda dikkatli olun.
INVITE 12 /msg X invite <#kanal>\r\nX'in sizi kanalýnýza davet etmesini saðlar.
REMOVEALL 1 /msg X removeall <#channel>\nRemoves all accesses from a channel. This command is for CService Admins only.
REMUSER 1 /msg X remuser <#channel> <username>\nRemoves a user from the channel database. You must have higher access than the user you want to remove. \nYou can also remove yourself from any channel,\nas long as you are not the channel manager (500 access level in that channel).\nManagers wishing to remove themselves will need to purge their channel.
SUSPEND 12 /msg X suspend <#kanal> <kullanýcý_adý> <zaman_aralýðý(M|H|D)> [seviye]\r\nBelirtilen süre boyunca, kiþinin, kanalýnýzda X'e olan eriþimini askýya alýr.\r\nEðer hiçbir seviye belirtilmezse belirtilmezse, standart eriþim askýya alma seviyesi komutu kullanan kiþinin seviyesi kadardýr.\r\nYalnýzca kendi eriþim seviyenizden daha düþük olan kiþilere uygulayabilirsiniz.\r\nMaksimum askýya alma süresi 372 gün (8928 saat, 535680 dakika)dürr.
INFO 12 /msg x INFO <kullanýcý_adý>\r\nKullanýcý adý için, eðer IRC'ye baðlý ise,rumuzunu ve user@host'unu, lisan seçeneðini,\r\nson görülme bilgilerini ve eðer bir CService Yöneticisi tarafýndan yetkisinin askýya alýnýp alýnmadýðýný(suspend) bildirir.\r\nEðer bu komutu kendi kendiniz üzerinde kullanýrsanýz ayný zamanda yetkiniz olan kanallarýda listeler(Bu bilgi sadece siz ve CService tarafýndan görülebilir, Diðer kullanýcýlar tarafýndan deðil.)\r\nEðer bu bilgilerin herkese açýk olmasýný istemiyorsanýz; INVISIBLE (seviye 0) komutuna baþvurunuz.\r\n
BANLIST 12 /msg X banlist <#kanal>\r\nKanal yasaklýlar listesini gösterir. Bu komut kanalda olsanýz da olmasanýz da çalýþýr.\r\n
FORCE 12 /msg X force <#kanal>\r\nBelirtilen bir kanala sizi yönetici eriþim ile tanýmlar. Bu komut sadece CService yöneticilerine aittir.
KICK 12 /msg x kick <#kanal> <rumuz> [sebep]\r\nKanalýnýzdan bir kiþiyi atmanýzý saðlar; sebep opsiyoneldir. Rumuzunuz sebep içerisine eklenecektir.\r\n
OP 12 /msg x op <#kanal> [rumuz] [rumuz2] ... [rumuzN]\r\nKanalýnýzdaki bir veya daha fazla kiþiye operatörlük verir. \r\nEðer hiçbir rumuz yazýlmaz ve sizde kanalda operatör deðilseniz, X size operatörlük verir.
MODINFO 12
SET 12
SET AUTOJOIN 12
SET INVISIBLE 12
SET MASSDEOPPRO 12
ACCESS 11
ADDCOMMENT 11
ADDUSER 11
BAN 11
BANLIST 11
CHANINFO 11
CLEARMODE 11
DEOP 11
DEVOICE 11
FORCE 11
HELP 11
INFO 11
INVITE 11
ISREG 11
JOIN 11
KICK 11
LBANLIST 11
LOGIN 11
MODINFO 11
MOTD 11
NEWPASS 11
OP 11
OPERJOIN 11
OPERPART 11
PANIC 11
PART 11
PURGE 11
QUOTE 11
REGISTER 11
REHASH 11
REMIGNORE 11
REMOVEALL 11
REMUSER 11
SAY 11
SEARCH 11
SERVNOTICE 11
SET 11
SET AUTOJOIN 11
SET INVISIBLE 11
SET MASSDEOPPRO 11
SHOWCOMMANDS 11
SHOWIGNORE 11
STATS 11
STATUS 11
SUPPORT 11
SUSPEND 11
TOPIC 11
UNBAN 11
UNFORCE 11
UNSUSPEND 11
VERIFY 11
VOICE 11
ACCESS 13
ADDCOMMENT 13
ADDUSER 13
BAN 13
BANLIST 13
CHANINFO 13
CLEARMODE 13
DEOP 13
DEVOICE 13
FORCE 13
HELP 13
INFO 13
INVITE 13
ISREG 13
JOIN 13
KICK 13
LBANLIST 13
LOGIN 13
MODINFO 13
MOTD 13
NEWPASS 13
OP 13
OPERJOIN 13
OPERPART 13
PANIC 13
PART 13
PURGE 13
QUOTE 13
REGISTER 13
REHASH 13
REMIGNORE 13
REMOVEALL 13
REMUSER 13
SAY 13
SEARCH 13
SERVNOTICE 13
SET 13
SET AUTOJOIN 13
SET INVISIBLE 13
SET MASSDEOPPRO 13
SHOWCOMMANDS 13
SHOWIGNORE 13
STATS 13
STATUS 13
SUPPORT 13
SUSPEND 13
TOPIC 13
UNBAN 13
UNFORCE 13
UNSUSPEND 13
VERIFY 13
VOICE 13
ACCESS 14
ADDCOMMENT 14
ADDUSER 14
BAN 14
BANLIST 14
CHANINFO 14
CLEARMODE 14
DEOP 14
DEVOICE 14
FORCE 14
HELP 14
INFO 14
INVITE 14
ISREG 14
JOIN 14
KICK 14
LBANLIST 14
LOGIN 14
MODINFO 14
MOTD 14
NEWPASS 14
OP 14
OPERJOIN 14
OPERPART 14
PANIC 14
PART 14
PURGE 14
QUOTE 14
REGISTER 14
REHASH 14
REMIGNORE 14
REMOVEALL 14
REMUSER 14
SAY 14
SEARCH 14
SERVNOTICE 14
SET 14
SET AUTOJOIN 14
SET INVISIBLE 14
SET MASSDEOPPRO 14
SHOWCOMMANDS 14
SHOWIGNORE 14
STATS 14
STATUS 14
SUPPORT 14
SUSPEND 14
TOPIC 14
UNBAN 14
UNFORCE 14
UNSUSPEND 14
VERIFY 14
VOICE 14
JOIN 12 /msg x join <#kanal>\r\nKanalýnýza X'in katýlmasýný saðlar.
VERIFY 12 /msg X verify <rumuz>\r\nBir kiþinin, resmi bir CService yöneticisi ya da temsilcisi olup olmadýðýný\r\nveya IRC operatörlük durumunu, eðer tanýmlanmýþsa, kullanýcý adýný bildirir.
VOICE 12 /msg X voice <#kanal> [rumuz] [rumuz2] ... [rumuzN]\r\nKanalýnýzda bir ya da daha fazla kiþiye söz hakký verir.
ADDCOMMENT 12 /msg X addcomment <kullanýcý_adý> <yorum>\r\nVerilen bir kullanýcý adýna ek bilgi(yorum)\r\neklemek için sadece CService Yöneticileri tarafýndan kullanýlýr.
ISREG 12 Bu komut ile ilgili bir yardým bulunmamaktadýr.
ADDUSER 12 /msg X adduser <#kanal> <kullanýcý_adý> <eriþim>\r\nKanal eriþim listesine yeni bir kullanýcý ekler.\r\nKendi eriþimi seviyenize eþit ya da büyük bir deðerle ekleme YAPAMAZSINIZ.
UNSUSPEND 12 /msg X unsuspend <#kanal> <kullanýcý_adý>\r\nKanalýzda eriþim listesinde bulunan kiþinin, eriþiminin askýya alýnma durumunu iptal eder.\r\nKendininzden düþük eriþimdeki kimseye uygulayabilirsiniz. \r\nAyrýca askýya alma seviyesininde sizin seviyenize eþit yada daha az olmasý gerekmektedir.
LBANLIST 12 /msg x lbanlist <#kanal> <* | *!*user@*.host>\r\nBelirli dizin için X'in yasaklýlar listesini araþtýrýr.\r\nTüm listeyi görmek için * iþaretini kullanabilir, ya da belirli bir yasaklýyý görmek için *!*user@*.host kullanabilirsiniz.\r\n
PANIC 12 Bu komut ile ilgili bir yardým bulunmamaktadýr.
BAN 12 /msg X ban <#kanal> <rumuz| *!*user@*.host> [zaman] [seviye] [sebep]\r\nKanalýnýzýn yasaklýlar listesine belirli bir *!*user@*.host ekler.\r\nKiþi IRC'ye baðlýysa rumuzunu, baðlý deðilse *!*user@*.host bilgisini yazmanýz gerekir.\r\nkoyulan bir yasaklama eski yasaklamalarý içeriyorsa, yenisiyle deðiþtirilirler.\r\nolarak belirlenebilir.\r\nYasaklama seviyesi 1'den kendi seviyenize kadar deðiþebilir. Ban sebebi en fazla 128 karakter olabilir.\r\nEðer hiçbir deðerlik belirtilmezse zaman 3 saat, seviye ise 75 olarak belirlenir.\r\nYasaklama seviyeleri: 1-74 = kanalda operatörlük (+o) almasýný engeller.\r\nYasaklama seviyeleri: 75+ = Kiþinin kanalda bulunmasýný engeller.\r\n
SUPPORT 12 /msg X support <#kanal> <yes|no>\r\nDestekleyici olarak listelendiðiniz bir kanalýn baþvurusunda, kanala verdiðiniz desteði doðrulamak ya da reddetmek için alternatif bir yöntemdir.\r\nTanýmlanmanýzla birlikte, X sizi destekleyici olarak listelenmiþ olduðunuz kanal hakkýnda uyaracak ve ayrýca SUPPORT komutunu kullanmanýzý isteyecektir. \r\nAlternatif olarak, kanal baþvurusu hakkýnda daha fazla bilgi almak için siteye bakabilir, itiraz yollayabilir ve desteðinizi onaylayabilir ya da reddedebilirsiniz.\r\nEðer kanal için bir destekleyici olarak listelenmemiþseniz ya da kanalýn beklemede olan bir baþvurusu yoksa komut etkili olmayacaktýr.
QUOTE 12 Bu komut ile ilgili bir yardým bulunmamaktadýr.
LOGIN 12 /msg x@channels.undernet.org login <kullanýcý_adý> <þifre>\r\nEriþim listelenmenizi hafýzaya alýrken, eþzamanlý olarak, eriþimli olduðunuz tüm kanallarda tanýmlanmanýzý saðlar.\r\n
MOTD 12 /msg x motd\r\nX'in günün mesajýný görüntüler.
NEWPASS 12 /msg x@channels.undernet.org newpass <yeni þifre>\r\nKullanýcý adýnýz için þifrenizi deðiþtirmenizi saðlar. \r\nKomutun þifrenizi deðiþtirmede baþarýlý olmasý için, eski þifreniz ile tanýmlanmýþ olmanýz gereklidir.\r\nÞifreler durum hassasiyetli, yani büyük küçük karakter önemlidir.\r\nÖrneðin: "CService", "cservice" deðildir.\r\nÞifreler, keþfedilmelerinin zorlaþmasý açýsýndan, bir kelimeden uzun olabilirken, bir cümle ya da deyim olmasý dahi mümkündür.\r\nSizi, bu özelliði kullanmanýz için teþvik ediyoruz. En fazla uzunluk 50 karakterdir.\r\nÖrneðin, bir þifre þu olabilir: "Undernet Kanal Servisi"\r\n
REGISTER 12 /msg X register <#kanal> <kullanýcý_adý>\r\nBu komut sadece CService Yöneticileri tarafýndan kullanýlýr.
CLEARMODE 12 /msg X clearmode <#kanal>\r\nTüm kanal modlarýný temizler. Kanalýnýz kilitlendiði zaman kullanabilirsiniz\r\n(bilginiz olmadan +i ya da +k konulmasý gibi).\r\nNOT: Bu kanalýnýza giriþinizi kazanmanýz için, uygulanmasý gereken en iyi çözüm yöntemi deðildir.\r\nÇünkü diðer kullanýcýlar ya da botlar, siz kodlarý sildikçe yeniliyor olabilirler.\r\nÝlgili bilgilendirmeler için, STATUS komutuna (seviye 200) baþvurunuz.
REHASH 12 /msg X rehash <table>\r\nBu komut sadece CService Geliþtiricileri tarafýndan kullanýlabilir.
SEARCH 1 /msg X search <search parameter>\nMakes X list channels where the given search parameters match set keywords on the channel, if any.\nThe use of wildcards are not required.
SET 2 /msg X set invisible <yes/no>\r\nChange le status invisible/visible pour votre nom d'utilisateur.\r\nQuand c'est ON (yes), un autre utilisateur ne peux pas voir\r\nsi vous êtes loggué à X ou non, si il ne connais pas votre nickname.\r\n\r\n/msg X set lang <code de langue>\r\nAvec cette commande vous pouvez spécifier dans quel language vous souhaitez que X vous parle.\r\nLanguages disponibles :\r\ndk - Danois, en - Anglais, es - Espagnol, fr - Français, hu - Hongrois,\r\nit - Italien, no - Norvegien, ro - Roumain, tr - Turque...\r\n\r\n/msg X set <#canal> <parametre> <valeur> \r\nCette commande vous permet de définir les parametres de votre canal.\r\nAUTOJOIN [on/off] - Quand c'est "ON" X joindra tout le temps votre canal, quand c'est "OFF"\r\n ca le fera partir si il est sur le canal, et/ou ne pas revenir après un split.\r\nMASSDEOPPRO [1-7] - Le nombre maximum de déops que X autorisera par période de 15 secondes.\r\nNOOP [on/off] - Quand c'est "ON", seul X peut être oppé, il deoppera tous les autres.\r\nSTRICTOP [on/off] - Ceci à "ON" n'autorise que les niveaux 100 et + authentifiés à être oppé.\r\nAUTOTOPIC [on/off] - Ceci à "ON" fait que X remette le topic avec DESCRIPTION et URL toutes les 30 minutes. \r\n Noter que si le canal est idle, le topic ne sera pas remis durant cette periode d'inactivité.\r\nDESCRIPTION [description] - Défini la DESCRIPTION par défaut du cananl (autotopic) (maximum de 80 caractères). \r\nKEYWORDS [keywords] - Défini les mots clés qui permettrons de trouver votre canal avec la commande SEARCH (niveau 0).\r\nMODE - Ceci sauvegardera les modes (+spntmilk) de votre canal dans le mode par défaut.\r\nURL [url] - Vous pouvez définir l'URL de la page d'accueil de votre canal avec ceci (maximum de 75 caractères)\r\nUSERFLAGS [0-2] - Determine si OP ou VOICE seront automatiquement défini pour les AUTOMODE\r\n quand un nouveau utilisateur est ajouté à X. La valeur par défaut est 0 (aucun).\r\n valeurs: 0: aucun 1: OP 2: VOICE
OP 1 /msg X op <#channel> [nick] [nick2] ... [nickN]\nOps one or more persons in your channel. If no nick is specified, and you are not opped on the channel, X will op you.
SUPPORT 2 /msg X support <#canal> <yes/no>\r\nUne autre méthode pour vous permettre de supporter ou de refuser le support pour une nouvelle application de canal\r\ndans laquelle vous êtes listé comme supporter. Lors de votre authentification X vous préviendra de toute application\r\nou vous serez listé comme supporter et vous préviendra également pour cette commande SUPPORT.\r\nVous pouvez également souhaiter voir l'application pour avoir plus d'informations,\r\nposter une objection, et confirmer ou refuser votre support.\r\nLa commande ne fonctionnera pas si vous n'êtes pas listé comme supporter pour le canal,\r\nou que le canal n'a pas d'application en cours sur le web.
OPERJOIN 1 /msg X operjoin <#channel>\nThis makes X join a given channel. This is an IRC Operator command only and should only be used to fix desynches.
SUSPEND 2 /msg X suspend <#canal> <utilisateur> <durée(M|H|D)> [niveau]\r\nSuspend l'accès à X d'un utilisateur sur votre canal pour la durée spécifiée, au niveau spécifié.\r\nSi le niveau n'est pas spécifié, le niveau de l'utilisateur envoyant la commande sera utilisé par defaut.\r\nVous ne pouvez suspendre que des gens ayant un niveau inférieur au votre. La durée maximale est de 372 days (8928 hours, 535680 minutes).
PANIC 1 This command should never be used.\nUsing it would be bad.\nHow bad?\nTry to imagine all life stopping instantaniously, and every molecule in your body exploding at the speed of light.
TOPIC 2 /msg X topic <#canal> <titre>\r\nFait que X change le topic (titre du canal) dans votre canal (maximum 145 caractères)\r\net ajoute votre nom d'utilisateur, entre parenthèses, au début du <titre> spécifié.\r\nNOTE: Si une DESCRIPTION ou une URL ont été définies et que AUTOTOPIC est à ON,\r\nle <titre> de canal sera remis toutes les 30 minutes, à moins que le canal ne soit idle.
OPERPART 1 /msg X operpart <#channel>\nThis makes X part a given channel. This is an IRC Operator command only and should only be used to fix desynches.
TOPIC 12 /msg x topic <#kanal> <baþlýk>\r\nKanal baþlýðýný, baþlýk baþlangýcýna, parantez içerisinde kullanýcý adýnýzý barýndýrarak deðiþtirecektir (en fazla 145 karakter).\r\nNOT: Eðer DESCRIPTION ya da URL belirlenmiþse, kanala giriþ çýkýþ olduðu sürece, 30 dakika içinde deðiþecektir.
UNFORCE 12 /msg X unforce <#kanal>\r\nBu komut sadece CService Yöneticileri tarafýndan kullanýlabilir.
UNBAN 12 /msg x unban <#kanal> <rumuz | *!*user@*.host>\r\n*!*user@*.host deðerliðini ve diðer benzer yasaklamalarý, kanal yasaklýlar listenizden çýkarýr.\r\nAncak kendi seviyenize eþit ya da daha düþük olan yasaklamalarý, X'in yasaklýlar listesinden çýkarabilirsiniz.\r\nX'in yasaklýlar listesinde arama yapmak için, LBANLIST (seviye 0) komutuna baþvurunuz.\r\n
STATUS 12 /msg x status #kanal\r\nKanal modlarýnýn (+tn vb.) 200 eriþim altýndakilere bildirilmemesinin haricinde, seviye 200'deki STATUS komutuyla ayný þeyi yapar.
PART 12 /msg x part <#kanal>\r\nX'in kanalda ayrýlmasýný saðlar. Eðer X'in kanalýnýzdan uzun bir zaman için ayrýlmasýný istiyorsanýz SET AUTOJOIN komutunu kullanýnýz.
REMIGNORE 12 /msg X remignore <*!*host@mask>\r\nBir user@host'u aldýrmama(ignore) listesinden silmek için sadece CService Yöneticileri tarafýndan kullanýlabilen bir komuttur.
REMOVEALL 12 /msg X removeall <#kanal>\r\nBir kanaldaki tüm yetkileri silmek için sadece CService Yöneticileri tarafýndan kullanýlabilen komuttur.
REMUSER 12 /msg x remuser <#kanal> <kullanýcý_adý>\r\nBir kullanýcýyý yetki veri bankasýndan silmeyi saðlar. \r\nKullanýcýyý silmek için yetkinizin silmek istediðiniz kiþinin yetkisinden daha fazla olmasý þarttýr.\r\nBu seviyede ve üzerinde, 500 eriþimli yani kanal sahibi olmadýðýnýz sürece kendinizi herhangi bir kanaldan silebilirsiniz. \r\nKendilerini silmek isteyen kanal sahipleri için, kanallarýný kapattýrmalarý gereklidir.\r\n
SAY 12 /msg X say <#kanal> <yazý>\r\nBu komut sadece CService Yöneticileri tarafýndan kullanýlabilir.
SEARCH 12 /msg x search <arama parametresi>\r\nVerdiðiniz ve bir kanal için nitelendirilmiþ arama parametrelerinin, eðer varsa, bulunduðu kanallarý listeler.
SERVNOTICE 12 /msg X servnotice <#kanal> <yazý>\r\nBu komut sadece CService Yöneticileri tarafýndan kullanýlabilir.
STATS 12 /msg X stats\r\nBu komut sadece CService Yöneticileri tarafýndan kullanýlabilir.
SHOWIGNORE 12 /msg X showignore\r\nX'in komutlarýna aldýrmadýðý kiþilerin listesini gösterir. \r\nX'in bu "komutlara aldýrmama iþlemi" bir kiþinin isteyerek ya da kaza ile X'e aþýrý komut gönderimi yapmasýyla gerçekleþir.Zaman uzunluðu 60 dakikadýr.\r\nNOT: X'in komutlarýna aldýrmadýðý kiþiler listesinde olduðunuz sürece X size kesinlikle hiç bir yanýt vermeyecektir bu yüzden bu listede olup olmadýðýnýzý bir arkadaþýnýz yardýmý ile kontrol etmelisiniz.
SHOWCOMMANDS 12 /msg x showcommands [#kanal]\r\nEriþim seviyenize göre, kanalda kullanabilceðiniz tüm komutlarý listeler.\r\nEðer hiçbir kanal belirtilmezse, sadece 0 eriþim komutlarý görüntülenir.\r\n
PURGE 12 /msg X purge <#kanal> <sebep>\r\nKanal kayýdýný siler. Sadece CService Yöneticileri tarafýndan kullanýlabilir.
OPERJOIN 12 /msg X operjoin <#kanal>\r\nX'i belirtilen bir kanala getirir. Sadece IRC Operatörleri tarafýndan, desynch durumlarýný düzeltmek amacý ile kullanýlýr.
OPERPART 12 /msg X operjoin <#kanal>\r\nX'i belirtilen bir kanaldan çýkartýr. Sadece IRC Operatörleri tarafýndan, desynch durumlarýný düzeltmek amacý ile kullanýlýr.
SUSPENDME 8 Type /msg X@channels.undernet.org SUSPENDME <parola>\nAceasta comandaeste pentru a putea fi folosita in situatia in care tu crezi ca username-ul tau este compromis, si doresti suspendarea imediata a tuturor acceselor pe care le ai.\nTrebuie sa fie mai mult de o persoana logata cu username-ul tau pentru a putea fi folosita aceasta comanda.\nDupa folosirea comenzii, nu mai poti face nimic cu username-ul tau pana cand nu este verificat de un Reprezentant CService.\nPentru a cere UnSuspendarea username-ului scrie un email la Object@Undernet.Org
ACCESS 8 /msg X access <#canal> <*|masca|username|=nickname> [-min <nivel>] [-max <nivel>] [-modif] [-none|-voice|-op]\nSe poate verifica accesul unei persoane sau a unei masti. Informatia indica nivelul, suspendarea (daca este cazul), si cand a fost vazut ultima oara userul.\nDaca sunt mai mult de 15 accese, du-te la http://cservice.undernet.org/live/ si logheaza-te, ca sa vezi intreaga lista da click pe optiunea "Channel Information" si completeaza numele canalului. \nDe asemenea puteti sa folositi deodata optiunile il locul username-ului sau mastii pentru a afla un anume rezultat.
ADDCOMMENT 8 /msg X addcomment <username> <comentariu>\nSeteaza un comentariu la un username dat. Aceasta comanda este numai pentru Adminii CService.
ADDUSER 8 /msg X adduser <#canal> <username> <acces>\nAdauga un user la lista de accese a canalului. Nu poti folosi comanda ADDUSER la cineva care are access egal sau mai mare ca al tau.
BAN 8 /msg X ban <#canal> <nick | *!*user@*.host> [perioada] [nivel] [motiv]]\nAdauga un ban pe un *!*user@*.host specificat la lista de banuri a lui X.\nPoti pune un ban pe un nick, daca persoana este conectata, sau sa dai ban pe *!*user@*.host daca nu e online.\nBanuri care acopera un ban dat anterior va inlocui primul ban.\nOrice user de pe canal la care is se potriveste addresa banata va primi kick, daca nivelul pe care e dat banul e 75+.\nDrata poate fi specificata in urmatorul format: 400s, 300m, 200h, 365d (secunde,minute,ore,zile).\nSpecificand o durata cu valoarea 0 va seta BAN-ul ca si permanent (no expiry).\nNivelul banului poate lua valori intre 1 si nivelul accesului tau pe canal. Motivul de ban poate avea maxim 128 de caractere.\nDaca nu este specificata durata sau motivul, durata defaul va fi de 3 ore, iar nivelul de ban este 75.\nNiveluri de Ban: 1-74 = Interzice unui user sa fie operator (+o) pe canal.\nNiveluri de Ban: 75-500 = Interzice unui user sa fie pe canal.
BANLIST 8 /msg X banlist <#canal>\nArata lista de banuri a canalului. Aceasta comanda merge chiar daca sunteti sau nu pe canal.
TOPIC 8 /msg X topic <#canal> <topic>\nX va schimba topicul (maxim 145 caractere) si va include username-ul tau intre paranteze, la inceputul topicului. \nNOTA: Daca DESCRIPTION sau URL-ul a fost setat si AUTOTOPIC este ON, topicul va fi resetat peste 30 de minute, daca canalul nu e idle.
CLEARMODE 8 /msg X clearmode <#canal>\nSterge toate modurile canalului. Poate fi folosita cand canalul a fost inchis (set +i sau +k fara cunostinta ta).\nNOTA: Aceasta nu este neaparat cea mai buna metoda de a intra pe canal, deoarece alti useri sau boti care sunt operatori pe canal pot reseta modurile dupa ce le-ai sters. \nVezi comanda STATUS (nivel 200) pentru alte informatii.
SERVNOTICE 1 /msg X servnotice <#channel> <text>\nThis command is for CService Admins only.
SET MODE 1 /msg X set <#channel> MODE\nThis will save the current channel modes as default.
SUSPEND 1 /msg X suspend <#channel> <username> <duration<M|H|D>> [level]\nSuspends a user's access to X on your channel's userlist for the specified period of time, at the specified level if given.\nIf a level is not specified, the default suspension level used will be the access level of the issuer. \nYou can only SUSPEND someone with access lower than your own. The maximum duration is 372 days (8928 hours, 535680 minutes).
CHANINFO 8 /msg X chaninfo <#canal>\nArata daca canalul este sau nu inregistat, userul managerului, si actuala DESCRIPTION si URL, daca exista.
NEWPASS 2 Désormais, les changements de mot de passe devront être effectués en utilisant la page web.\nAllez à http://cservice.undernet.org/live/ et logguez vous avec votre ancien mot de passe.\nQuand la page est chargée, cliquez sur le lien "newpass" dans le menu de gauche et suivez les instructions.
DEOP 8 /msg X deop <#canal> [nick] [nick2] ... [nickN]\nDeopeaza una sau mai multe persoane din canal. Daca nu e specificat nici un nick si esti operator pe canal, X te va deopa. \nNOTA: Fi atent la limita care este setata la MASSDEOPPRO (vezi SET MASSDEOPPRO - nivel 500).
DEVOICE 8 /msg X devoice <#canal> [nick] [nick2] ... [nickN]\nDa devoice unuia sau mai multor useri de pe canal.
FORCE 8 /msg X force <#canal>\nTe logheaza pe un canal dat si poti folosi un acces administrativ. Aceasta comanda este doar pentru Adminii CService.
HELP 8 /msg X help <comanda>\nArata informatia de ajutor pentru o anume comanda.
INFO 8 /msg X info <username>\nArata informatii despre un username cum ar fi nick-ul si user@host daca sunt conectati, limba aleasa, cand a fost vazut ultima data si setarile de invisible, si daca aveti suspend de la un CService Administrator. \nDaca este folosita pe userul personal, va arata deasemenea si e-mail-ul dumneavoastra inregistrat, ultimul hostmask in formatul (nick!userid@host) folosit cand username-ul a fost logat , va lista toate canalele pe care ai acces (doar CService si tu pot vedea aceasta informatie, nu si alti useri). \nDaca doresti sa ascunzi aceste informati, vezi comanda SET INVISIBLE (Nivel 0).
INVITE 8 /msg X invite <#canal>\nX te va invita pe canal.
ISREG 8 /msg X isreg <#canal>\nVerifica daca un canal dat este inregistrat.
JOIN 8 /msg X join <#canal>\nIl face pe X sa intre pe canal. Daca vrei ca X sa fie pe canal permanent atunci uite-te la comanda SET AUTOJOIN (Nivel 500).
KICK 8 /msg X kick <#canal> <nick|pattern> [motiv]\nIl face pe X sa ii dea kick cuiva de pe canalul tau. Daca nivel tau de acces este 200 sau mai mare poti da kick prin model.
LBANLIST 8 /msg X lbanlist <#canal> <* | *!*user@*.host>\nCauta in lista de banuri a lui X pentru o anumita masca. Folositi * pentru a vedea intreaga lista, sau specifica un *!*user@*.host pentru a gasi un ban anume. \nDaca sunt mai mult de 15 banuri du-te la http://cservice.undernet.org/live/ si logheaza-te, ca sa vezi intreaga lista da lick pe optiunea "Channel Information" si completeaza numele canalului.
LOGIN 8 /msg x@channels.undernet.org login <username> <parola>\nAceasta incarca accesele tale in memorie si te autentifica pe TOATE canalele pe care ai access.
MODINFO 8 /msg X modinfo <#canal> <access|automode> <username> <valuare>\nAceste comenzi pot fi folosite pentru a face schimbari userilor existenti in lista de accese a canalului.\nNu poti modifica pe cineva care are acces egal sau mai mare decat at tau.\nCu aceasta variabila poti schimba accesul cuiva. Poti da acces cu 1 mai putin nivelului tau.\nVariabila automode iti da dreptul sa setezi modul cuiva none, voice sau op.\nPe baza acestei setari un user poate avea voice, op cand intra pe canal.
MOTD 8 /msg X motd\nArata mesajul zilei a lui X.
NEWPASS 8 De acum inainte toate schimbarile de parola se vor face doar prin website. Viziteaza http://cservice.undernet.org/ si da click pe "web interface" , apoi logheaza-te cu VECHEA ta parola. Cand pagina s-a incarcat da click pe link-ul "newpass" din coloana din stanga si urmeaza instructiunile.
OP 8 /msg X op <#canal> [nick] [nick2] ... [nickN]\nDa op unei sau mai multor persoane de pe canal. Daca nu e specificat nici un nick si nu esti op pe canal, X iti va da op.
OPERJOIN 8 /msg X operjoin <#canal>\nAceasta comanda il face pe X sa intre pe un canal specificat. Aceasta comanda este o comanda doar pentru IRC Operatori si este folosita doar pentru rezolvarea desincronizarii.
OPERPART 8 /msg X operpart <#canal>\nAceasta comanda il face pe X sa plece pe un canal specificat. Aceasta comanda este o comanda doar pentru IRC Operatori si este folosita doar pentru rezolvarea desincronizarii.
UNBAN 8 /msg X unban <#canal> <nick | *!*user@*.host>\nSterge o masca *!*user@*.host din lista de banuri a lui X si orice ban care se potriveste cu adresa. \nPoti sterge banuri din lista lui X daca sunt egale sau mai mici ca nivel cu nivelul tau de pe canal. \nPentru a cauta in lista de banuri a lui X vezi comanda LBANLIST (nivel 0).
PANIC 8 Aceasta comanda nu trebuie folosita.\nFolosind-o ar fi un lucru rau.\nCat de rau?\nIncearca sa-ti imaginezi toata viata oprindu-se instantaneu, si fiecare molecula din corpul tau explodand la viteza luminii.
PART 8 /msg X part <#canal>\nX va iesi de pe canalul tau. Daca vrei sa scoti X de pe canal pentru o mai lunga perioada de timp uite-te la comanda ET AUTOJOIN (Nivel 500).
PURGE 8 /msg X purge <#canal> <motiv>\nPurjeaza un canal. Aceasta comanda este doar pentru Adminii CService.
QUOTE 8 Nu te atinge :P
REGISTER 8 /msg X register <#canal> <username>\nAceasta comanda este doar pentru Adminii CService.
REHASH 8 /msg X rehash <tabel>\nAceasta comanda este doar pentru Programatorii CService.
REMOVEALL 8 /msg X removeall <#canal>\nSterge toate accesele de pe un canal. Aceasta comanda este doar pentru Adminii CService.
UNFORCE 8 /msg X unforce <#canal>\nAceasta comanda este doar pentru Adminii CService.
REMIGNORE 8 /msg X remignore <*!*host@mask>\nSterge un user@host din lista de ignore. Aceasta comanda este doar pentru Adminii CService.
REMUSER 8 /msg X remuser <#canal> <username>\nSterge un user din baza de date a canalului. Trebuie sa ai acces mai mare decat acel user. \nDeasemenea te poti sterge singur de pe orice canal, atat timp cat nu esti managerul de canal (nivel 500 pe acel canal).\nManagerii care vor sa se stearga singuri vor trebui sa ceara "Purge" la canal.
SAY 8 /msg X say <#canal> <text>\nAceasta comanda este doar pentru Adminii CService.
SEARCH 8 /msg X search <parametri de cautare>\nIl face pe X sa listeze canalele unde anumiti parametri de cautare se potrivesc cu keyword-ul canalului, daca exista. \nNu este necesara folosirea wildcard-urilor (*).
SERVNOTICE 8 /msg X servnotice <#canal> <text>\nAceasta comanda este doar pentru Adminii CService.
SET 8 /msg X set <#canal> <variabila> <valuare>\n/msg X set <variabila> <valuare>\nAceasta comanda va seta un canal sau un username.\nSetari pentru username: INVISIBLE MAXLOGINS LANG\nSetari pentru canal: AUTOJOIN AUTOTOPIC DESCRIPTION KEYWORDS MASSDEOP MODE NOOP STRICTOP URL USERFLAGS\nPentru mai multe informatii scrie: /msg X help SET <variabila>
UNSUSPEND 8 /msg X unsuspend <#canal> <username>\nScoate suspendul de pe accesul unui user la X. \nPoti folosi comanda UNSUSPEND doar pe un user cu access mai mic ca al tau, iar level-ul suspendului trebuie sa fie mai mic sau egal cu propriul tau acces.
SET AUTOJOIN 8 /msg X set <#canal> autojoin ON|OFF\nCand este setat ON, il face pe X sa intre intotdeauna pe canal. \nCand este setat OFF, il va face pe X sa iasa de pe canal si sa nu reintre dupa un netsplit.
SET AUTOTOPIC 8 /msg X set <#canal> AUTOTOPIC ON|OFF\nX va schimba topic-ul canalului in URL-ul si DESCRIPTION canalului odata la 30 de minute.\nNota: Daca, canalul este idle, topicul nu va fi resetat in acest timp.
SET DESCRIPTION 8 /msg X set <#canal> DESCRIPTION <textul aici>\nSeteaza descrierea unul canal. Aceasta setare poate fi vazuta in reply-ul de la CHANINFO.
SET INVISIBLE 8 /msg X set INVISIBLE ON|OFF\nSeteaza invisible on sau off pentru username-ul tau.\nCand aceasta setare este on, alt user nu poate vedea chiar daca esti online sau nu.
SET KEYWORDS 8 /msg X set <#canal> <text>\nSeteaza cuvintele cheie ale canalului. Poti folosi comanda SEARCH pentru a gasi canalele cu un cuvant cheie setat.
SET LANG 8 /msg X set lang <cod de limba>\nCu aceasta comanda poti specifica limbajul cu care X iti raspunde.\nLimbi disponibile: AR - Arabic, CA - Catalan, CH - Christmas, DK - Danish, NL - Dutch, EA - Easter, EN - English, FR - Français, DE - German, IL - Hebrew, HU - Hungarian, IT - Italian, NO - Norsk, PT - Portuguese, RO - Romanian, ES - Spanish, TR - Turkce
SET MASSDEOP 8 /msg X set <#canal> MASSDEOP <valuare 0-7>\nNumarul maxim de deopari pe care X le va accepta intr-o perioada de 15 sec.\nOrice user care depaseste va primi depop, si daca e in lista de accese si un suspend pentru 5 minute. Deasemenea ei vor avea ban de nivel 25 pentru a preveni reoparea, dupa ce suspendul expira ei trebuie sa isi scoata singuri ban-ul.
SET MAXLOGINS 8 /msg X set MAXLOGINS <valuare> (valuarea trebuie sa fie intre 1 si 3. Valoarea din default(initiala) este 1).\nAceasta optiune personala si te lasa sa determini numarul de logari curente al username-ului tau.\nDupa ce te loghezi la username pentru a 2-a si a 3-a oara, un avertisment este trimis la cei care sunt deja autentificati, dand detalii cine tocmai a s-a logat cu acel username.\nAceasta este o masura de protectie, si poate sa te avertizeze mai devreme ca cineva are parola ta si abuzeaza/foloseste username-ul tau.
SET MODE 8 /msg X set <#canal> MODE\nAceasta optiune va salva actualele moduri ale canalului ca default.
SET NOOP 8 /msg X set <#canal> NOOP ON|OFF\nCand aceasta setare este ON, inseamna ca nimeni nu poate fi operator de canal cu exceptia lui X.
SET STRICTOP 8 /msg X set <#canal> STRICTOP ON|OFF\nCand aceasta setare este ON, va lasa doar user-ii autentificati de Nivel 100+ ca sa fie opati.
SET URL 8 /msg X set <#canal> URL <http://url>\nPoti face publica adresa (adresele) canalului cu aceasta optiune (maxim of 75 de charactere).\nOptiunea poate fi vazuta in reply-ul de la comanda CHANINFO.
VERIFY 8 /msg X verify <nick>\nArata daca persoana este sau nu logata, si daca este asa va arata username-ul.\nSi de asemenea indica daca acesta este un Administrator sau Reprezentant Oficial de la CService si/sau este un IRC Operator.
VOICE 8 /msg X voice <#canal> [nick] [nick2] ... [nickN]\nDa voice unuia sau mai multor useri de pe canal.
\.
+707
View File
@@ -0,0 +1,707 @@
------------------------------------------------------------------------------------
-- "$Id: cservice.sql,v 1.87 2008/11/12 20:45:42 mrbean_ Exp $"
-- Channel service DB SQL file for PostgreSQL.
-- ChangeLog:
-- 2012-05-25: MrBean
-- Added 'totp_key' colum to 'users' table
-- 2011-12-12: Spike
-- Added gline and whitelist tables.
-- 2006-08-10: nighty
-- Modified flags definitions for table channels, according to actual
-- truth, thus adding a previously undocumented flag : 0x200 for FLOATLIM Active.
-- 2006-07-17: nighty
-- Added description for MIA Review Tag
-- 2005-11-17: nighty
-- Moved table 'ip_restrict' from cservice.web.sql to cservice.sql
-- Added indexes to table 'adminlog'
-- Added a new table for X to process notices to info channel from the website
-- 2002-03-09: nighty
-- Added 'maxlogins' column in 'users' table.
-- 2002-03-07: nighty
-- Updated channel_log/user_log events types.
-- 2002-02-16: nighty
-- Added one field to 'users' for TimeZone.
-- 2001-12-29: nighty
-- Added two fields to 'channels' to reflect changes on FLOATING LIMIT in mod.cservice
-- 2001-12-06: nighty
-- Added two fields to 'users' table to take care of an abuse hunting module.
-- 2001-10-14: nighty
-- Corrected bogus table entries and added missing fields / tables.
-- 2001-04-30: Gte
-- Redesigned deletion system, new table called deletion_transactions
-- to store deletion details for CMaster's to clear cached values.
-- 2001-01-04: Gte
-- Added 'deleted' flag, to flag records as deleted
-- (To enable CMaster to see deletions - can be *really* deleted during
-- routine maintainence/vacuum).
-- If deleted, value is non zero - null value treated as undeleted.
-- 2000-12-30: Gte
-- Added some update notification events for CMaster to listen
-- on and refresh its internal cache.
--
-- 2000-12-22: Gte
-- Fixed invalid UserID reference in userlog table.
--
-- 2000-12-10: Gte
-- Fixed a few typo's, changed TIMESTAMP's to INT4's.
--
-- 2000-10-22: Isomer
-- Removed 'ChannelManager' information from channels table
-- Added email/url/public_key to users table
-- Defined the flags
-- added channellog/userlog for combined ilc databases etc.
-- Changed many strings to 'TEXT'.
-- removed nick_flood_pro.
-- added defaults for flood_pro's.
-- changed the key type on the bans table.
-- added supporters table.
-- lotsa misc things
-- added 'added_by' and 'added_by_ts' to access table
-- users now have language, not channels
-- checked current CS sources in case we missed something.
--
-- 2000-09-21: Bleep
-- Added last_updated timestamps
--
-- Prior: Maintained by moof.
-- The service supports multiple languages, defined in language
-- files.
CREATE TABLE languages (
id SERIAL,
code VARCHAR( 16 ) UNIQUE,
name VARCHAR( 16 ),
last_updated INT4 NOT NULL,
deleted INT2 DEFAULT '0',
PRIMARY KEY(id)
);
-- Translations for multi-lingual support.
CREATE TABLE translations (
language_id INT4 CONSTRAINT translations_language_id_ref REFERENCES languages ( id ),
response_id INT4 NOT NULL DEFAULT '0',
text TEXT,
last_updated INT4 NOT NULL,
deleted INT2 DEFAULT '0',
PRIMARY KEY (language_id, response_id)
);
CREATE TABLE help (
topic VARCHAR(20) NOT NULL,
language_id INT4 CONSTRAINT help_language_id_ref REFERENCES languages ( id ),
contents TEXT
);
CREATE INDEX help_topic_idx ON help (topic);
CREATE INDEX help_language_id_idx ON help (language_id);
-- Create the channel table first since we'll be referring back to it
-- frequently.
CREATE TABLE channels (
id SERIAL,
name TEXT NOT NULL UNIQUE,
flags INT4 NOT NULL DEFAULT '0',
-- 0x0000 0001 - No Purge
-- 0x0000 0002 - Special Channel
-- 0x0000 0004 - No Reg -- Don't register for a time period after which is
-- reviewed by cservice admin.
-- 0x0000 0008 - Never Reg -- Never register
-- 0x0000 0010 - Channel Suspended
-- everyone (including the 500) is suspended.
-- 0x0000 0020 - Temp Manager
-- 0x0000 0040 - Cautioned
-- 0x0000 0080 - Manager on Vacation
-- 0x0000 0100 - Channel Locked.
-- 0x0000 0200 - FLOATLIM Active
-- 0x0000 0400 - MIA Review Tag
-- 0x0001 0000 - AlwaysOp
-- 0x0002 0000 - StrictOp
-- 0x0004 0000 - NoOp
-- 0x0008 0000 - AutoTopic
-- 0x0010 0000 - OpOnly (Depricated).
-- 0x0020 0000 - AutoJoin
-- Do we want to keep either or both of these?
-- nb: removed nickflood pro. not useful.
mass_deop_pro INT2 NOT NULL DEFAULT 3,
flood_pro INT4 NOT NULL DEFAULT 7,
url VARCHAR (128),
description VARCHAR (128),
-- Any administrative comments that apply globally to this
-- channel.
comment VARCHAR (300),
keywords VARCHAR(128),
registered_ts INT4,
channel_ts INT4 NOT NULL,
channel_mode VARCHAR(26),
-- USERFLAGS: Defaults new access records to:
-- 0: No Default
-- 1: AutoOP
-- 2: AutoVOICE
userflags INT2 DEFAULT '0',
limit_offset INT4 DEFAULT '3',
limit_period INT4 DEFAULT '20',
limit_grace INT4 DEFAULT '1',
limit_max INT4 DEFAULT '0',
no_take INT4 DEFAULT '0',
last_updated INT4 NOT NULL,
deleted INT2 DEFAULT '0',
-- max_bans: override global max_bans setting
-- if set to 0, use global setting - there is NO unlimited option.
max_bans INT4 DEFAULT '0',
welcome VARCHAR(512) DEFAULT '',
PRIMARY KEY (id)
);
-- A channel is inactive if the manager hasn't logged in for 21 days
CREATE UNIQUE INDEX channels_name_idx ON channels(LOWER(name));
-- Table for bans; channel_id references the channel entry this ban belongs to.
CREATE TABLE bans (
id SERIAL,
channel_id INT4 CONSTRAINT bans_channel_id_ref REFERENCES channels (id),
banmask VARCHAR (128) NOT NULL,
set_by VARCHAR (128), -- nick!user@host
set_ts INT4,
level INT2,
expires INT4, -- Expiration timestamp.
reason VARCHAR (300),
last_updated INT4 NOT NULL,
deleted INT2 DEFAULT '0',
PRIMARY KEY (banmask,channel_id)
);
CREATE INDEX bans_expires_idx ON bans(expires);
CREATE INDEX bans_channelkey_idx ON bans(channel_id);
-- Access entries; admin access kept on channel '*'.
CREATE TABLE users (
id SERIAL,
user_name TEXT NOT NULL,
password VARCHAR (40) NOT NULL,
email TEXT,
url VARCHAR(128),
nickname VARCHAR(50) DEFAULT '',
-- Which question the user provided the answer too from the signup page.
question_id INT2,
-- The answer to the question. 42?
verificationdata VARCHAR(30),
language_id INT4 CONSTRAINT language_channel_id_ref REFERENCES languages (id),
public_key TEXT,
post_forms int4 DEFAULT 0 NOT NULL,
flags INT2 NOT NULL DEFAULT '0',
-- 0x00 01 -- Suspended globally.
-- 0x00 02 -- Logged in (Depricated).
-- 0x00 04 -- Invisible.
-- 0x00 08 -- Fraud username.
-- 0x00 10 -- "No-Notes" - We don't want to be sent notes.
-- 0x00 20 -- "No Purge" - Don't remove the username for being idle.
-- 0x00 40 -- "No Admin" - Any * authentication is disabled (verify/commands) (its the DISABLEAUTH ON/OFF setting online)
-- 0x00 80 -- "Alumni" - Any * privileged is gone, *excepted* the verify; more like an honorary position
-- 0x01 00 -- IRC Operator - User is flagged as being 'supposed' to be an official operator, as for allowing them
-- special accesses such as posting complaints even when system is closed to public.
-- 0x02 00 -- "No ADDUSER" - prevent anyone adding username to channels (user-set flag, default disabled)
last_updated_by VARCHAR (128), -- nick!user@host
last_updated INT4 NOT NULL,
deleted INT2 DEFAULT '0',
tz_setting VARCHAR(255) DEFAULT '',
signup_cookie VARCHAR(255) DEFAULT '',
created_ts INT4,
signup_ts INT4,
signup_ip VARCHAR(15),
maxlogins INT4 DEFAULT 1,
totp_key VARCHAR(60) DEFAULT '',
hostname VARCHAR(128) DEFAULT '',
PRIMARY KEY ( id )
) ;
CREATE INDEX users_username_idx ON users( lower(user_name) );
CREATE INDEX users_email_idx ON users( lower(email) );
CREATE INDEX users_signup_ts_idx ON users( signup_ts );
CREATE INDEX users_signup_ip_idx ON users( signup_ip );
-- This table used to store the "Last Seen" informatation previously
-- routinely updated in the users table.
CREATE TABLE users_lastseen (
user_id INT4 CONSTRAINT lastseen_users_id_ref REFERENCES users ( id ),
last_seen INT4,
last_hostmask VARCHAR( 256 ),
last_ip VARCHAR( 256 ),
last_updated INT4 NOT NULL,
PRIMARY KEY (user_id)
);
CREATE TABLE user_sec_history (
user_id INT4 NOT NULL,
user_name TEXT NOT NULL,
command TEXT NOT NULL,
ip VARCHAR( 256 ) NOT NULL,
hostmask VARCHAR( 256 ) NOT NULL,
timestamp INT4 NOT NULL
);
CREATE TABLE levels (
channel_id INT4 CONSTRAINT levels_channel_id_ref REFERENCES channels ( id ),
user_id INT4 CONSTRAINT levels_users_id_ref REFERENCES users ( id ),
access INT4 NOT NULL DEFAULT '0',
flags INT2 NOT NULL DEFAULT '0',
-- 0x00 01 -- AutoOp
-- 0x00 02 -- Protect (From CS source, unused)
-- 0x00 04 -- Temp forced access - Temp used by bot, ignore.
-- 0x00 08 -- AutoVoice
suspend_expires INT4 DEFAULT '0',
suspend_level INT4 DEFAULT '0',
suspend_by VARCHAR( 128 ),
suspend_reason VARCHAR( 300 ),
added INT4,
added_By VARCHAR( 128 ),
last_Modif INT4,
last_Modif_By VARCHAR( 128 ),
last_Updated INT4 NOT NULL,
deleted INT2 DEFAULT '0',
PRIMARY KEY( channel_id, user_id )
);
CREATE INDEX levels_access_idx ON levels( access ) ;
CREATE INDEX levels_userid_idx ON levels( user_id ) ;
-- Note: The below index is a new postgres 7.2 feature which vastly speeds up the
-- checking of expired suspension levels. If you still use <7.2, stick to the index
-- commented out below.
-- CREATE INDEX levels_suspendexpires_idx ON levels( suspend_expires ) ;
CREATE INDEX levels_suspendexpires_idx ON levels( suspend_expires ) WHERE suspend_expires <> 0;
CREATE TABLE channellog (
ts INT4,
channelID INT4 CONSTRAINT channel_log_ref REFERENCES channels ( id ),
event INT2 DEFAULT '0',
-- Defines the message event type, so we can filter nice reports.
-- 1 -- EV_MISC - Uncategorised event.
-- 2 -- EV_JOIN - When someone 'JOIN's the bot.
-- 3 -- EV_PART - When someone 'PART's the bot.
-- 4 -- EV_OPERJOIN - When an oper 'JOIN's the bot.
-- 5 -- EV_OPERPART - When an oper 'PART's the bot.
-- 6 -- EV_FORCE - When someone FORCE's access in a channel.
-- 7 -- EV_REGISTER - When this channel is (re)registered.
-- 8 -- EV_PURGE - When this channle is purged.
-- 9 -- EV_COMMENT - Generic comments.
-- 10 -- EV_REMOVEALL - When REMOVEALL command is used.
-- 11 -- EV_IDLE - When a channel is idle for > 48 hours.
-- 12 -- EV_MGRCHANGE - When a channel switched managers either temporarily or permanently
-- 13 -- EV_ADMREJECT - When an application gets manually rejected by an admin on the web
-- 14 -- EV_WITHDRAW - When an application gets cancelled by its applicant on the web
-- 15 -- EV_NEWAPP - When a new application is posted by a user on the web
-- 16 -- EV_NONSUPPORT - When an application gets rejected due to NON-SUPPORT from one of the supporters on the web
-- 17 -- EV_ADMREVIEW - When an admins "Review" an application
-- 18 -- EV_CLRREVIEW - When a Reviewed application get its "Reviewed" flag cleared by an admin.
-- 19 -- EV_SUSPEND - When a channel is suspended by an administrator (channel.flags & 0x10 is 'set')
-- 20 -- EV_UNSUSPEND - When a channel is unsuspended by an administrator (channels.flags & 0x10 is 'unset')
message TEXT,
last_updated INT4 NOT NULL,
deleted INT2 DEFAULT '0'
);
CREATE INDEX channellog_channelID_idx ON channellog(channelID);
CREATE INDEX channellog_event_idx ON channellog(event);
CREATE TABLE userlog (
ts INT4,
user_id INT4 CONSTRAINT user_log_ref REFERENCES users ( id ),
event INT4 DEFAULT '0',
-- 1 -- EV_SUSPEND - Notification/Reason for suspension.
-- 2 -- EV_UNSUSPEND - Notification of an unsuspend.
-- 3 -- EV_MODIF - Modification of user record by an admin.
-- 4 -- EV_MISC - Uncategorised event.
-- 5 -- EV_COMMENT - Admin comment on username.
-- 6 -- EV_MGRCHANGE - When a user status is to swith manager with another user (also logged) on a channel
-- 7 -- EV_MAILCHANGE - When a user's email gets changed
-- 8 -- EV_PWRESET - When a user's verif q/a get changed
-- 9 -- EV_FPASSWD - When a user uses "Forgotten Password"
-- 10-- EV_PWCHANGE - When a user changes his password on the web (New Password)
-- 11-- EV_POSTCOMPLAINT - When a user identified posts a complaint on the web
-- 12-- EV_POSTCLOSE - When a Ticket/Complaint is closed or resolved.
message TEXT,
last_updated INT4 NOT NULL
);
CREATE INDEX userlog_channelID_idx ON userlog(user_id);
CREATE INDEX userlog_event_idx ON userlog(event);
CREATE TABLE supporters (
channel_id INT4 CONSTRAINT channel_supporters_ref REFERENCES channels ( id ),
user_id INT4 CONSTRAINT users_supporters_ref REFERENCES users( id ),
support CHAR DEFAULT '?',
-- ? - Not answered yet.
-- Y - Supports this channel.
-- N - Doesn't support this channel.
noticed CHAR NOT NULL DEFAULT 'N',
reason TEXT,
-- Reason for not supporting it if required.
join_count INT4 DEFAULT '0',
-- Number of times this 'supporter' has joined the channel.
-- Field updated by CMaster to reflect channel 'traffic'.
last_updated INT4 NOT NULL,
deleted INT2 DEFAULT '0',
PRIMARY KEY(channel_id,user_id)
);
CREATE INDEX supporters_support_idx ON supporters(support);
create index supporters_user_id_idx ON supporters(user_id);
CREATE TABLE pending (
channel_id INT4 CONSTRAINT pending_channel_ref REFERENCES channels (id),
manager_id INT4 CONSTRAINT pending_manager_ref REFERENCES users (id),
created_ts INT4 NOT NULL,
check_start_ts INT4 NOT NULL,
status INT4 DEFAULT '0',
-- Status of 'pending' channel:
-- 0 = 'Pending Supporters Confirmation'
-- 1 = 'Traffic Check'
-- 2 = 'Notification'
-- 3 = 'Completed'
-- 4 = 'Cancelled by applicant'
-- 8 = 'Pending Admin Review'
-- 9 = 'Rejected'
join_count INT4 DEFAULT '0',
unique_join_count INT4 DEFAULT '0',
decision_ts INT4,
decision TEXT,
managername VARCHAR (80),
reg_acknowledged CHAR DEFAULT 'N',
comments TEXT,
last_updated INT4 NOT NULL,
description TEXT,
reviewed CHAR NOT NULL DEFAULT 'N',
reviewed_by_id INT4 CONSTRAINT pending_review_ref REFERENCES users (id),
first_init CHAR NOT NULL DEFAULT 'N',
PRIMARY KEY(channel_id)
);
CREATE INDEX pending_status_idx ON pending(status);
CREATE INDEX pending_manager_id_idx ON pending(manager_id);
CREATE TABLE pending_traffic (
channel_id INT4 CONSTRAINT pending_traffic_channel_ref REFERENCES channels (id),
ip_number INT4,
join_count INT4,
PRIMARY KEY(channel_id, ip_number)
);
CREATE INDEX pending_traffic_channel_id_idx ON pending_traffic(channel_id);
CREATE TABLE domain (
id SERIAL,
domain varchar(1024) NOT NULL UNIQUE,
flags INT2 NOT NULL DEFAULT '1',
-- Flags are exclusive and can be SELECT'd on.
-- 0x00 01 - Bad Domain.
-- 0x00 02 - Good Domain.
-- 0x00 04 - Pending Domain.
last_updated INT4 NOT NULL,
deleted INT2 DEFAULT '0',
PRIMARY KEY(id)
);
CREATE INDEX domain_domain_idx ON domain(domain);
CREATE TABLE deletion_transactions (
tableID INT4,
-- Table Types:
-- 1 = users
-- 2 = channels
-- 3 = levels
-- 4 = bans
key1 INT4,
key2 INT4,
key3 INT4,
-- Up to 3 key's that uniquely identify the data
-- being deleted in this table. See CMaster source
-- to determine how this is interpreted.
last_updated INT4 NOT NULL
);
-- Table to deal with the whole no-reg schema.
-- We use username and channelname instead of id's because these records may
-- exist past the lifetime of particular user accounts, and we'll want
-- to make sure certain email address's remain unable to register, etc.
-- Specific flags are INT4's becuase postgres does not want to index on anything
-- smaller :/
CREATE TABLE noreg (
id SERIAL,
user_name TEXT,
email TEXT,
channel_name TEXT,
type INT4 NOT NULL,
-- 1 - Non-support registered against this channel/manager application.
-- 2 - Abuse.
-- 3 - Elective.
-- 4 - Fraud Username.
-- 5 - Username pattern'd lock (able to lock any new username from matching *mp3* for example)
-- 6 - Verification answer lock (stored in 'user_name', planning on db fields renaming for more customisation later)
never_reg INT4 NOT NULL DEFAULT '0',
-- Never, ever register this channel, or user or pair.
for_review INT4 NOT NULL DEFAULT '0',
-- Don't automatically expire this, post for review.
expire_time INT4,
created_ts INT4,
set_by TEXT,
reason TEXT
);
CREATE INDEX noreg_user_name_idx ON noreg (lower(user_name));
CREATE INDEX noreg_email_idx ON noreg (lower(email));
CREATE INDEX noreg_channel_name_idx ON noreg (lower(channel_name));
CREATE INDEX noreg_expire_time_idx ON noreg (expire_time);
CREATE TABLE notes (
message_id SERIAL,
user_id INT4 CONSTRAINT users_notes_ref REFERENCES users( id ),
from_user_id INT4 CONSTRAINT users_notes_ref2 REFERENCES users( id ),
message VARCHAR( 300 ),
last_updated INT4 NOT NULL,
PRIMARY KEY(message_id, user_id)
);
CREATE TABLE notices (
message_id SERIAL,
user_id INT4 CONSTRAINT users_notes_ref REFERENCES users( id ),
-- from_user_id INT4 CONSTRAINT users_notes_ref2 REFERENCES users( id ),
message VARCHAR( 300 ),
last_updated INT4 NOT NULL,
PRIMARY KEY(message_id, user_id)
);
--CREATE TABLE mailq (
-- user_id INT4 CONSTRAINT mailq_users_ref REFERENCES users(id),
-- channel_id INT4 CONSTRAINT mailq_channels_ref REFERENCES channels(id),
-- created_ts INT4,
-- template INT4,
-- var1 CHAR(128),
-- var2 CHAR(128),
-- var3 CHAR(128),
-- var4 CHAR(128),
-- var5 CHAR(128)
--);
-- Values of Templates:
-- MT_SUPPORTER 1
-- MT_REJECTED 2
-- MT_REGISTERED 3
-- Template arguments:
-- MT_REJECTED
-- var1 Reject Reason
-- Update notification rules.
-- (N.B: Disabled, aparently conditional RULES are no longer
-- supported in postgres 7.1.x).
--CREATE RULE cm1 AS ON UPDATE TO channels DO NOTIFY channels_u;
--CREATE RULE cm2 AS ON UPDATE TO bans DO NOTIFY bans_u;
--CREATE RULE cm3 AS ON UPDATE TO users DO NOTIFY users_u;
--CREATE RULE cm4 AS ON UPDATE TO levels DO NOTIFY levels_u;
CREATE FUNCTION update_users() RETURNS TRIGGER AS '
BEGIN
NOTIFY users_u;
RETURN NEW;
END;
' LANGUAGE 'plpgsql';
CREATE FUNCTION update_channels() RETURNS TRIGGER AS '
BEGIN
NOTIFY channels_u;
RETURN NEW;
END;
' LANGUAGE 'plpgsql';
CREATE FUNCTION update_levels() RETURNS TRIGGER AS '
BEGIN
NOTIFY levels_u;
RETURN NEW;
END;
' LANGUAGE 'plpgsql';
CREATE FUNCTION update_bans() RETURNS TRIGGER AS '
BEGIN
NOTIFY bans_u;
RETURN NEW;
END;
' LANGUAGE 'plpgsql';
CREATE TRIGGER t_update_users AFTER UPDATE ON users FOR EACH ROW EXECUTE PROCEDURE update_users();
CREATE TRIGGER t_update_bans AFTER UPDATE ON bans FOR EACH ROW EXECUTE PROCEDURE update_bans();
CREATE TRIGGER t_update_channels AFTER UPDATE ON channels FOR EACH ROW EXECUTE PROCEDURE update_channels();
CREATE TRIGGER t_update_levels AFTER UPDATE ON levels FOR EACH ROW EXECUTE PROCEDURE update_levels();
-- Function to create a new users_lastseen record for each new user added.
-- If the function fails, you may need to add the plpgsql scripting language support
-- to your database:
-- /usr/local/pgsql/bin/createlang plpgsql dbname -L /usr/local/pgsql/lib/
CREATE FUNCTION new_user() RETURNS TRIGGER AS '
-- creates the users associated last_seen record
BEGIN
INSERT INTO users_lastseen (user_id, last_seen, last_updated) VALUES(NEW.id, extract(epoch FROM now())::int, extract(epoch FROM now())::int);
RETURN NEW;
END;
' LANGUAGE 'plpgsql';
-- Trigger to call the function upon insert to users.
-- This trigger is disabled since 2020.06.26 with update of 'Newly created users has no last_seen, and expire sooner (one hour)'
-- CREATE TRIGGER t_new_user AFTER INSERT ON users FOR EACH ROW EXECUTE PROCEDURE new_user();
-- Functions to automatically generate "Deletion Stubs" for removed records, so CMaster
-- can pick up on these and clear its cache.
CREATE FUNCTION delete_user() RETURNS TRIGGER AS '
BEGIN
INSERT INTO deletion_transactions (tableID, key1, key2, key3, last_updated)
VALUES(1, OLD.id, 0, 0, extract(epoch FROM now())::int);
RETURN OLD;
END;
' LANGUAGE 'plpgsql';
CREATE TRIGGER t_delete_user AFTER DELETE ON users FOR EACH ROW EXECUTE PROCEDURE delete_user();
-- Channel table Deletion Stubs
--
CREATE FUNCTION delete_channel() RETURNS TRIGGER AS '
BEGIN
INSERT INTO deletion_transactions (tableID, key1, key2, key3, last_updated)
VALUES(2, OLD.id, 0, 0, extract(epoch FROM now())::int);
RETURN OLD;
END;
' LANGUAGE 'plpgsql';
CREATE TRIGGER t_delete_channel AFTER DELETE ON channels FOR EACH ROW EXECUTE PROCEDURE delete_channel();
-- Level table Deletion Stubs
--
CREATE FUNCTION delete_level() RETURNS TRIGGER AS '
BEGIN
INSERT INTO deletion_transactions (tableID, key1, key2, key3, last_updated)
VALUES(3, OLD.channel_id, OLD.user_id, 0, extract(epoch FROM now())::int);
RETURN OLD;
END;
' LANGUAGE 'plpgsql';
CREATE TRIGGER t_delete_level AFTER DELETE ON levels FOR EACH ROW EXECUTE PROCEDURE delete_level();
-- Ban table Deletion Stubs
--
CREATE FUNCTION delete_ban() RETURNS TRIGGER AS '
BEGIN
INSERT INTO deletion_transactions (tableID, key1, key2, key3, last_updated)
VALUES(4, OLD.id, 0, 0, extract(epoch FROM now())::int);
RETURN OLD;
END;
' LANGUAGE 'plpgsql';
CREATE TRIGGER t_delete_ban AFTER DELETE ON bans FOR EACH ROW EXECUTE PROCEDURE delete_ban();
-- Table used to store run-time configurable settings.
CREATE TABLE variables (
var_name VARCHAR(30),
contents text,
hint text,
last_updated INT4,
PRIMARY KEY(var_name)
);
-- Table used to store the admin log (converted from file to db).
CREATE TABLE adminlog (
id SERIAL,
user_id INT4 NOT NULL,
cmd VARCHAR(100),
args VARCHAR(255),
timestamp INT4 NOT NULL,
issue_by VARCHAR(255),
PRIMARY KEY(id)
);
CREATE INDEX adminlog_c_idx ON adminlog(cmd,timestamp);
CREATE INDEX adminlog_u_idx ON adminlog(user_id,timestamp);
CREATE INDEX adminlog_a_idx ON adminlog(args);
CREATE INDEX adminlog_i_idx ON adminlog(issue_by);
CREATE TABLE ip_restrict (
id SERIAL,
user_id int4 NOT NULL,
allowmask varchar(255) NOT NULL,
allowrange1 int4 NOT NULL,
allowrange2 int4 NOT NULL,
added int4 NOT NULL,
added_by int4 NOT NULL,
type int4 NOT NULL DEFAULT 0,
value inet NOT NULL,
last_updated int4 NOT NULL DEFAULT date_part('epoch', CURRENT_TIMESTAMP)::int,
last_used int4 NOT NULL DEFAULT 0,
expiry int4 NOT NULL,
description VARCHAR(255)
);
CREATE INDEX ip_restrict_idx ON ip_restrict(user_id,type);
CREATE TABLE webnotices (
id SERIAL,
created_ts int4 NOT NULL,
contents VARCHAR(255) NOT NULL,
PRIMARY KEY(id)
);
CREATE TABLE glines (
Id SERIAL,
Host VARCHAR(128) UNIQUE NOT NULL,
AddedBy VARCHAR(128) NOT NULL,
AddedOn INT4 NOT NULL,
ExpiresAt INT4 NOT NULL,
LastUpdated INT4 NOT NULL DEFAULT date_part('epoch', CURRENT_TIMESTAMP)::int,
Reason VARCHAR(255)
);
CREATE TABLE whitelist (
Id SERIAL,
IP VARCHAR(15) UNIQUE NOT NULL,
AddedBy VARCHAR(128) NOT NULL,
AddedOn INT4 NOT NULL,
ExpiresAt INT4 NOT NULL,
Reason VARCHAR(255)
);
-----------------------------------------------------------------------------------------
+285
View File
@@ -0,0 +1,285 @@
------------------------------------------------------------------------------------
-- "$Id: cservice.web.sql,v 1.37 2005/12/12 18:01:24 kewlio Exp $"
-- Channel service DB SQL file for PostgreSQL.
--
-- Tables specific to website
--
-- Perry Lorier <perry@coders.net>
-- nighty <nighty@undernet.org>
CREATE TABLE acl (
acl_id SERIAL,
user_id INT4 NOT NULL,
isstaff INT2 NOT NULL,
flags INT4 DEFAULT '0' NOT NULL,
-- 0x0001 - ACL_XCHGMGR_REVIEW
-- 0x0002 - ACL_XCHGMGR_ADMIN
-- 0x0004 - ACL_XMAILCH_REVIEW
-- 0x0008 - ACL_XMAILCH_ADMIN
-- 0x0016 - ACL_XHELP
-- 0x0032 - ACL_XHELP_CAN_ADD
-- 0x0064 - ACL_XHELP_CAN_EDIT
-- 0x0128 - ACL_WEBAXS_2
-- 0x0256 - ACL_WEBAXS_3
-- .. to be completed in the future ..
xtra INT4 NOT NULL,
-- may vary, for example if 0x0016 is set in 'flags',
-- 'xtra' will contain the 'language_id' the user have power over (or '0' for *all*)
--
last_updated INT4 NOT NULL,
last_updated_by INT4 NOT NULL,
suspend_expire INT4 DEFAULT '0' NOT NULL,
suspend_by INT4 DEFAULT '0' NOT NULL,
deleted INT2 DEFAULT '0' NOT NULL
);
CREATE TABLE fraud_lists (
id SERIAL,
name VARCHAR(255) NOT NULL
);
CREATE TABLE fraud_list_data (
list_id INT4 NOT NULL,
user_id INT4 REFERENCES users(id) NOT NULL
);
CREATE TABLE pending_pwreset (
cookie VARCHAR(128) NOT NULL,
user_id INT4 NOT NULL,
question_id INT2 NOT NULL,
verificationdata VARCHAR(30) NOT NULL,
expiration INT4 NOT NULL
);
CREATE INDEX pending_pwreset_cookie_idx ON pending_pwreset(cookie);
CREATE INDEX pending_pwreset_user_id_idx ON pending_pwreset(user_id);
CREATE INDEX pending_pwreset_expiration_idx ON pending_pwreset(expiration);
CREATE TABLE locks (
section INT2,
-- section: 1 : GLOBAL SITE LOCK
-- section: 2 : NEW REGISTRATIONS LOCK
-- section: 3 : NEW USERS LOCK
since INT4,
by INT4
);
CREATE TABLE counts (
-- OBSOLETE !!!
count_type INT2,
-- type: 1 : NEW USERS
count_count INT4
);
CREATE TABLE statistics (
users_id INT4 NOT NULL,
stats_type INT4 NOT NULL,
-- 1 Total reviewed applications count
-- ... more capabilities
stats_value_int INT4 DEFAULT 0 NOT NULL,
stats_value_chr VARCHAR(255) DEFAULT '' NOT NULL,
last_updated INT4 NOT NULL
);
CREATE INDEX statistics_users_id_idx ON statistics(users_id);
--CREATE TABLE helpmgr_users (
-- user_id INT4 NOT NULL,
-- language_id INT2,
-- flags INT2 DEFAULT '1'
-- CAN_EDIT : 0x01
-- CAN_ADD : 0x02
--);
--CREATE INDEX helpmgr_users_user_id_idx ON helpmgr_users(user_id);
--CREATE INDEX helpmgr_language_id_idx ON helpmgr_users(language_id);
--CREATE INDEX helpmgr_flags_idx ON helpmgr_users(flags);
CREATE TABLE pending_mgrchange (
id SERIAL,
channel_id INT4 NOT NULL,
manager_id INT4 NOT NULL,
new_manager_id INT4 NOT NULL,
change_type INT2,
-- change_type : 0 : temporary
-- change_type : 1 : permanent
opt_duration INT4,
-- duration in seconds if temporary, 0 if permanent.
reason TEXT,
expiration INT4 DEFAULT 0,
crc VARCHAR(128),
confirmed INT2 DEFAULT 0,
from_host VARCHAR(15) DEFAULT '0.0.0.0'
);
CREATE INDEX pending_mgrchange_id_idx ON pending_mgrchange(id);
CREATE INDEX pending_mgrchange_channel_id_idx ON pending_mgrchange(channel_id);
CREATE INDEX pending_mgrchange_manager_id_idx ON pending_mgrchange(manager_id);
CREATE INDEX pending_mgrchange_new_manager_id_idx ON pending_mgrchange(new_manager_id);
CREATE INDEX pending_mgrchange_change_type_idx ON pending_mgrchange(change_type);
CREATE INDEX pending_mgrchange_opt_duration_idx ON pending_mgrchange(opt_duration);
CREATE INDEX pending_mgrchange_expiration_idx ON pending_mgrchange(expiration);
CREATE INDEX pending_mgrchange_crc_idx ON pending_mgrchange(crc);
CREATE INDEX pending_mgrchange_confirmed_idx ON pending_mgrchange(confirmed);
--CREATE TABLE xatadmins (
-- admin_id INT4 NOT NULL,
-- admin_type INT2 DEFAULT 0
--);
--CREATE INDEX xatadmins_admin_id_idx ON xatadmins(admin_id);
CREATE TABLE pendingusers (
user_name VARCHAR(12),
cookie VARCHAR(32),
email VARCHAR(255),
expire INT4,
question_id INT2,
verificationdata VARCHAR(30),
poster_ip VARCHAR(15) DEFAULT '',
language INT4 NOT NULL
);
CREATE INDEX pendingusers_cookie_idx ON pendingusers(cookie);
CREATE TABLE pending_emailchanges (
cookie VARCHAR(128) NOT NULL,
user_id INT4 NOT NULL,
old_email VARCHAR(255) NOT NULL,
new_email VARCHAR(255) NOT NULL,
expiration INT4 NOT NULL,
pahese INT4 NOT NULL
);
CREATE INDEX pending_emailchanges_cookie_idx ON pending_emailchanges(cookie);
CREATE INDEX pending_emailchanges_user_id_idx ON pending_emailchanges(user_id);
CREATE INDEX pending_emailchanges_expiration_idx ON pending_emailchanges(expiration);
CREATE TABLE pending_passwordchanges (
cookie VARCHAR(128) NOT NULL,
user_id INT4 NOT NULL,
old_crypt VARCHAR(40) NOT NULL,
new_crypt VARCHAR(40) NOT NULL,
new_clrpass VARCHAR(255) NOT NULL,
created_ts INT4 NOT NULL
);
-- This table stores the timestamp of the last request
-- from a particular IP.
-- Used to block abuse, such as requesting a password 50,000
-- times a minute.
CREATE TABLE lastrequests (
ip VARCHAR(15) DEFAULT '0.0.0.0',
last_request_ts INT4
);
CREATE INDEX lastrequests_ip_idx ON lastrequests(ip);
-- list of admins that have the ability to modify NOREG entries (other admins may only list them)
--CREATE TABLE webaccessteam (
-- admin_id int4 REFERENCES users(id) NOT NULL,
-- level INT4 NOT NULL DEFAULT '0'
--);
-- recorded objections for channels.
CREATE TABLE objections (
channel_id int4 REFERENCES channels(id) NOT NULL,
user_id int4 REFERENCES users(id) NOT NULL,
comment text NOT NULL,
created_ts int4 NOT NULL,
admin_only varchar(1) DEFAULT 'N'
-- 'Y' : the objection is an admin comment on only * users sees it.
-- 'N' : the objection is a regular one and everyone can see it.
);
CREATE TABLE timezones (
tz_index SERIAL,
tz_name VARCHAR(128) NOT NULL,
tz_countrycode VARCHAR(5) NOT NULL,
tz_acronym VARCHAR(10) NOT NULL,
deleted INT2 DEFAULT '0',
last_updated INT4 NOT NULL
);
CREATE TABLE complaints (
id SERIAL,
from_id int4 NOT NULL,
from_email varchar (255) NOT NULL,
inrec_email varchar (255) NOT NULL,
complaint_type int4 NOT NULL,
complaint_text text NOT NULL,
complaint_logs text NOT NULL,
complaint_channel1_id int4 NOT NULL,
complaint_channel1_name text NOT NULL,
complaint_channel2_id int4 NOT NULL,
complaint_channel2_name text NOT NULL,
complaint_users_id int4 NOT NULL,
status int4 NOT NULL,
nicelevel int4 NOT NULL,
reviewed_by_id int4 NOT NULL,
reviewed_ts int4 NOT NULL,
created_ts int4 NOT NULL,
created_ip varchar (15) DEFAULT '0.0.0.0' NOT NULL,
created_crc varchar (128) NOT NULL,
crc_expiration int4 NOT NULL,
ticket_number varchar(32) NOT NULL,
current_owner int4 NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE complaints_threads (
id SERIAL,
complaint_ref int4 NOT NULL CONSTRAINT complaints_threads_ref REFERENCES complaints (id),
reply_by int4 NOT NULL,
reply_ts int4 NOT NULL,
reply_text text NOT NULL,
actions_text text NOT NULL,
in_reply_to int4 NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE complaint_types (
-- not used for now...
id SERIAL,
complaint_label varchar(255) NOT NULL,
PRIMARY KEY (id)
);
DELETE FROM complaint_types;
COPY "complaint_types" FROM stdin;
1 My username is suspended
2 Members of a registered channel are spamming my channel
3 I object to this channel application but I want to do so anonymously
4 My channel was purged and I want you to reconsider
5 My channel was purged and I want to know why
99 Other complaint
\.
CREATE TABLE complaints_reference (
complaints_ref int4 NOT NULL CONSTRAINT complaints_reference_ref REFERENCES complaints (id),
referenced_by int4 NOT NULL,
referenced_to int4 NOT NULL,
reference_ts int4 NOT NULL,
is_new int4 DEFAULT '1' NOT NULL
);
CREATE INDEX complaints_ref_ref ON complaints_reference(complaints_ref,referenced_to);
CREATE TABLE default_msgs (
id SERIAL,
type int4 NOT NULL,
label varchar(255) NOT NULL,
content text NOT NULL
);
CREATE INDEX default_msgs_idx ON default_msgs(type);
+23
View File
@@ -0,0 +1,23 @@
#!/bin/sh
/usr/local/pgsql/bin/createdb --template=template0 -E=SQL_ASCII -U gnuworld cservice
/usr/local/pgsql/bin/psql -U gnuworld cservice < cservice.sql
/usr/local/pgsql/bin/psql cservice < cservice.config.sql
/usr/local/pgsql/bin/psql cservice < languages.sql
/usr/local/pgsql/bin/psql cservice < language_table.sql
/usr/local/pgsql/bin/psql cservice < greeting.sql
/usr/local/pgsql/bin/psql cservice < cservice.help.sql
/usr/local/pgsql/bin/psql cservice < cservice.web.sql
/usr/local/pgsql/bin/psql cservice < cservice.addme.sql
/usr/local/pgsql/bin/createdb --template=template0 -E=SQL_ASCII ccontrol
/usr/local/pgsql/bin/psql ccontrol < ccontrol.sql
/usr/local/pgsql/bin/psql ccontrol < ccontrol.help.sql
/usr/local/pgsql/bin/psql ccontrol < ccontrol.addme.sql
/usr/local/pgsql/bin/psql ccontrol < ccontrol.commands.sql
/usr/local/pgsql/bin/createdb --template=template0 -E=SQL_ASCII dronescan
/usr/local/pgsql/bin/psql dronescan < dronescan.sql
/usr/local/pgsql/bin/createdb --template=template0 -E=SQL_ASCII chanfix
/usr/local/pgsql/bin/psql chanfix < ../mod.openchanfix/doc/chanfix.sql
/usr/local/pgsql/bin/psql chanfix < ../mod.openchanfix/doc/chanfix.languages.sql
/usr/local/pgsql/bin/psql chanfix < ../mod.openchanfix/doc/chanfix.language.english.sql
/usr/local/pgsql/bin/psql chanfix < ../mod.openchanfix/doc/chanfix.help.sql
/usr/local/pgsql/bin/psql chanfix < ../mod.openchanfix/doc/chanfix.addme.sql
+31
View File
@@ -0,0 +1,31 @@
CREATE TABLE users (
id serial,
user_name varchar(20) NOT NULL,
created int4 NOT NULL DEFAULT 0,
last_seen int4 NOT NULL DEFAULT 0,
last_updated int4 NOT NULL DEFAULT 0,
last_updated_by varchar(128) NOT NULL,
flags int4 NOT NULL DEFAULT 0,
access int4 NOT NULL DEFAULT 0,
PRIMARY KEY (id)
);
-----------------------
CREATE TABLE fakeclients (
id serial,
nickname varchar(20) NOT NULL,
username varchar(20) NOT NULL,
hostname varchar(20) NOT NULL,
realname varchar(50) NOT NULL,
created_by int4 NOT NULL,
created_on int4 NOT NULL,
last_updated int4 NOT NULL,
flags int4 DEFAULT 0 NOT NULL,
PRIMARY KEY (id),
FOREIGN KEY (created_by) REFERENCES users (id) ON UPDATE RESTRICT ON DELETE CASCADE,
UNIQUE (nickname)
);
-------------------------
CREATE TABLE exceptionalChannels (
id serial,
name text unique not null
);
+1
View File
@@ -0,0 +1 @@
.arch-ids
+52
View File
@@ -0,0 +1,52 @@
#!/usr/bin/env python
#
# Script to convert help files in the help/ directory to a single .sql file
# (C) 2001 Alex Badea <vampire@go.ro>
#
out_filename = "cservice.help.sql"
max_textlen = 8140
from os import listdir
from string import *
def prepare_dbtext(s):
s = replace(s, "'", "\\'");
s = replace(s, "\n", "\\n");
s = replace(s, "\r", "\\r");
return s
print "* Generating: %s" % out_filename
outf = open(out_filename, 'wt')
outf.write("-- This file was automatically generated by genhelp.py\n\n");
outf.write("DELETE FROM help;\n\n");
for language_id in listdir('help'):
try:
language_id = int(language_id)
except:
print "* Invalid language ID directory: %s" % language_id
continue
print "* Language ID: %d" % language_id
outf.write("\n---------------------\n-- Language ID: %2d --\n---------------------\n\n" % language_id);
for cmd in listdir('help/%d' % language_id):
print " %s" % cmd
try:
f = open('help/%d/%s' % (language_id, cmd), 'rt')
except:
print "* Cannot open %s" % cmd
continue
buf = prepare_dbtext(f.read(16777216))
if len(buf) > max_textlen:
print "* Topic too large (%d bytes) -- truncated to %d" % (len(buf), max_textlen)
buf = buf[:max_textlen]
outf.write("INSERT INTO help (language_id, topic, contents) VALUES (%d, '%s', '%s');\n" % \
(language_id, prepare_dbtext(upper(cmd)), buf))
f.close()
outf.close()
print "* Done"
+1
View File
@@ -0,0 +1 @@
.arch-ids
+40
View File
@@ -0,0 +1,40 @@
-- Grant access to the username which will access the database.
-- Use this to grant full access to all tables for the username
-- 'gnuworld'.
grant all on languages to gnuworld;
grant all on translations to gnuworld;
grant all on help to gnuworld;
grant all on channels to gnuworld;
grant all on bans to gnuworld;
grant all on users to gnuworld;
grant all on users_lastseen to gnuworld;
grant all on levels to gnuworld;
grant all on channellog to gnuworld;
grant all on log_users to gnuworld;
grant all on userlog to gnuworld;
grant all on supporters to gnuworld;
grant all on pending to gnuworld;
grant all on domain to gnuworld;
grant all on webcookies to gnuworld;
grant all on lastrequests to gnuworld;
grant all on pendingusers to gnuworld;
grant all on transition to gnuworld;
grant all on pending_traffic to gnuworld;
grant all on noreg to gnuworld;
grant all on regteam to gnuworld;
grant all on webaccessteam to gnuworld;
grant all on abuseteam to gnuworld;
grant all on mailq to gnuworld;
grant all on notes to gnuworld;
-- Sequences.
grant all on bans_id_seq to gnuworld;
grant all on channels_id_seq to gnuworld;
grant all on checkpoints_id_seq to gnuworld;
grant all on domain_id_seq to gnuworld;
grant all on languages_id_seq to gnuworld;
grant all on log_users_id_seq to gnuworld;
grant all on noreg_id_seq to gnuworld;
grant all on users_id_seq to gnuworld;
grant all on notes_message_id_seq to gnuworld;
+19
View File
@@ -0,0 +1,19 @@
-- $Id: greeting.sql,v 1.10 2003/04/09 10:13:41 nighty Exp $
-- spanish + catalan by Algol.
-- norwegian by MrIron.
-- french by nighty.
-- romanian by Tyranus.
-- Dutch by Spike.
-- Hungarian by Laccc.
DELETE FROM translations where response_id = 9998;
COPY "translations" FROM stdin;
1 9998 Remember: Nobody from CService will ever ask you for your password, do NOT give out your password to anyone claiming to be CService. 31337 0
2 9998 Rappelez-vous: Jamais personne de CService ne vous demandera votre mot de passe, ne donnez votre mot de passe à personne meme pas à quelqu'un qui dit être de CService 31337 0
4 9998 Denk eraan: Geen enkele CService medewerker zal ooit je paswoord vragen. Geef je paswoord dan ook in GEEN geval aan iemand die beweert een CService medewerker te zijn. 31337 0
8 9998 Nu Uita: Nici un reprezentant CService nu iti va cere vreodata parola, NU iti da parola de la username cuiva care spune ca este reprezentant Cservice. 31337 0
9 9998 Recordeu: Cap membre de CService us demanarà mai la vostra contrasenya, NO doneu la vostra contrasenya a ningú encara que afirmi que és membre de CService 31337 0
10 9998 Recuerda: Ningún miembro de CService te ha de pedir nunca la contraseña, NUNCA des tu contraseña a nadie aunque afirme que es miembro de CService 31337 0
11 9998 Figyelmeztetes: Soha senkinek NE add oda a jelszavad, meg akkor sem, ha CService kepviselonek mondja magat. 31337 0
13 9998 Husk: Ingen fra CService vil noen gang spørre deg om ditt passord, så derfor må du ALDRI gi det til noen som utgir seg for å være med i CService 31337 0
\.
+1
View File
@@ -0,0 +1 @@
.arch-ids
+1
View File
@@ -0,0 +1 @@
.arch-ids
+59
View File
@@ -0,0 +1,59 @@
--
-- $Id: README,v 1.2 2006/07/17 01:24:02 nighty Exp $
--
This directory contains the PHP file present on http://www.gnuworld.org/gnuworld-setup/
that is the Interactive GNUworld Installation Guide.
regards..
--
--
--
INSTALLING INTERACTIVE GUIDE
----------------------------
actually it just needs to be moved in a directory you can access on an URL,
and that has PHP4+ support with .PHP file extention.
Best is to put that in a subdirectory and then access that sub directory,
Basical Apache Installation :
htt://www.your-website.com/ points to /usr/local/apache/htdocs/ local directory,
just do :
yourbox:/home/gnuworld/gnuworld/doc/idoc# cd ..
yourbox:/home/gnuworld/gnuworld/doc# cp -rp idoc/ /usr/local/apache/htdocs
then access http://www.you-website.com/idoc/ with your usual web browser.
If you don't know what its all about, but you already have a working website interface (/live)
just copy that 'idoc' directory in you GNUworld website directory (as website/docs/gnuworld/idoc)
and then you should find easy enough how to access it using you usual URL for your GNUworld website
and adding the idoc/ sub directory.
NOTE TO CONTRIBUTORS
--------------------
This documentation, even tho it doesnt evolve very fast on the coder-com website,
does evolve sorta fast on my development space, its heavily linked to website interface
changes so its the more up-to-date as i can, so it hopefully provide a full help over the
GNUworld installation process.
If you want to contribute, by proposing more FAQs or if you for example tested it on another
operating system and can tell me it does work without (or with some) modifications, then i will
be happy to hear it .. and i encourage you to contact me, even for it being a request to know
if your idea is not either allready in the TODO list too close, allready done, obsolete due to
some changes, or whatever before you go any further.
--
--
--
--
--
+2195
View File
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,464 @@
# [General]
General {
name = "Ubuntu.YourNetwork.org";
description = "YourNetwork Relay Chat";
#vhost = "192.168.2.101";
numeric = 1;
};
# [Admin]
Admin {
# At most two location lines are allowed...
Location = "Location: Worldwide";
Location = "Admins: Admin1 Admin1@YourNetwork.org, Admin2 Admin2@YourNetwork.org";
Contact = "E-mail: coder-com@yournetwork.org";
};
# [Classes]
# Recommended server classes:
# All your server uplinks you are not a hub for.
Class {
name = "Server";
pingfreq = 1 minutes 30 seconds;
connectfreq = 5;
maxlinks = 50;
sendq = 9000000;
};
# All the leaf servers you hub for.
Class {
name = "LeafServer";
pingfreq = 1 minutes 30 seconds;
connectfreq = 5 minutes;
maxlinks = 0;
sendq = 9000000;
};
# Client classes definition
# Take the following class blocks only as a guide.
Class {
name = "Local";
pingfreq = 1 minutes 30 seconds;
sendq = 160000;
maxlinks = 0;
usermode = "+iw";
};
Class {
name = "America";
pingfreq = 1 minutes 30 seconds;
sendq = 80000;
maxlinks = 0;
#maxlinks = 3000;
};
Class {
name = "Other";
pingfreq = 1 minutes 30 seconds;
sendq = 160000;
maxlinks = 0;
};
Class {
name = "Coders";
pingfreq = 1 minutes 30 seconds;
sendq = 160000;
maxlinks = 200;
see_chan = yes;
list_chan = yes;
local = no;
rehash = yes;
walk_lchan = yes;
};
Class {
name = "Opers";
pingfreq = 1 minutes 30 seconds;
sendq = 160000;
maxlinks = 200;
local = no;
whox = yes;
display = yes;
chan_limit = yes;
mode_lchan = yes;
deop_lchan = no;
walk_lchan = no;
show_invis = yes;
show_all_invis = yes;
unlimit_query = yes;
local_kill = yes;
rehash = yes;
restart = no;
die = no;
local_jupe = no;
set = yes;
local_gline = no;
local_badchan = yes;
see_chan = yes;
list_chan = yes;
wide_gline = no;
see_opers = yes;
local_opmode = yes;
force_local_opmode = yes;
kill = yes;
gline = no;
opmode = yes;
badchan = no;
};
Class {
name = "Limited";
pingfreq = 1 minutes 30 seconds;
sendq = 160000;
maxlinks = 200;
local = no;
whox = no;
display = yes;
chan_limit = no;
mode_lchan = no;
deop_lchan = no;
walk_lchan = no;
show_invis = no;
show_all_invis = no;
unlimit_query = no;
local_kill = no;
rehash = no;
restart = no;
die = no;
local_jupe = no;
set = no;
local_gline = no;
local_badchan = no;
see_chan = no;
list_chan = no;
wide_gline = no;
see_opers = no;
local_opmode = no;
force_local_opmode = no;
kill = no;
gline = no;
opmode = no;
badchan = no;
};
# [Client]
Client
{
class = "Other";
ip = "*@*";
maxlinks = 5;
};
Client
{
class = "Other";
host = "*@*";
maxlinks = 5;
};
Client
{
class = "Other";
ip = "*@198.52.*";
maxlinks = 10;
};
# Here, take care of all American ISPs.
Client
{
host = "*@*.com";
class = "America";
maxlinks = 5;
};
Client
{
host = "*@*.net";
class = "America";
maxlinks = 5;
};
Client { host = "*@*.wirehub.net"; class = "Other"; maxlinks=3; };
Client { host = "*@*.planete.net"; class = "Other"; maxlinks=3; };
Client { host = "*@*.ivg.com"; class = "Other"; maxlinks=3; };
Client { host = "*@*.ib.com"; class = "Other"; maxlinks=3; };
Client { host = "*@*.ibm.net"; class = "Other"; maxlinks=3; };
Client { host = "*@*.hydro.com"; class = "Other"; maxlinks=3; };
Client { host = "*@*.nl.net"; class = "Local"; maxlinks=3; };
# Ourselves - this makes sure that we can get in, no matter how full
# the server is (hopefully).
Client
{
host = "*@*";
ip = "*@127.0.0.1";
class = "Local";
maxlinks = 1000;
};
# [motd]
motd {
host = "*";
file = "ircd.motd";
};
# [UWorld]
UWorld {
name = "channels.yournetwork.org";
name = "ccontrol.yournetwork.org";
name = "dronescan.yournetwork.org";
};
# As of ircu2.10.05 is it possible to Jupe nicks. As per CFV-0095 and
# CFV-0255, the following nicks must be juped, it is not allowed to
# jupe others as well.
Jupe {
nick = "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,{,|,},~,-,_,`";
nick = "EuWorld,UWorld,UWorld2";
nick = "login,yournetwork,protocol,pass,newpass,org";
nick = "StatServ,NoteServ";
nick = "ChanSvr,ChanSaver,ChanServ";
nick = "NickSvr,NickSaver,NickServ";
nick = "LPT1,LPT2,COM1,COM2,COM3,COM4,AUX";
};
# [Kill]
# Kill
# {
# host = "user@host";
# reason = "The reason the user will see";
# };
# [Connect]
# HUB
Connect {
name = "channels.yournetwork.org";
host = "127.0.0.1";
password = "54321";
port = 4400;
class = "Server";
autoconnect = no;
hub = "*";
};
Connect {
name = "irc.YourNetwork.org";
host = "168.235.93.155";
password = "54321";
port = 4400;
class = "Server";
autoconnect = yes;
hub;
};
# [Operator]
Operator {
host = "*@*";
password = "$PLAIN$temPass";
name = "Seven";
class = "Coders";
};
# [Port]
Port {
server = yes;
vhost = "127.0.0.1" 4400;
# vhost = "127.0.0.1" 4401;
# vhost = "192.168.2.101" 4400;
};
# This is an IPv4-only Server port that is Hidden
#Port {
# server = yes;
# hidden = yes;
# port = ipv4 4401;
#};
# The following are normal client ports
#Port {
# port = 6667; vhost = ipv4 "192.168.2.101";
# port = 6667; vhost = ipv4 "192.168.2.117";
# port = 6669; vhost = ipv4 "192.168.2.118";
# port = 6667; vhost = ipv6 "2001:470:c:10f8::3";
#};
#Port {
# port = 6667; vhost = ipv6 "2001:5c0:1400:a::17b";
#};
Port { port = 6667; };
#Port {
# # This only accepts clients with IPs like 192.168.*.
# mask = "192.168.*";
# port = 6666;
#};
# This is a hidden client port, listening on 168.8.21.107.
#Port {
# vhost = "192.168.2.117";
# hidden = yes;
# port = 7000;
#};
# More than one vhost may be present in a single Port block; in this case,
# we recommend listing the port number on the vhost line for clarity.
#Port {
# vhost = "127.0.0.1" 6667;
# vhost = "192.168.2.100" 6668;
# hidden = no;
#};
Quarantine {
"#CSC" = "They can take care of themselves";
};
# Pseudo
Pseudo "CHANSERV" {
name = "X";
nick = "X@channels.yournetwork.org";
};
# You can also prepend text before the user's message.
Pseudo "LOGIN" {
name = "X";
prepend = "LOGIN ";
nick = "X@channels.yournetwork.org";
};
#IAuth {
# program = "/home/ircd/iauthd-c-bin/libexec/iauthd-c" "-d" "-f" "/home/ircd/iauthd-c-bin/etc/iauthd-c.conf";
#};
features
{
"LOG" = "SYSTEM" "FILE" "ircd.log";
"LOG" = "SYSTEM" "LEVEL" "CRIT";
"CONNEXIT_NOTICES"="TRUE";
"DOMAINNAME"="yournetwork.org";
"RELIABLE_CLOCK"="FALSE";
"BUFFERPOOL"="27000000";
"HAS_FERGUSON_FLUSHER"="FALSE";
"CLIENT_FLOOD"="1024";
"SERVER_PORT"="4400";
"NODEFAULTMOTD"="FALSE";
# "MOTD_BANNER"="TRUE";
"MOTD_BANNER"="Welcome to the YourNetwork IRC Network";
"KILL_IPMISMATCH"="FALSE";
"IDLE_FROM_MSG"="TRUE";
"HUB"="TRUE";
# "WALLOPS_OPER_ONLY"="FALSE";
"WALLOPS_OPER_ONLY"="TRUE";
"NODNS"="FALSE";
# "RANDOM_SEED"="<you should set one explicitly>";
"RANDOM_SEED"="&YourNetwork";
"DEFAULT_LIST_PARAM"="TRUE";
"NICKNAMEHISTORYLENGTH"="800";
"NETWORK"="YourNetwork";
"HOST_HIDING"="TRUE";
"HIDDEN_HOST"="users.yournetwork.org";
"HIDDEN_IP"="127.0.0.1";
"KILLCHASETIMELIMIT"="50";
"MAXCHANNELSPERUSER"="50";
"NICKLEN" = "50";
"AVBANLEN"="40";
"MAXBANS"="1024";
"MAXSILES"="15";
"HANGONGOODLINK"="300";
"HANGONRETRYDELAY" = "10";
"CONNECTTIMEOUT" = "90";
"MAXIMUM_LINKS" = "0";
"PINGFREQUENCY" = "120";
"CONNECTFREQUENCY" = "50";
# "DEFAULTMAXSENDQLENGTH" = "40000000";
"DEFAULTMAXSENDQLENGTH" = "400000000";
"GLINEMAXUSERCOUNT" = "20";
"MPATH" = "yournetwork.motd";
"RPATH" = "remote.motd";
"PPATH" = "ircd-gnu.pid";
"TOS_SERVER" = "0x08";
"TOS_CLIENT" = "0x08";
"POLLS_PER_LOOP" = "200";
"IRCD_RES_TIMEOUT" = "4";
"IRCD_RES_RETRIES" = "2";
"AUTH_TIMEOUT" = "9";
"IPCHECK_CLONE_LIMIT" = "5";
"IPCHECK_CLONE_PERIOD" = "40";
"IPCHECK_CLONE_DELAY" = "600";
"CHANNELLEN" = "200";
"CONFIG_OPERCMDS" = "TRUE";
"OPLEVELS" = "TRUE";
"ZANNELS" = "TRUE";
"LOCAL_CHANNELS" = "TRUE";
"ANNOUNCE_INVITES" = "FALSE";
"HIS_SNOTICES" = "TRUE";
"HIS_SNOTICES_OPER_ONLY" = "TRUE";
"HIS_DEBUG_OPER_ONLY" = "TRUE";
"HIS_WALLOPS" = "TRUE";
"HIS_MAP" = "TRUE";
"HIS_LINKS" = "TRUE";
"HIS_TRACE" = "TRUE";
"HIS_STATS_a" = "TRUE";
"HIS_STATS_c" = "TRUE";
"HIS_STATS_d" = "TRUE";
"HIS_STATS_e" = "TRUE";
"HIS_STATS_f" = "TRUE";
"HIS_STATS_g" = "TRUE";
"HIS_STATS_i" = "TRUE";
"HIS_STATS_j" = "TRUE";
"HIS_STATS_J" = "TRUE";
"HIS_STATS_k" = "TRUE";
"HIS_STATS_l" = "TRUE";
"HIS_STATS_L" = "TRUE";
"HIS_STATS_m" = "TRUE";
"HIS_STATS_M" = "TRUE";
"HIS_STATS_o" = "TRUE";
"HIS_STATS_p" = "TRUE";
"HIS_STATS_q" = "TRUE";
"HIS_STATS_r" = "TRUE";
"HIS_STATS_R" = "TRUE";
"HIS_STATS_t" = "TRUE";
"HIS_STATS_T" = "TRUE";
"HIS_STATS_u" = "FALSE";
"HIS_STATS_U" = "TRUE";
"HIS_STATS_v" = "TRUE";
"HIS_STATS_w" = "TRUE";
"HIS_STATS_x" = "TRUE";
"HIS_STATS_y" = "TRUE";
"HIS_STATS_z" = "TRUE";
"HIS_STATS_IAUTH" = "TRUE";
"HIS_WHOIS_SERVERNAME" = "TRUE";
"HIS_WHOIS_IDLETIME" = "TRUE";
"HIS_WHOIS_LOCALCHAN" = "TRUE";
"HIS_WHO_SERVERNAME" = "TRUE";
"HIS_WHO_HOPCOUNT" = "TRUE";
"HIS_MODEWHO" = "TRUE";
"HIS_BANWHO" = "TRUE";
"HIS_KILLWHO" = "TRUE";
"HIS_REWRITE" = "TRUE";
"HIS_REMOTE" = "TRUE";
"HIS_NETSPLIT" = "TRUE";
"HIS_SERVERNAME" = "*.YourNetwork.org";
"HIS_SERVERINFO" = "The YourNetwork Server";
"HIS_URLSERVERS" = "http://cservice.yournetwork.org/servers.php";
"URLREG" = "http://cservice.yournetwork.org/live/";
#"AUTOCHANMODES" = "TRUE";
#"AUTOCHANMODES_LIST" = "tn";
};
File diff suppressed because it is too large. Load diff
+187
View File
@@ -0,0 +1,187 @@
-- Merry Christmas!
-- Christmas language definition.
-- 24/12/01 - R33D33R <reed@redmagnet.com>. (miscellaneous updates)
-- 24/12/01 - nighty <nighty@undernet.org>. (fixed missing field and type of queries)
-- 19/12/01 - R33D33R <reed@redmagnet.com>.
-- Special thanks to Vampire-.
-- Run this once.
DELETE FROM languages WHERE id=21;
INSERT INTO languages VALUES(21,'CH','Christmas',31337);
DELETE FROM translations WHERE language_id = 21;
COPY "translations" FROM stdin;
21 1 We know choosing a present is difficult, but having an identity crisis is a no-no %s 31337 0
21 2 Welcome to the Winter Wonderland, %s 31337 0
21 3 Sorry, you don''t have the correct number of stars to cast that spell :) 31337 0
21 4 Sorry, the tree %s is empty 31337 0
21 5 I don't see %s anywhere 31337 0
21 6 I can't find %s on tree %s 31337 0
21 7 The tree %s doesn't appear to be in Santa's sled 31337 0
21 8 You're opped by %s (%s) on %s 31337 0
21 9 You're voiced by %s (%s) on %s 31337 0
21 10 %s: You are not in that tree 31337 0
21 11 %s is already opped in %s 31337 0
21 12 %s is already voiced in %s 31337 0
21 13 You're deoped by %s (%s) 31337 0
21 14 You're devoiced by %s (%s) 31337 0
21 15 %s is not opped in %s 31337 0
21 16 %s is not voiced in %s 31337 0
21 17 %s is snowed out of the Winter Wonderland (Invalid Ornament) 31337 0
21 18 I'm not in that tree! 31337 0
21 19 Invalid curse-level range. Valid range is 1-%i. 31337 0
21 20 Invalid curse duration. Your curse duration can be a maximum of %d hours. 31337 0
21 21 Curse reason cannot exceed 128 chars 31337 0
21 22 Specified curse is already in my curse-list! 31337 0
21 23 The curse %s is already covered by %s 31337 0
21 24 Invalid minimum level. 31337 0
21 25 Invalid maximum level. 31337 0
21 26 ELF: %s STARS: %s %s 31337 0
21 27 TREE: %s -- AUTOMODE: %s 31337 0
21 28 LAST MODIFIED: %s (%s ago) 31337 0
21 29 ** CHARMED ** - Expires in %s (Level %i) 31337 0
21 30 LAST SEEN: %s ago. 31337 0
21 31 There are more than %d matching entries. 31337 0
21 32 Please restrict your query. 31337 0
21 33 End of stars list 31337 0
21 34 No Match! 31337 0
21 35 Cannot add an elf that will have equal or more stars than you have. 31337 0
21 36 Invalid stars level. 31337 0
21 37 %s is already added to %s with stars level %i. 31337 0
21 38 Added elf %s to %s with stars level %i 31337 0
21 39 Something went wrong: %s 31337 0
21 40 %s: End of curse list 31337 0
21 41 That elf is under an invisible spell, therefore, you cannot view elf details 31337 0
21 42 Information about: %s (%i) 31337 0
21 43 Currently listed in Santa's Book as: %s 31337 0
21 44 URL: %s 31337 0
21 45 Language: %i 31337 0
21 46 Trees: %s 31337 0
21 47 Input Flood Points: %i 31337 0
21 48 Ouput Flood (Bytes): %i 31337 0
21 49 %s is registered by: 31337 0
21 50 %s - last seen: %s ago 31337 0
21 51 Desc: %s 31337 0
21 52 Flood me will you? I'm spoiled so I'm not going to listen to you anymore! :p 31337 0
21 53 I think I've sent you a little too much data, I'm going to ignore you for a while. 31337 0
21 54 Incomplete command 31337 0
21 55 To use %s, you must /msg %s@%s 31337 0
21 56 Sorry, you must be in Santa's Book to use this command. 31337 0
21 57 The tree %s has been charmed by one of Santa's North Pole Helpers. 31337 0
21 58 Your stars on %s has been charmed. 31337 0
21 59 The NOOP flag is set on %s 31337 0
21 60 The STRICTOP flag is set on %s 31337 0
21 61 You just deoped more than %i people 31337 0
21 62 SYNTAX: %s 31337 0
21 63 Temporarily increased your stars on tree %s to %i 31337 0
21 64 %s is present in Santa's sled. 31337 0
21 65 %s is not present in Santa's sled. 31337 0
21 66 I don't think %s would appreciate that. 31337 0
21 67 \002*** Curse List for Tree %s ***\002 31337 0
21 68 %s %s Level: %i 31337 0
21 69 ADDED BY: %s (%s) 31337 0
21 70 SINCE: %s 31337 0
21 71 EXP: %s 31337 0
21 72 \002*** END ***\002 31337 0
21 73 I don't know who %s is. 31337 0
21 74 Someone has erased you from Santa's Book. 31337 0
21 75 %s doesn't appear to have stars in %s. 31337 0
21 76 Cannot modify an elf with equal or more stars than you have. 31337 0
21 77 Cannot give an elf more or equal stars than you have. 31337 0
21 78 Modified %s's stars level on tree %s to %i 31337 0
21 79 Set AUTOMODE to OP for %s on tree %s 31337 0
21 80 Set AUTOMODE to VOICE for %s on tree %s 31337 0
21 81 Set AUTOMODE to NONE for %s on tree %s 31337 0
21 82 Your secret ornament cannot be your elfname or current nick - syntax is: NEWPASS <new passphrase> 31337 0
21 83 Ornament successfully changed. 31337 0
21 84 The NOOP flag is set on %s 31337 0
21 85 The STRICTOP flag is set on %s (and %s isn't authenticated) 31337 0
21 86 The STRICTOP flag is set on %s (and %s has insufficient stars) 31337 0
21 87 %s is frozen in ice never to be thawed. 31337 0
21 88 %s is already registered with me. 31337 0
21 89 Invalid tree name. 31337 0
21 90 Registered tree %s 31337 0
21 91 Removed %s from my silence list 31337 0
21 92 Couldn't find %s in my silence list 31337 0
21 93 Cannot remove an elf with equal or more stars than you have 31337 0
21 94 You can't remove yourself from a tree you own 31337 0
21 95 Removed elf %s from %s 31337 0
21 96 You casted the INVISIBLE SPELL on yourself. 31337 0
21 97 You revoked the INVISIBLE SPELL on yourself. 31337 0
21 98 %s for %s is %s 31337 0
21 99 Value of %s must be ON or OFF 31337 0
21 100 Invalid ELFFLAGS setting. Correct values are NONE, OP, VOICE. 31337 0
21 101 ELFFLAGS for %s is %s 31337 0
21 102 Value of MASSDEOPPRO has to be 0-7 31337 0
21 103 MASSDEOPPRO for %s is set to %d 31337 0
21 104 Value of FLOODPRO has to be 0-7 31337 0
21 105 FLOODPRO for %s is set to %d 31337 0
21 106 The DESCRIPTION can be a maximum of 80 chars! 31337 0
21 107 DESCRIPTION for %s is cleared. 31337 0
21 108 DESCRIPTION for %s is: %s 31337 0
21 109 The URL can be a maximum of 75 chars! 31337 0
21 110 URL for %s is cleared. 31337 0
21 111 URL for %s is: %s 31337 0
21 112 The string of keywords cannot exceed 80 chars! 31337 0
21 113 KEYWORDS for %s are: %s 31337 0
21 114 Language is set to %s. 31337 0
21 115 ERROR: Invalid language selection. 31337 0
21 116 Can't locate tree %s on the network! 31337 0
21 117 ERROR: Invalid tree setting. 31337 0
21 118 Ignore list: 31337 0
21 119 Ignore list is empty 31337 0
21 120 -- End of Ignore List 31337 0
21 121 CMaster Tree Services internal status: 31337 0
21 122 [Tree Record Stats] \002Cached Entries:\002 %i \002DB Requests:\002 %i \002Cache Hits:\002 %i \002Efficiency:\002 %.2f%% 31337 0
21 123 [Elf Record Stats] \002Cached Entries:\002 %i \002DB Requests:\002 %i \002Cache Hits:\002 %i \002Efficiency:\002 %.2f%% 31337 0
21 124 [Stars Level Record Stats] \002Cached Entries:\002 %i \002DB Requests:\002 %i \002Cache Hits:\002 %i \002Efficiency:\002 %.2f%% 31337 0
21 125 [Curse Record Stats] \002Cached Entries:\002 %i \002DB Requests:\002 %i \002Cache Hits:\002 %i \002Efficiency:\002 %.2f%% 31337 0
21 126 Last received Elf NOTIFY: %i 31337 0
21 127 Last received Tree NOTIFY: %i 31337 0
21 128 Last received Level NOTIFY: %i 31337 0
21 129 Last received Curse NOTIFY: %i 31337 0
21 130 Custom data containers allocated: %i 31337 0
21 131 \002Uptime:\002 %s 31337 0
21 132 Tree %s has %d elfs (%i operators) 31337 0
21 133 Mode is: %s 31337 0
21 134 Flags set: %s 31337 0
21 135 Cannot charm an elf with equal or more stars than you have. 31337 0
21 136 Bogus Time Units 31337 0
21 137 Invalid charm duration. 31337 0
21 138 CHARM for %s is cancelled 31337 0
21 139 %s is already charmed on %s 31337 0
21 140 CHARM for %s will expire in %s 31337 0
21 141 ERROR: Topic cannot exceed 145 chars 31337 0
21 142 You have insufficient stars to remove the curse %s from %s's database 31337 0
21 143 Removed %i curses that matched %s 31337 0
21 144 Removed your temporary stars of %i from tree %s 31337 0
21 145 You don't appear to have forced stars in %s, perhaps it expired? 31337 0
21 146 %s isn't charmed on %s 31337 0
21 147 %s is one of Santa's reindeer 31337 0
21 148 %s does not believe in Santa Claus. 31337 0
21 149 %s is listed in Santa's Book as %s%s 31337 0
21 150 %s is an Official North Pole Helper%s and is listed in Santa's Book as %s 31337 0
21 151 %s is a Generous Official North Pole Helper%s and is listed in Santa's Book as %s 31337 0
21 152 %s is an Angel%s and is listed in Santa's Book as %s 31337 0
21 153 There are more than %i entries matching [%s] 31337 0
21 154 Please restrict your search mask 31337 0
21 155 No matching entries for [%s] 31337 0
21 156 %s: Cleared tree modes. 31337 0
21 158 Invalid option. 31337 0
21 159 %s is an Official UnderNet Red-Nosed Reindeer. 31337 0
21 160 %s is an Official Coder-Com Representative%s and is listed in Santa's Book as %s 31337 0
21 161 %s is an Official Coder-Com Contributer%s and is listed in Santa's Book as %s 31337 0
21 162 %s is an Official Coder-Com Developer%s and is listed in Santa's Book as %s 31337 0
21 163 %s is an Official Coder-Com Senior%s and is listed in Santa's Book as %s 31337 0
21 164 and is one of Santa's reindeer 31337 0
21 165 Added curse %s to %s at level %i 31337 0
21 166 %s: curse list is empty. 31337 0
21 167 I'm already in that tree! 31337 0
21 168 This command is reserved to Santa's reindeer 31337 0
21 169 I'm not opped on %s 31337 0
21 170 %s for %i minutes 31337 0
\.
+182
View File
@@ -0,0 +1,182 @@
-- $Id: language_dutch.sql,v 1.6 2007/12/26 19:13:00 kewlio Exp $ --
-- Dutch language definition.
-- 9/2/02 - Eagle-One (Ken Geboers) <Eagle-One@pandora.be>.
-- Run this once.
DELETE FROM languages WHERE id=4;
INSERT INTO languages VALUES(4,'NL','Dutch',31337);
DELETE FROM translations WHERE language_id = 4;
INSERT INTO translations VALUES (4,1,'Sorry, je bent reeds ingelogd als %s',31337,0);
INSERT INTO translations VALUES (4,2,'VERIFICATIE SUCCESVOL als %s',31337,0);
INSERT INTO translations VALUES (4,3,'Sorry, je hebt te weinig toegang om dat commando uit te voeren',31337,0);
INSERT INTO translations VALUES (4,4,'Sorry, het kanaal %s is leeg',31337,0);
INSERT INTO translations VALUES (4,5,'Ik zie %s nergens',31337,0);
INSERT INTO translations VALUES (4,6,'Ik kan %s niet vinden in kanaal %s',31337,0);
INSERT INTO translations VALUES (4,7,'Het kanaal %s lijkt niet geregistreerd te zijn',31337,0);
INSERT INTO translations VALUES (4,8,'Je hebt operator status gekregen van %s (%s)',31337,0);
INSERT INTO translations VALUES (4,9,'Je hebt voice status gekregen van %s (%s)',31337,0);
INSERT INTO translations VALUES (4,10,'%s: Je bent niet in dat kanaal',31337,0);
INSERT INTO translations VALUES (4,11,'%s heeft reeds operator status in %s',31337,0);
INSERT INTO translations VALUES (4,12,'%s heeft reeds voice status in %s',31337,0);
INSERT INTO translations VALUES (4,13,'Je operator status is weggenomen door %s (%s)',31337,0);
INSERT INTO translations VALUES (4,14,'Je voice status is weggenomen door %s (%s)',31337,0);
INSERT INTO translations VALUES (4,15,'%s heeft geen operator status in %s',31337,0);
INSERT INTO translations VALUES (4,16,'%s heeft geen voice status in %s',31337,0);
INSERT INTO translations VALUES (4,17,'VERIFICATIE MISLUKT als %s (ongeldig wachtwoord)',31337,0);
INSERT INTO translations VALUES (4,18,'Ik ben niet in dat kanaal!',31337,0);
INSERT INTO translations VALUES (4,19,'Ongeldig banniveau. Geldige breedte is 1-%i.',31337,0);
INSERT INTO translations VALUES (4,20,'Ongeldige banlengte. Je banlengte kan maximum %d uur bedragen.',31337,0);
INSERT INTO translations VALUES (4,21,'Banreden kan de 128 karakters niet overschrijden',31337,0);
INSERT INTO translations VALUES (4,22,'Gespecifiëerde ban staat reeds in mijn banlijst!',31337,0);
INSERT INTO translations VALUES (4,23,'De ban %s wordt reeds gedekt door %s',31337,0);
INSERT INTO translations VALUES (4,24,'Ongeldig minimum niveau.',31337,0);
INSERT INTO translations VALUES (4,25,'Ongeldig maximum niveau.',31337,0);
INSERT INTO translations VALUES (4,26,'GEBRUIKER: %s TOEGANG: %s %s',31337,0);
INSERT INTO translations VALUES (4,27,'KANAAL: %s -- AUTOMODE: %s',31337,0);
INSERT INTO translations VALUES (4,28,'LAATST AANGEPAST: %s (%s geleden)',31337,0);
INSERT INTO translations VALUES (4,29,'** GESCHORST ** - vervalt in %s (Niveau %i)',31337,0);
INSERT INTO translations VALUES (4,30,'LAATST GEZIEN: %s geleden.',31337,0);
INSERT INTO translations VALUES (4,31,'Er zijn meer dan %d bijhorende records.',31337,0);
INSERT INTO translations VALUES (4,32,'Gelieve uw zoekopdracht te beperken.',31337,0);
INSERT INTO translations VALUES (4,33,'Einde toegangslijst',31337,0);
INSERT INTO translations VALUES (4,34,'Geen bijhorende records!',31337,0);
INSERT INTO translations VALUES (4,35,'Kan geen gebruiker toevoegen met gelijke of hogere toegang dan die van jou.',31337,0);
INSERT INTO translations VALUES (4,36,'Ongeldig toegangsniveau.',31337,0);
INSERT INTO translations VALUES (4,37,'%s is reeds toegevoegd aan %s met toegangsniveau %i.',31337,0);
INSERT INTO translations VALUES (4,38,'Gebruiker %s toegevoegd aan %s met toegangsniveau %i',31337,0);
INSERT INTO translations VALUES (4,39,'Er ging iets mis: %s',31337,0);
INSERT INTO translations VALUES (4,40,'%s: Einde van de banlijst',31337,0);
INSERT INTO translations VALUES (4,41,'Onmogelijk om de details van de gebruiker te zien (Onzichtbaar)',31337,0);
INSERT INTO translations VALUES (4,42,'Informatie over: %s (%i)',31337,0);
INSERT INTO translations VALUES (4,43,'Momenteel ingelogd als: %s',31337,0);
INSERT INTO translations VALUES (4,44,'URL: %s',31337,0);
INSERT INTO translations VALUES (4,45,'Taal: %i',31337,0);
INSERT INTO translations VALUES (4,46,'Kanalen: %s',31337,0);
INSERT INTO translations VALUES (4,47,'Invoer Flood Points: %i',31337,0);
INSERT INTO translations VALUES (4,48,'Uitvoer Flood (Bytes): %i',31337,0);
INSERT INTO translations VALUES (4,49,'%s is geregistreerd door:',31337,0);
INSERT INTO translations VALUES (4,50,'%s - laatst gezien: %s geleden',31337,0);
INSERT INTO translations VALUES (4,51,'Omschr: %s',31337,0);
INSERT INTO translations VALUES (4,52,'Mij flooden? Ik ga niet meer naar jou luisteren :p',31337,0);
INSERT INTO translations VALUES (4,53,'Ik denk dat ik je een beetje te veel data heb gestuurd, ik ga je voor een tijdje negeren.',31337,0);
INSERT INTO translations VALUES (4,54,'Onvolledig commando',31337,0);
INSERT INTO translations VALUES (4,55,'Om %s te gebruiken, moet je /msg %s@%s gebruiken',31337,0);
INSERT INTO translations VALUES (4,56,'Sorry, je moet ingelogd zijn om dit commando te gebruiken.',31337,0);
INSERT INTO translations VALUES (4,57,'Het kanaal %s is geschorst door een CService Administrator.',31337,0);
INSERT INTO translations VALUES (4,58,'Je toegang in %s is geschorst.',31337,0);
INSERT INTO translations VALUES (4,59,'De NOOP instelling is geactiveerd in %s',31337,0);
INSERT INTO translations VALUES (4,60,'De STRICTOP instelling is geactiveerd in %s',31337,0);
INSERT INTO translations VALUES (4,61,'Je hebt zojuist bij meer dan %i mensen de operator status weggenomen',31337,0);
INSERT INTO translations VALUES (4,62,'SYNTAXIS: %s',31337,0);
INSERT INTO translations VALUES (4,63,'Tijdelijk je toegang in %s verhoogd naar %i',31337,0);
INSERT INTO translations VALUES (4,64,'%s is geregistreerd.',31337,0);
INSERT INTO translations VALUES (4,65,'%s is niet geregistreerd.',31337,0);
INSERT INTO translations VALUES (4,66,'Ik denk niet dat %s dat zou appreciëren.',31337,0);
INSERT INTO translations VALUES (4,67,'\002*** Banlijst voor kanaal %s ***\002',31337,0);
INSERT INTO translations VALUES (4,68,'%s %s Niveau: %i',31337,0);
INSERT INTO translations VALUES (4,69,'TOEGEVOEGD DOOR: %s (%s)',31337,0);
INSERT INTO translations VALUES (4,70,'SINDS: %s',31337,0);
INSERT INTO translations VALUES (4,71,'VERVALT: %s',31337,0);
INSERT INTO translations VALUES (4,72,'\002*** EINDE ***\002',31337,0);
INSERT INTO translations VALUES (4,73,'Ik weet niet wie %s is.',31337,0);
INSERT INTO translations VALUES (4,74,'Je bent niet meer ingelogd bij mij.',31337,0);
INSERT INTO translations VALUES (4,75,'%s schijnt geen toegang te hebben in %s.',31337,0);
INSERT INTO translations VALUES (4,76,'Kan geen gebruiker aanpassen met gelijke of hogere toegang dan die van jou.',31337,0);
INSERT INTO translations VALUES (4,77,'Kan geen gebruiker een hogere of gelijke toegang geven dan die van jou.',31337,0);
INSERT INTO translations VALUES (4,78,'%s\'s toegangsniveau aangepast in kanaal %s naar %i',31337,0);
INSERT INTO translations VALUES (4,79,'AUTOMODE van %s aangepast naar OP in kanaal %s',31337,0);
INSERT INTO translations VALUES (4,80,'AUTOMODE van %s aangepast naar VOICE in kanaal %s',31337,0);
INSERT INTO translations VALUES (4,81,'AUTOMODE van %s aangepast naar NONE in kanaal %s',31337,0);
INSERT INTO translations VALUES (4,82,'Je wachtwoord kan niet je gebruikersnaam of actuele nick zijn - syntaxis is: NEWPASS <nieuw wachtwoord>',31337,0);
INSERT INTO translations VALUES (4,83,'Wachtwoord succesvol veranderd.',31337,0);
INSERT INTO translations VALUES (4,84,'De NOOP instelling is geactiveerd in %s',31337,0);
INSERT INTO translations VALUES (4,85,'De STRICTOP instelling is geactiveerd in %s (en %s is niet ingelogd)',31337,0);
INSERT INTO translations VALUES (4,86,'De STRICTOP instelling is geactiveerd in %s (en %s heeft niet genoeg toegang)',31337,0);
INSERT INTO translations VALUES (4,87,'Kanaal %s verwijderd',31337,0);
INSERT INTO translations VALUES (4,88,'%s is reeds bij mij geregistreerd.',31337,0);
INSERT INTO translations VALUES (4,89,'Ongeldige kanaalnaam.',31337,0);
INSERT INTO translations VALUES (4,90,'Kanaal %s geregistreerd',31337,0);
INSERT INTO translations VALUES (4,91,'%s verwijderd uit mijn stilzwijgenlijst',31337,0);
INSERT INTO translations VALUES (4,92,'Kan %s niet in mijn stilzwijgenlijst vinden',31337,0);
INSERT INTO translations VALUES (4,93,'Kan geen gebruiker verwijderen met een hogere of gelijke toegang dan die van jou',31337,0);
INSERT INTO translations VALUES (4,94,'Je kan jezelf niet verwijderen uit een kanaal dat je bezit',31337,0);
INSERT INTO translations VALUES (4,95,'Gebruiker %s verwijderd uit %s',31337,0);
INSERT INTO translations VALUES (4,96,'Je INVISIBLE instelling staat nu AAN',31337,0);
INSERT INTO translations VALUES (4,97,'Je INVISIBLE instelling staat nu AF',31337,0);
INSERT INTO translations VALUES (4,98,'%s voor %s is %s',31337,0);
INSERT INTO translations VALUES (4,99,'waarde van %s moet ON of OFF zijn',31337,0);
INSERT INTO translations VALUES (4,100,'Ongeldige USERFLAGS instelling. Juiste waarden zijn: NONE, OP, VOICE.',31337,0);
INSERT INTO translations VALUES (4,101,'USERFLAGS voor %s is %s',31337,0);
INSERT INTO translations VALUES (4,102,'Waarde van MASSDEOPPRO moet zijn: 0-7',31337,0);
INSERT INTO translations VALUES (4,103,'MASSDEOPPRO voor %s is gezet op %d',31337,0);
INSERT INTO translations VALUES (4,104,'Waarde van FLOODPRO moet zijn: 0-7',31337,0);
INSERT INTO translations VALUES (4,105,'FLOODPRO voor %s is gezet op %d',31337,0);
INSERT INTO translations VALUES (4,106,'De DESCRIPTION mag maximum 80 karakters zijn!',31337,0);
INSERT INTO translations VALUES (4,107,'DESCRIPTION voor %s is leeggemaakt.',31337,0);
INSERT INTO translations VALUES (4,108,'DESCRIPTION voor %s is: %s',31337,0);
INSERT INTO translations VALUES (4,109,'De URL mag maximum 75 karakters zijn!',31337,0);
INSERT INTO translations VALUES (4,110,'URL voor %s is leeggemaakt.',31337,0);
INSERT INTO translations VALUES (4,111,'URL voor %s is: %s',31337,0);
INSERT INTO translations VALUES (4,112,'De reeks sleutelwoorden mag de 80 karakters niet overschrijden!',31337,0);
INSERT INTO translations VALUES (4,113,'KEYWORDS voor %s zijn: %s',31337,0);
INSERT INTO translations VALUES (4,114,'Taal is gewijzigd naar %s.',31337,0);
INSERT INTO translations VALUES (4,115,'ERROR: Ongeldige taal-selectie.',31337,0);
INSERT INTO translations VALUES (4,116,'Kan kanaal %s niet vinden op het netwerk!',31337,0);
INSERT INTO translations VALUES (4,117,'ERROR: Ongeldige kanaal-instelling.',31337,0);
INSERT INTO translations VALUES (4,118,'Negeerlijst:',31337,0);
INSERT INTO translations VALUES (4,119,'Negeerlijst is leeg',31337,0);
INSERT INTO translations VALUES (4,120,'-- Einde van negeerlijst',31337,0);
INSERT INTO translations VALUES (4,121,'CMaster kanaal Services interne status:',31337,0);
INSERT INTO translations VALUES (4,122,'[ Kanaal Record Stats] \002Gecachete Records:\002 %i \002DB Aanvragen:\002 %i \002Cache Treffers:\002 %i \002Efficiëntie:\002 %.2f%%',31337,0);
INSERT INTO translations VALUES (4,123,'[ Gebruiker Record Stats] \002Gecachete Records:\002 %i \002DB Aanvragen:\002 %i \002Cache Treffers:\002 %i \002Efficiëntie:\002 %.2f%%',31337,0);
INSERT INTO translations VALUES (4,124,'[Toegangsniveau Record Stats] \002Gecachete Records:\002 %i \002DB Aanvragen:\002 %i \002Cache Treffers:\002 %i \002Efficiëntie:\002 %.2f%%',31337,0);
INSERT INTO translations VALUES (4,125,'[ Ban Record Stats] \002Gecachete Records:\002 %i \002DB Aanvragen:\002 %i \002Cache Treffers:\002 %i \002Efficiëntie:\002 %.2f%%',31337,0);
INSERT INTO translations VALUES (4,126,'Laatst ontvangen User NOTIFY: %i',31337,0);
INSERT INTO translations VALUES (4,127,'Laatst ontvangen Kanaal NOTIFY: %i',31337,0);
INSERT INTO translations VALUES (4,128,'Laatst ontvangen Niveau NOTIFY: %i',31337,0);
INSERT INTO translations VALUES (4,129,'Laatst ontvangen Ban NOTIFY: %i',31337,0);
INSERT INTO translations VALUES (4,130,'Gebruikelijke toegewezen data containers: %i',31337,0);
INSERT INTO translations VALUES (4,131,'\002Uptime:\002 %s',31337,0);
INSERT INTO translations VALUES (4,132,'Kanaal %s heeft %d gebruikers (%i operators)',31337,0);
INSERT INTO translations VALUES (4,133,'Modes zijn: %s',31337,0);
INSERT INTO translations VALUES (4,134,'Gebruikte instellingen: %s',31337,0);
INSERT INTO translations VALUES (4,135,'Kan geen gebruiker schorsen met een gelijke of hogere toegang dan die van jou.',31337,0);
INSERT INTO translations VALUES (4,136,'Ongeldige tijdseenheden',31337,0);
INSERT INTO translations VALUES (4,137,'Ongeldige schorslengte.',31337,0);
INSERT INTO translations VALUES (4,138,'SCHORSING voor %s is geannuleerd',31337,0);
INSERT INTO translations VALUES (4,139,'%s is is reeds geschorst in %s',31337,0);
INSERT INTO translations VALUES (4,140,'SCHORSING voor %s zal vervallen in %s',31337,0);
INSERT INTO translations VALUES (4,141,'ERROR: Topic mag de 145 karakters niet overschrijden',31337,0);
INSERT INTO translations VALUES (4,142,'Je hebt onvoldoende toegang om de ban %s uit %s\'s database te verwijderen',31337,0);
INSERT INTO translations VALUES (4,143,'%i ban(s) verwijderd die overeenkwam(en) met %s',31337,0);
INSERT INTO translations VALUES (4,144,'Je tijdelijke toegang van %i in kanaal %s verwijderd',31337,0);
INSERT INTO translations VALUES (4,145,'Je schijnt geen geforceerde toegang in %s te hebben, misschien is hij vervallen?',31337,0);
INSERT INTO translations VALUES (4,146,'%s is niet geschorst in %s',31337,0);
INSERT INTO translations VALUES (4,147,'%s is een IRCoperator',31337,0);
INSERT INTO translations VALUES (4,148,'%s is NIET ingelogd.',31337,0);
INSERT INTO translations VALUES (4,149,'%s is ingelogd als %s%s',31337,0);
INSERT INTO translations VALUES (4,150,'%s is een Officiële CService Vertegenwoordiger%s en is ingelogd als %s',31337,0);
INSERT INTO translations VALUES (4,151,'%s is een Officiële CService Administrator%s en is ingelogd als %s',31337,0);
INSERT INTO translations VALUES (4,152,'%s is een Officiële CService Ontwikkelaar%s en is ingelogd als %s',31337,0);
INSERT INTO translations VALUES (4,153,'Er zijn meer dan %i records die overeenstemmen met [%s]',31337,0);
INSERT INTO translations VALUES (4,154,'Gelieve je zoekopdracht te beperken',31337,0);
INSERT INTO translations VALUES (4,155,'Geen overeenkomstige records voor [%s]',31337,0);
INSERT INTO translations VALUES (4,156,'%s: Kanaalmodes zijn gereset.',31337,0);
INSERT INTO translations VALUES (4,158,'Ongeldige optie.',31337,0);
INSERT INTO translations VALUES (4,159,'%s is een Officiële Undernet Service Bot',31337,0);
INSERT INTO translations VALUES (4,160,'%s is een Officiële Coder-Com Vertegenwoordiger%s en is ingelogd als %s',31337,0);
INSERT INTO translations VALUES (4,161,'%s is een Officiële Coder-Com Medewerker%s en is ingelogd als %s',31337,0);
INSERT INTO translations VALUES (4,162,'%s is een Officiële Coder-Com Ontwikkelaar%s en is ingelogd als %s',31337,0);
INSERT INTO translations VALUES (4,163,'%s is een Officiële Coder-Com Veteraan%s en is ingelogd als %s',31337,0);
INSERT INTO translations VALUES (4,164,' en een IRCoperator',31337,0);
INSERT INTO translations VALUES (4,165,'Ban %s toegevoegd aan %s met niveau %i',31337,0);
INSERT INTO translations VALUES (4,166,'%s: banlijst is leeg.',31337,0);
INSERT INTO translations VALUES (4,167,'Ik ben reeds in dat kanaal!',31337,0);
INSERT INTO translations VALUES (4,168,'Dit commando is enkel voor IRCoperators',31337,0);
INSERT INTO translations VALUES (4,169,'Ik heb geen operator status in %s',31337,0);
INSERT INTO translations VALUES (4,170,'%s voor %i minuten',31337,0);
+175
View File
@@ -0,0 +1,175 @@
-- Empty out English data.
DELETE FROM translations where language_id = 1;
COPY "translations" FROM stdin;
1 1 Sorry, You are already authenticated as %s 31337 0
1 2 AUTHENTICATION SUCCESSFUL as %s 31337 0
1 3 Sorry, you have insufficient access to perform that command 31337 0
1 4 Sorry, the basket %s is empty 31337 0
1 5 I don't see %s anywhere 31337 0
1 6 I can't find %s on basket %s 31337 0
1 7 The basket %s doesn't appear to be registered 31337 0
1 8 You're opped by %s (%s) 31337 0
1 9 You're voiced by %s (%s) 31337 0
1 10 %s: You are not in that basket 31337 0
1 11 %s is already opped in %s 31337 0
1 12 %s is already voiced in %s 31337 0
1 13 You're deopped by %s (%s) 31337 0
1 14 You're devoiced by %s (%s) 31337 0
1 15 %s is not opped in %s 31337 0
1 16 %s is not voiced in %s 31337 0
1 17 AUTHENTICATION FAILED as %s (Invalid Password) 31337 0
1 18 I'm not in that basket! 31337 0
1 19 Invalid banlevel range. Valid range is 1-%i. 31337 0
1 20 Invalid ban duration. Your ban duration can be a maximum of %d hours. 31337 0
1 21 Ban reason cannot exceed 128 chars 31337 0
1 22 Specified ban is already in my banlist! 31337 0
1 23 The ban %s is already covered by %s 31337 0
1 24 Invalid minimum level. 31337 0
1 25 Invalid maximum level. 31337 0
1 26 USER: %s ACCESS: %s %s 31337 0
1 27 basket: %s -- AUTOMODE: %s 31337 0
1 28 LAST MODIFIED: %s (%s ago) 31337 0
1 29 ** SUSPENDED ** - Expires in %s 31337 0
1 30 LAST SEEN: %s ago. 31337 0
1 31 There are more than %d matching entries. 31337 0
1 32 Please restrict your query. 31337 0
1 33 End of access list 31337 0
1 34 No Match! 31337 0
1 35 Cannot add a user with equal or higher access than your own. 31337 0
1 36 Invalid access level. 31337 0
1 37 %s is already added to %s with access level %i. 31337 0
1 38 Added user %s to %s with access level %i 31337 0
1 39 Something went wrong: %s 31337 0
1 40 %s: End of ban list 31337 0
1 41 Unable to view user details (Invisible) 31337 0
1 42 Information about: %s (%i) 31337 0
1 43 Currently logged on via: %s 31337 0
1 44 URL: %s 31337 0
1 45 Language: %i 31337 0
1 46 baskets: %s 31337 0
1 47 Input Flood Points: %i 31337 0
1 48 Ouput Flood (Bytes): %i 31337 0
1 49 %s is registered by: 31337 0
1 50 %s - last seen: %s ago 31337 0
1 51 Desc: %s 31337 0
1 52 Flood me will you? I'm not going to listen to you anymore 31337 0
1 53 I think I've sent you a little too much data, I'm going to ignore you for a while. 31337 0
1 54 Incomplete command 31337 0
1 55 To use %s, you must /msg %s@%s 31337 0
1 56 Sorry, You must be logged in to use this command. 31337 0
1 57 The basket %s has been suspended by a cservice administrator. 31337 0
1 58 Your access on %s has been suspended. 31337 0
1 59 The NOOP flag is set on %s 31337 0
1 60 The STRICTOP flag is set on %s 31337 0
1 61 You just deopped more than %i people 31337 0
1 62 SYNTAX: %s 31337 0
1 63 Temporarily increased your access on basket %s to %i 31337 0
1 64 %s is registered. 31337 0
1 65 %s is not registered. 31337 0
1 66 I don't think %s would appreciate that. 31337 0
1 67 \002*** Ban List for basket %s ***\002 31337 0
1 68 %s %s Level: %i 31337 0
1 69 ADDED BY: %s (%s) 31337 0
1 70 SINCE: %s 31337 0
1 71 EXP: %s 31337 0
1 72 \002*** END ***\002 31337 0
1 73 I don't know who %s is. 31337 0
1 74 You are not authorised with me anymore. 31337 0
1 75 %s doesn't appear to have access in %s. 31337 0
1 76 Cannot modify a user with equal or higher access than your own. 31337 0
1 77 Cannot give a user higher or equal access to your own. 31337 0
1 78 Modified %s's access level on basket %s to %i 31337 0
1 79 Set AUTOMODE to OP for %s on basket %s 31337 0
1 80 Set AUTOMODE to VOICE for %s on basket %s 31337 0
1 81 Set AUTOMODE to NONE for %s on basket %s 31337 0
1 82 Your passphrase cannot be your username or current nick - syntax is: NEWPASS <new passphrase> 31337 0
1 83 Password successfully changed. 31337 0
1 84 The NOOP flag is set on %s 31337 0
1 85 The STRICTOP flag is set on %s (and %s isn't authenticated) 31337 0
1 86 The STRICTOP flag is set on %s (and %s has insufficient access) 31337 0
1 87 Purged basket %s 31337 0
1 88 %s is already registered with me. 31337 0
1 89 Invalid basket name. 31337 0
1 90 Registered basket %s 31337 0
1 91 Removed %s from my silence list 31337 0
1 92 Couldn't find %s in my silence list 31337 0
1 93 Cannot remove a user with equal or higher access than your own 31337 0
1 94 You can't remove yourself from a basket you own 31337 0
1 95 Removed user %s from %s 31337 0
1 96 Your INVISIBLE setting is now ON. 31337 0
1 97 Your INVISIBLE setting is now OFF. 31337 0
1 98 %s for %s is %s 31337 0
1 99 value of %s must be ON or OFF 31337 0
1 100 Invalid USERFLAGS setting. Correct values are NONE, OP or VOICE. 31337 0
1 101 USERFLAGS for %s is %s 31337 0
1 102 value of MASSDEOPPRO has to be 0-7 31337 0
1 103 MASSDEOPPRO for %s is set to %d 31337 0
1 104 value of FLOODPRO has to be 0-7 31337 0
1 105 FLOODPRO for %s is set to %d 31337 0
1 106 The DESCRIPTION can be a maximum of 80 chars! 31337 0
1 107 DESCRIPTION for %s is cleared. 31337 0
1 108 DESCRIPTION for %s is: %s 31337 0
1 109 The URL can be a maximum of 75 chars! 31337 0
1 110 URL for %s is cleared. 31337 0
1 111 URL for %s is: %s 31337 0
1 112 The string of keywords cannot exceed 80 chars! 31337 0
1 113 KEYWORDS for %s are: %s 31337 0
1 114 Language is set to %s. 31337 0
1 115 ERROR: Invalid language selection. 31337 0
1 116 Can't locate basket %s on the network! 31337 0
1 117 ERROR: Invalid basket setting. 31337 0
1 118 Ignore list: 31337 0
1 119 Ignore list is empty 31337 0
1 120 -- End of Ignore List 31337 0
1 121 CMaster basket Services internal status: 31337 0
1 122 [ basket Record Stats] \002Cached Entries:\002 %i \002DB Requests:\002 %i \002Cache Hits:\002 %i \002Efficiency:\002 %.2f%% 31337 0
1 123 [ User Record Stats] \002Cached Entries:\002 %i \002DB Requests:\002 %i \002Cache Hits:\002 %i \002Efficiency:\002 %.2f%% 31337 0
1 124 [Access Level Record Stats] \002Cached Entries:\002 %i \002DB Requests:\002 %i \002Cache Hits:\002 %i \002Efficiency:\002 %.2f%% 31337 0
1 125 [ Ban Record Stats] \002Cached Entries:\002 %i \002DB Requests:\002 %i \002Cache Hits:\002 %i \002Efficiency:\002 %.2f%% 31337 0
1 126 Last recieved User NOTIFY: %i 31337 0
1 127 Last recieved basket NOTIFY: %i 31337 0
1 128 Last recieved Level NOTIFY: %i 31337 0
1 129 Last recieved Ban NOTIFY: %i 31337 0
1 130 Custom data containers allocated: %i 31337 0
1 131 \002Uptime:\002 %s 31337 0
1 132 basket %s has %d users (%i operators) 31337 0
1 133 Mode is: %s 31337 0
1 134 Flags set: %s 31337 0
1 135 Cannot suspend a user with equal or higher access than your own. 31337 0
1 136 bogus time units 31337 0
1 137 Invalid suspend duration. 31337 0
1 138 SUSPENSION for %s is cancelled 31337 0
1 139 %s is already suspended on %s 31337 0
1 140 SUSPENSION for %s will expire in %s 31337 0
1 141 ERROR: Topic cannot exceed 145 chars 31337 0
1 142 You have insufficient access to remove the ban %s from %s's database 31337 0
1 143 Removed %i bans that matched %s 31337 0
1 144 Removed your temporary access of %i from basket %s 31337 0
1 145 You don't appear to have a forced access in %s, perhaps it expired? 31337 0
1 146 %s isn't suspended on %s 31337 0
1 147 %s is an Easter Bunny 31337 0
1 148 %s is NOT logged in. 31337 0
1 149 %s is logged in as %s%s 31337 0
1 150 %s is an Official CService Representative%s and logged in as %s 31337 0
1 151 %s is an Official CService Administrator%s and logged in as %s 31337 0
1 152 %s is an Official CService Developer%s and logged in as %s 31337 0
1 153 There are more than %i entries matching [%s] 31337 0
1 154 Please restrict your search mask 31337 0
1 155 No matching entries for [%s] 31337 0
1 156 %s: Cleared basket modes. 31337 0
1 158 Invalid option. 31337 0
1 159 %s is an Official Undernet Service Bot. 31337 0
1 160 %s is an Official Coder-Com Representative%s and logged in as %s 31337 0
1 161 %s is an Official Coder-Com Contributer%s and logged in as %s 31337 0
1 162 %s is an Official Coder-Com Developer%s and logged in as %s 31337 0
1 163 %s is an Official Coder-Com Senior%s and logged in as %s 31337 0
1 164 and an Easter Bunny 31337 0
1 165 Added ban %s to %s at level %i 31337 0
1 166 %s: ban list is empty. 31337 0
1 167 I'm already in that basket! 31337 0
1 168 This command is reserved to Easter Bunnies 31337 0
1 169 I'm not opped on %s 31337 0
1 170 %s for %i minutes 31337 0
\.
+185
View File
@@ -0,0 +1,185 @@
-- $Id: language_german.sql,v 1.4 2007/12/26 19:13:00 kewlio Exp $
-- Language Definition Table for German
-- 16/8/2002 volta <volta2@gmx.de>
-- beta readers: Tha_Funk
-- Delete everything german
DELETE FROM translations WHERE language_id = 5;
COPY translations FROM stdin;
5 1 Verzeihung, aber du bist schon eingeloggt als %s 31337 0
5 2 AUTHENTIFIKATION ERFOLGREICH als %s 31337 0
5 3 Verzeihung, aber du hast nicht genug Berechtigung um diesen Befehl auszuführen 31337 0
5 4 Verzeihung, aber der Channel %s ist leer 31337 0
5 5 Ich sehe %s nirgendswo 31337 0
5 6 Ich kann %s nicht im Channel %s finden 31337 0
5 7 Der Channel %s scheint nicht registriert zu sein 31337 0
5 8 Du wurdest von %s (%s) in %s geopt 31337 0
5 9 Du wurdest von %s (%s) in %s gevoict 31337 0
5 10 %s: Du bist nicht in diesen Channel 31337 0
5 11 %s ist bereits Op in %s 31337 0
5 12 %s ist bereits Voice in %s 31337 0
5 13 Du wurdest von %s (%s) in %s gedeopt 31337 0
5 14 Du wurdest von %s (%s) in %s gedevoict 31337 0
5 15 %s ist nicht Op in %s 31337 0
5 16 %s ist nicht Voice in %s 31337 0
5 17 AUTHENTIFIKATION FEHLGESCHLAGEN als %s (Falsches Passwort) 31337 0
5 18 Ich bin nicht in diesem Channel! 31337 0
5 19 Ungültiges Banlevel. Gültig ist 1-%i. 31337 0
5 20 Ungültige Banzeit. Deine Bandauer kann maximal %d Stunden sein. 31337 0
5 21 Bangrund darf nicht 128 Zeichen überschreiten 31337 0
5 22 Spezifizierter Ban ist bereits in der Banliste! 31337 0
5 23 Der Ban %s ist bereits eingedeckt von %s 31337 0
5 24 Ungültiges Minimallevel. 31337 0
5 25 Ungültiges Maximallevel. 31337 0
5 26 BENUTZER: %s LEVEL: %s %s 31337 0
5 27 CHANNEL: %s -- AUTOMODE: %s 31337 0
5 28 ZULETZT VERÄNDERT: %s (vor %s) 31337 0
5 29 ** SUSPENDIERT ** - Verfällt in %s (Level %i) 31337 0
5 30 ZULETZT GESEHEN: vor %s. 31337 0
5 31 Es gibt mehr als %d passende Einträge. 31337 0
5 32 Bitte begrenze deine Anfrage. 31337 0
5 33 Ende der Benutzerliste 31337 0
5 34 Kein passender Eintrag! 31337 0
5 35 Kann keinen Benutzer mit gleichen oder höheren Level als dein eigenes hinzufügen. 31337 0
5 36 Ungültiges Berechtigungslevel. 31337 0
5 37 %s ist bereits in der Benutzerliste von %s mit Level %i. 31337 0
5 38 Habe Benutzer %s in %s mit Level %i hinzugefügt 31337 0
5 39 Irgendetwas lief falsch: %s 31337 0
5 40 %s: Ende der Banliste 31337 0
5 41 Nicht in der Lage die Benutzerdetails zu zeigen (unsichtbar) 31337 0
5 42 Informationen über: %s (%i) 31337 0
5 43 Zur Zeit eingeloggt via: %s 31337 0
5 44 URL: %s 31337 0
5 45 Sprache: %i 31337 0
5 46 Channels: %s 31337 0
5 47 Eingabefloodpunkte: %i 31337 0
5 48 Ausgabeflood (Bytes): %i 31337 0
5 49 %s ist registriert von: 31337 0
5 50 %s - zuletzt gesehen: vor %s 31337 0
5 51 Beschreibung: %s 31337 0
5 52 Du willst mich flooden? Ich werde dir nicht weiter zuhören 31337 0
5 53 Ich glaube ich habe dir zu viele Daten geschickt. Ich werde dich eine Weile lang ignorieren. 31337 0
5 54 Unvollständiger Befehl 31337 0
5 55 Um %s zu benutzen, musst du mir via /msg %s@%s schreiben 31337 0
5 56 Verzeihung, aber du musst eingeloggt sein um diesen Befehl zu benutzen. 31337 0
5 57 Der Channel %s wurde von einen CService Administrator suspendiert. 31337 0
5 58 Deine Berechtigung in %s wurde suspendiert. 31337 0
5 59 Die NOOP Einstellung wurde in %s gesetzt 31337 0
5 60 Die STRICTOP Einstellung ist in %s gesetzt 31337 0
5 61 Du hast gerade mehr als %i User gedeopt 31337 0
5 62 SYNTAX: %s 31337 0
5 63 Habe deine Berechtigung in %s vorübergehend auf %i erhöht 31337 0
5 64 %s ist registriert. 31337 0
5 65 %s ist nicht registriert. 31337 0
5 66 Ich denke nicht, daß %s dies schätzen würde. 31337 0
5 67 \002*** Banliste für den Channel %s ***\002 31337 0
5 68 %s %s Level: %i 31337 0
5 69 HINZUGEFÜGT VON: %s (%s) 31337 0
5 70 SEIT: %s 31337 0
5 71 VERFÄLLT: %s 31337 0
5 72 \002*** ENDE ***\002 31337 0
5 73 Ich weiß nicht wer %s ist. 31337 0
5 74 Du bist nicht mehr bei mir authentifiziert. 31337 0
5 75 %s scheint keine Berechtigung in %s zu haben. 31337 0
5 76 Kann keinen Benutzer mit gleichen oder höheren Level als dein eigenes modifizieren. 31337 0
5 77 Kann keinen Benutzer ein gleiches oder höheres Level als dein eigenes geben. 31337 0
5 78 Habe %s's Berechtigungslevel im Channel %s zu %i modifizert 31337 0
5 79 Habe AUTOMODE für %s auf OP im Channel %s gesetzt 31337 0
5 80 Habe AUTOMODE für %s auf VOICE im Channel %s gesetzt 31337 0
5 81 Habe AUTOMODE für %s auf NONE im Channel %s gesetzt 31337 0
5 82 Dein Passwort kann nicht dein Username oder aktueller Nickname sein - Syntax ist: NEWPASS <neues Passwort> 31337 0
5 83 Passwort wurde erfolgreich geändert. 31337 0
5 84 Die NOOP Einstellung ist in %s gesetzt 31337 0
5 85 Die STRICTOP Einstellung ist in %s gesetzt (und %s ist nicht authentifiziert) 31337 0
5 86 Die STRICTOP Einstellung ist in %s gesetzt (und %s hat nicht genügend Berechtigung) 31337 0
5 87 Habe Channel %s bereinigt 31337 0
5 88 %s ist bereits mit mir registriert. 31337 0
5 89 Ungültiger Channelname. 31337 0
5 90 Habe Channel %s registriert 31337 0
5 91 Habe %s von meiner Silenceliste entfernt 31337 0
5 92 Kann %s nicht in meiner Silenceliste finden 31337 0
5 93 Kann keinen Benutzer mit gleichen oder höheren Level als dein eigenes entfernen 31337 0
5 94 Du kannst dich nicht selbst von einen Channel entfernen, den du selber besitzt 31337 0
5 95 Habe Benutzer %s von %s entfernt 31337 0
5 96 Deine INVISIBLE Einstellung ist jetzt AN. 31337 0
5 97 Deine INVISIBLE Einstellung ist jetzt AUS. 31337 0
5 98 %s für %s ist %s 31337 0
5 99 Wert für %s muß ON oder OFF sein. 31337 0
5 100 Ungültige USERFLAG Einstellung. Korrekte Werte sind NONE, OP, VOICE. 31337 0
5 101 USERFLAGS für %s ist %s 31337 0
5 102 Wert für MASSDEOPPRO muß 0-7 sein 31337 0
5 103 MASSDEOPPRO für %s ist auf %d gesetzt 31337 0
5 104 Wert für FLOODPRO muß 0-7 sein 31337 0
5 105 FLOODPRO für %s ist auf %d gesetzt 31337 0
5 106 DESCRIPTION kann maximal 80 Zeichen sein! 31337 0
5 107 DESCRIPTION für %s wurde gelöscht. 31337 0
5 108 DESCRIPTION für %s ist: %s 31337 0
5 109 URL kann maximal 75 Zeichen sein! 31337 0
5 110 URL für %s wurde gelöscht. 31337 0
5 111 URL für %s ist: %s 31337 0
5 112 Die Zeichenkette der Schlüsselwörter darf nicht 80 Zeichen überschreiten! 31337 0
5 113 KEYWORDS für %s sind: %s 31337 0
5 114 Sprache wurde auf %s gesetzt. 31337 0
5 115 FEHLER: Ungültige Sprachwahl. 31337 0
5 116 Kann Channel %s nicht auf dem Netzwerk lokalisieren! 31337 0
5 117 FEHLER: Ungültige Channeleinstellung. 31337 0
5 118 Ignoreliste: 31337 0
5 119 Ignoreliste ist leer 31337 0
5 120 -- Ende der Ignoreliste 31337 0
5 121 CMaster Channel Services interner Status: 31337 0
5 122 [ Channel Rekord Statistiken] \002Gecachte Einträge:\002 %i \002DB Anfragen:\002 %i \002Cachetreffer:\002 %i \002Effektivität:\002 %.2f%% 31337 0
5 123 [ User Rekord Statistiken] \002Gecachte Einträge:\002 %i \002DB Anfragen:\002 %i \002Cachetreffer:\002 %i \002Effektivität:\002 %.2f%% 31337 0
5 124 [Berechtigungslevel Rekord Statistiken] \002Gecachte Einträge:\002 %i \002DB Anfragen:\002 %i \002Cachetreffer:\002 %i \002Effektivität:\002 %.2f%% 31337 0
5 125 [ Ban Rekord Statistiken] \002Gecachte Einträge:\002 %i \002DB Anfragen:\002 %i \002Cachetreffer:\002 %i \002Effektivität:\002 %.2f%% 31337 0
5 126 Letzte empfangene Benutzerbenachrichtigung: %i 31337 0
5 127 Letzte empfangene Channelbenachrichtigung: %i 31337 0
5 128 Letzte empfangene Levelbenachrichtigung: %i 31337 0
5 129 Letzte empfangene Banbenachrichtigung: %i 31337 0
5 130 Vordefinierte Datencontainer zugewiesen: %i 31337 0
5 131 \002Uptime:\002 %s 31337 0
5 132 Channel %s hat %d User (%i Operatoren) 31337 0
5 133 Mode ist: %s 31337 0
5 134 Einstellungen: %s 31337 0
5 135 Kann keinen Benutzer mit gleichen oder höheren Level als dein eigenes suspendieren 31337 0
5 136 Ungültige Zeiteinheiten 31337 0
5 137 Ungültige Suspendierungslänge. 31337 0
5 138 SUSPENDIERUNG für %s wurde aufgehoben 31337 0
5 139 %s ist bereits suspendiert in %s 31337 0
5 140 SUSPENDIERUNG für %s wird in %s verfallen 31337 0
5 141 FEHLER: Topic darf nicht 145 Zeichen überschreiten 31337 0
5 142 Du hast nicht genug Berechtigung um den Ban %s von %s's Database zu entfernen 31337 0
5 143 Habe %i Bans entfernt, die auf %s zutrafen 31337 0
5 144 Habe deine vorübergehende Berechtigung von %i vom Channel %s entfernt 31337 0
5 145 Es scheint so als hättest du keine erzwungene Berechtigung in %s, vielleicht ist sie verfallen? 31337 0
5 146 %s ist nicht suspendiert in %s 31337 0
5 147 %s ist ein IRC Operator 31337 0
5 148 %s ist NICHT eingeloggt. 31337 0
5 149 %s ist eingeloggt als %s%s 31337 0
5 150 %s ist ein offizieller CService Vertreter%s und eingeloggt als %s 31337 0
5 151 %s ist ein offizieller CService Administrator%s und eingeloggt als %s 31337 0
5 152 %s ist ein offizieller CService Entwickler%s und eingeloggt als %s 31337 0
5 153 Es gibt mehr als %i passende Einträge [%s] 31337 0
5 154 Bitte begrenze deine Suchmaske 31337 0
5 155 Keine passenden Einträge für [%s] 31337 0
5 156 %s: Habe Channelmodes gelöscht. 31337 0
5 158 Ungültige Option. 31337 0
5 159 %s ist ein offizieller Undernet Service Bot. 31337 0
5 160 %s ist ein offizieller Coder-Com Vertreter%s und eingeloggt als %s 31337 0
5 161 %s ist ein offizieller Coder-Com Mitarbeiter%s und eingeloggt als %s 31337 0
5 162 %s ist ein offizieller Coder-Com Entwickler%s und eingeloggt als %s 31337 0
5 163 %s ist ein offizieller Coder-Com Dienstältester%s und eingeloggt als %s 31337 0
5 164 und ein IRC Operator 31337 0
5 165 Habe den ban %s zu %s mit Level %i hinzugefügt 31337 0
5 166 %s: Banliste ist leer. 31337 0
5 167 Ich bin bereits in diesen Channel! 31337 0
5 168 Dieser Befehl ist für IRC Operatoren reserviert 31337 0
5 169 Ich bin nicht geopt in %s 31337 0
5 170 %s für %i Minuten 31337 0
\.
-- And also the greeting :)
INSERT INTO translations VALUES (5,9998,'Denke immer daran: Niemand vom CService wird dich jemals nach Deinem Passwort fragen. Gebe dein Passwort NIEMALS zu jemanden, der behauptet ein CService Mitglied zu sein.',31337,0);
+183
View File
@@ -0,0 +1,183 @@
-- $Id: language_greek.sql,v 1.8 2007/12/26 19:13:00 kewlio Exp $
-- Greek language definition.
-- 04/05/02 - Marios Solomou <hawk@undernet.org>.
-- 04/05/02 - deop <d30pma@cytanet.com.cy>.
DELETE FROM languages WHERE language_id=19;
INSERT INTO languages VALUES(19,'GR','Greek',31337);
DELETE FROM translations where language_id=19;
COPY "translations" FROM stdin;
19 1 Signwmi, Eiste eidi anagnorismenos san %s 31337 0
19 2 ANAGNWRISH EPITIXIMENH san %s 31337 0
19 3 Signwmi, Den exete arketa access gia na xrisimopoieisete auti tin entoli 31337 0
19 4 Signwmi, to kanali %s einai adeio 31337 0
19 5 Den vlepw ton/tin %s pouthena 31337 0
19 6 Den mporw na vrw ton/tin %s sto kanali %s 31337 0
19 7 To kanali %s den fenetai na einai registered 31337 0
19 8 Exete ginei oped apo ton/tin %s (%s) sto %s 31337 0
19 9 Exete ginei voiced apo ton/tin %s (%s) sto %s 31337 0
19 10 %s: Den eisai se auto to kanali 31337 0
19 11 O/H %s einai eidi opped sto %s 31337 0
19 12 O/H %s einai eidi voiced sto %s 31337 0
19 13 Exeis ginei deopped apo ton/tin %s (%s) sto %s 31337 0
19 14 Exeis ginei devoiced apo ton/tin %s (%s) sto %s 31337 0
19 15 O/H %s den einai opped sto %s 31337 0
19 16 O/H %s den einai voiced sto %s 31337 0
19 17 ANAGNWRISI ANEPITIXHS san %s (Lathos Kwdikos) 31337 0
19 18 Den eimai s`ekeino to kanali! 31337 0
19 19 Avasimo banlevel range. Vasiko range einai apo 1-%i. 31337 0
19 20 Avasimi diarkeia gia ban. H diarkeia tou ban den mporei na einai pano apo to anwtato orio twn %d hours. 31337 0
19 21 O logos tou Ban den mporei na Xeperasei tous 128 charaktires 31337 0
19 22 To Sikgekrimeno ban einai eidi stin lista twn bans mou! 31337 0
19 23 To ban %s einai eidi kalimeno apo ton/tin %s 31337 0
19 24 Avasimo katwtato orio. 31337 0
19 25 Avasimo anwtato orio. 31337 0
19 26 Xristis: %s ACCESS: %s %s 31337 0
19 27 Kanali: %s -- AUTOMODE: %s 31337 0
19 28 TELEUTAIO MODIFIED: %s (%s prin) 31337 0
19 29 ** SUSPENDED ** - Ligei se %s (Orio %i) 31337 0
19 30 TELEUTAIA SINANTISH: %s prin. 31337 0
19 31 Iparxoun pio polles apo %d teriastes Eisodous i Simetoxes. 31337 0
19 32 Parakalw perioriste to erotima sas. 31337 0
19 33 Telos tis listas twn access 31337 0
19 34 Den eiparxei Teriasma! 31337 0
19 35 Den mporeis na kaneis add ena xristi me isa i psilotera access apo ta dika sou. 31337 0
19 36 Avasimo orio access. 31337 0
19 37 O/H %s einai eidi added sto %s me orio access %i. 31337 0
19 38 Egine added o xristis %s sto %s me orio access %i 31337 0
19 39 Kati pige lathos: %s 31337 0
19 40 %s: Telos tis listas twn bans 31337 0
19 41 Den mporeis na deis tis leptomeries tou xristi (Mi orato) 31337 0
19 42 Plirofories gia ton/tin: %s (%i) 31337 0
19 43 Currently logged on via: %s 31337 0
19 44 URL: %s 31337 0
19 45 Glwssa: %i 31337 0
19 46 Kanalia: %s 31337 0
19 47 Enswmatomenoi deixtes gia Flood : %i 31337 0
19 48 Paragwgi Flood (Bytes): %i 31337 0
19 49 To %s einai registered apo: 31337 0
19 50 %s - teleutaia sinantisi : %s prin 31337 0
19 51 Desc: %s 31337 0
19 52 Me kaneis Flood oste? Den prokeitai na eipakouw se sena pia 31337 0
19 53 Nomizo oti sou esteila ligo polla dedomena, Tha se kano ignore gia ligo. 31337 0
19 54 Asimplirwti entoli 31337 0
19 55 Gia na xrisimopoieiseis %s, prepei na kaneis /msg %s@%s 31337 0
19 56 Signwmi, Prepei na eisai logged ston X gia na xrisimopoieiseis autin tin entoli. 31337 0
19 57 To kanali %s exei ginei suspend apo ena cservice administrator. 31337 0
19 58 Ta access sou sto %s exoun ginei suspend. 31337 0
19 59 H simaia NOOP exei tethei sto %s 31337 0
19 60 H simaia STRICTOP exei tethei sto %s 31337 0
19 61 Exeis aplos kanei deop pio polla apo %i atoma 31337 0
19 62 SYNTAX: %s 31337 0
19 63 Proswrina exoun auxithei ta access sou sto kanali %s se %i 31337 0
19 64 To %s einai register. 31337 0
19 65 To %s den einai register. 31337 0
19 66 Den nomizo oti O/H %s tha to ektimouse auto. 31337 0
19 67 \002*** Lista twn Bans gia to kanali %s ***\002 31337 0
19 68 %s %s Orio: %i 31337 0
19 69 EXEI GINEI ADD APO: %s (%s) 31337 0
19 70 APO: %s 31337 0
19 71 LIGEI: %s 31337 0
19 72 \002*** TELOS ***\002 31337 0
19 73 Den xero O/H %s pios einai. 31337 0
19 74 Den eisai exousiodoteimenos me emena pia. 31337 0
19 75 O/H %s den fenetai na exei access sto %s. 31337 0
19 76 Den mporeis na kaneis modinfo se ena xristi me isa i psilotera access apo ta dika sou. 31337 0
19 77 Den mporeis na doseis se ena xristi psilotera i isa access me ta dika sou. 31337 0
19 78 Exei ginei modinfo to orio twn access tou xristi %s's sto kanali %s se %i 31337 0
19 79 Exei tethei AUTOMODE gia OP gia ton/tin %s sto kanali %s 31337 0
19 80 Exei tethei AUTOMODE gia VOICE gia ton/tin %s sto kanali %s 31337 0
19 81 Exei tethei AUTOMODE se NONE gia ton/tin %s sto kanali %s 31337 0
19 82 H frasi tou pass den mporei na einai to username i to en xrisi nickname - H sintaxi einai: NEWPASS <nea frasi-pass> 31337 0
19 83 O kwdikos exei epitiximena allaxei. 31337 0
19 84 H simaia NOOP exei tethei sto %s 31337 0
19 85 H simaia STRICTOP exei tethei sto %s (kai O/H %s den einai anagnwrismenos/anagnwrismeni) 31337 0
19 86 H simaia STRICTOP exei tethei sto %s (kai O/H %s den exei arketa access) 31337 0
19 87 To kanali %s exei ginei purge 31337 0
19 88 To %s einai idi register me emena. 31337 0
19 89 Avasimo onoma kanaliou. 31337 0
19 90 To kanali %s exei ginei register 31337 0
19 91 Aferethike O/H %s apo tin lista siopis mou 31337 0
19 92 Den mporo na vro ton/tin %s stin lista siopis mou 31337 0
19 93 Den mporeis na afereseis ena xristi me psilotera i isa access apo auta pou exeis 31337 0
19 94 Den mporeis na afereseis ton eauto sou apo ena kanali tou opiou eisai katoxos 31337 0
19 95 Aferethike o xristis %s apo to %s 31337 0
19 96 H rithmisi INVISIBLE einai twra ON. 31337 0
19 97 H rithmisi INVISIBLE einai twra OFF. 31337 0
19 98 %s gia %s einai %s 31337 0
19 99 H axia tou %s prepei na einai ON i OFF 31337 0
19 100 Avasimi rithmisi gia USERFLAGS. Oi swstes axies einai NONE, OP, VOICE. 31337 0
19 101 USERFLAGS gia to %s einai %s 31337 0
19 102 H axia tou MASSDEOPPRO prepei na einai apo 0-7 31337 0
19 103 MASSDEOPPRO gia to %s exei tethei se %d 31337 0
19 104 H axia tou FLOODPRO prepei na einai apo 0-7 31337 0
19 105 FLOODPRO gia to %s exei tethei se %d 31337 0
19 106 To DESCRIPTION den mporei na ipervenei tous 80 xaraktires! 31337 0
19 107 To DESCRIPTION gia to %s exei katharistei. 31337 0
19 108 To DESCRIPTION gia to %s einai: %s 31337 0
19 109 To URL den mporei na ipervenei tous 75 xaraktires! 31337 0
19 110 To URL gia to %s exei katharistei. 31337 0
19 111 To URL gia to %s einai: %s 31337 0
19 112 To nima twn keywords den mporei na ipervei tous 80 xaraktires! 31337 0
19 113 Ta KEYWORDS gia to %s einai: %s 31337 0
19 114 H glwssa exei tethei se %s. 31337 0
19 115 BLABH: Avasimi epilogi glwssas. 31337 0
19 116 Den mporei na brethei to %s sto network! 31337 0
19 117 BLABH: Avasimi rithmisi gia to kanali. 31337 0
19 118 lista gia Ignore: 31337 0
19 119 H lista gia Ignore einai adeia 31337 0
19 120 -- Telos tis Listas twn Ignore -- 31337 0
19 121 CMaster Channel Services internal status: 31337 0
19 122 [ Channel Record Stats] \002Cached Entries:\002 %i \002DB Requests:\002 %i \002Cache Hits:\002 %i \002Efficiency:\002 %.2f%% 31337 0
19 123 [ User Record Stats] \002Cached Entries:\002 %i \002DB Requests:\002 %i \002Cache Hits:\002 %i \002Efficiency:\002 %.2f%% 31337 0
19 124 [Access Level Record Stats] \002Cached Entries:\002 %i \002DB Requests:\002 %i \002Cache Hits:\002 %i \002Efficiency:\002 %.2f%% 31337 0
19 125 [ Ban Record Stats] \002Cached Entries:\002 %i \002DB Requests:\002 %i \002Cache Hits:\002 %i \002Efficiency:\002 %.2f%% 31337 0
19 126 Last received User NOTIFY: %i 31337 0
19 127 Last received Channel NOTIFY: %i 31337 0
19 128 Last received Level NOTIFY: %i 31337 0
19 129 Last received Ban NOTIFY: %i 31337 0
19 130 Custom data containers allocated: %i 31337 0
19 131 \002Uptime:\002 %s 31337 0
19 132 To kanali %s exei %d xristes (%i operators) 31337 0
19 133 To Mode einai: %s 31337 0
19 134 Simaies pou exoun tethei: %s 31337 0
19 135 Den mporeis na kaneis suspend ena xristi me isa i psilotera access apo ta dika sou. 31337 0
19 136 Aniparktes monades xronou 31337 0
19 137 Avasimi diarkeia gia suspend. 31337 0
19 138 SUSPENSION gia ton/tin %s exei akirwthei 31337 0
19 139 O/H %s einai eidi suspended sto %s 31337 0
19 140 SUSPENSION gia ton/tin %s tha lixei se %s 31337 0
19 141 BLABH: To topic den mporei na ipervei tous 145 xaraktires 31337 0
19 142 Den exeis arketa access gia na afereseis to ban %s apo tin vasi dedomenwn tou %s's 31337 0
19 143 Aferethikan %i bans pou teriazan sto %s 31337 0
19 144 Aferethikan ta prosorina sou access %i apo to %s 31337 0
19 145 Den fenetai na exeis forced access sto %s, Mipos eleixan? 31337 0
19 146 O/H %s den einai suspended sto %s 31337 0
19 147 O %s einai IRC operator 31337 0
19 148 O/H %s DEN einai logged in. 31337 0
19 149 O/H %s einai logged in san %s%s 31337 0
19 150 %s einai Official CService Representative%s and logged in as %s 31337 0
19 151 %s einai Official CService Administrator%s and logged in as %s 31337 0
19 152 %s einai Official CService Developer%s and logged in as %s 31337 0
19 153 Iparxoun parapano apo %i kataxwriseis [%s] 31337 0
19 154 Parakalw perioriste tin anazitisi sas 31337 0
19 155 Den iparxoun kataxwriseis gia [%s] 31337 0
19 156 %s: Ekkatharisi twn channel modes. 31337 0
19 158 Avasimi epilogi. 31337 0
19 159 %s einai Official Undernet Service Bot. 31337 0
19 160 %s einai Official Coder-Com Representative%s and logged in as %s 31337 0
19 161 %s einai Official Coder-Com Contributer%s and logged in as %s 31337 0
19 162 %s einai Official Coder-Com Developer%s and logged in as %s 31337 0
19 163 %s einai Official Coder-Com Senior%s and logged in as %s 31337 0
19 164 kai IRC operator 31337 0
19 165 Prostethike ban %s sto %s se level %i 31337 0
19 166 %s: I lista twn ban einai adeia. 31337 0
19 167 Eimai idi se auto to kanali! 31337 0
19 168 Auti i entoli einai periorismeni mono gia IRC Operators 31337 0
19 169 Den eimai opped sto %s 31337 0
19 170 %s gia %i lepta 31337 0
19 9998 Na thimase: Kanenas apo tin CService den tha sou zitisei na tou pis to password sou, MIN to doseis se kanena pou ipostirizei oti einai apo tin CService. 31337 0
\.
+183
View File
@@ -0,0 +1,183 @@
-- $Id: language_halloween.sql,v 1.8 2008/01/16 19:19:21 kewlio Exp $
-- Muhauahuuahha.
-- Halloween language definition.
-- 30/10/01 - Gte (Greg Sikorski) <gte@atomicrevs.demon.co.uk>.
-- 31/10/01 - Isomer (Perry Lorier) <isomer@coders.net>. (various updates)
-- 31/10/02 - R33D33R (Reed Loden) <reed@reedloden.com>. (removed INSERT line, added chan name, added ending 0, and edited replies)
-- Run this once.
DELETE FROM translations WHERE language_id = 18;
COPY "translations" FROM stdin;
18 1 You're feeble disguise doesn't work. You are still %s 31337 0
18 2 Welcome to the Spooky UnderWorld, %s. MWAHAHAHAHHA! 31337 0
18 3 Muhauhauhauha, you can't do that :P 31337 0
18 4 Sorry, the casket %s is empty 31337 0
18 5 I don't see %s anywhere 31337 0
18 6 I can't find %s on casket %s 31337 0
18 7 The casket %s doesn't appear to be registered 31337 0
18 8 You're slaughtered by %s (%s) on %s 31337 0
18 9 You're stabbed by %s (%s) on %s 31337 0
18 10 %s: You are not in that casket 31337 0
18 11 %s is already opped in %s 31337 0
18 12 %s is already voiced in %s 31337 0
18 13 You're scared by %s (%s) 31337 0
18 14 You're frightened by %s (%s) 31337 0
18 15 %s is not scared in %s 31337 0
18 16 %s is not frightened in %s 31337 0
18 17 %s is denied entry into the Spooky UnderWorld 31337 0
18 18 I'm not in that casket! 31337 0
18 19 Invalid pitchfork-level range. Valid range is 1-%i. 31337 0
18 20 Invalid pitchfork duration. Your pitchfork duration can be a maximum of %d hours. 31337 0
18 21 Pitchfork reason cannot exceed 128 chars 31337 0
18 22 Specified pitchfork is already in my pitchfork-list! 31337 0
18 23 The pitchfork %s is already covered by %s 31337 0
18 24 Invalid minimum level. 31337 0
18 25 Invalid maximum level. 31337 0
18 26 PUMPKIN: %s GENERATION: %s %s 31337 0
18 27 CASKET: %s -- AUTOMODE: %s 31337 0
18 28 LAST MODIFIED: %s (%s ago) 31337 0
18 29 ** BANISHED ** - Expires in %s (Level %i) 31337 0
18 30 LAST SEEN: %s ago. 31337 0
18 31 There are more than %d matching entries. 31337 0
18 32 Please restrict your query. 31337 0
18 33 End of generation list 31337 0
18 34 No Match! 31337 0
18 35 Cannot add a pumpkin that has an equal or higher generation than your own. 31337 0
18 36 Invalid generation level. 31337 0
18 37 %s is already added to %s with generation level %i. 31337 0
18 38 Added pumpkin %s to %s with generation level %i 31337 0
18 39 Something went wrong: %s 31337 0
18 40 %s: End of pitchfork list 31337 0
18 41 That pumpkin is impersonating the invisible man. 31337 0
18 42 Information about: %s (%i) 31337 0
18 43 Currently disguised as: %s 31337 0
18 44 URL: %s 31337 0
18 45 Language: %i 31337 0
18 46 Caskets: %s 31337 0
18 47 Input Flood Points: %i 31337 0
18 48 Ouput Flood (Bytes): %i 31337 0
18 49 %s is registered by: 31337 0
18 50 %s - last seen: %s ago 31337 0
18 51 Desc: %s 31337 0
18 52 Flood me will you? I'm spoiled so I'm not going to listen to you anymore! :P 31337 0
18 53 I think I've sent you a little too much data, I'm going to ignore you for a while. ;) 31337 0
18 54 Incomplete command 31337 0
18 55 To use %s, you must /msg %s@%s 31337 0
18 56 Sorry, you must chant the secret incantation to use this command. 31337 0
18 57 The casket %s has been suspended by a CService Administrator. 31337 0
18 58 Your generation on %s has been suspended. 31337 0
18 59 The NOOP flag is set on %s 31337 0
18 60 The STRICTOP flag is set on %s 31337 0
18 61 You just scared more than %i people 31337 0
18 62 SYNTAX: %s 31337 0
18 63 Temporarily increased your generation on casket %s to %i 31337 0
18 64 %s is present in the cemetary. 31337 0
18 65 %s is not present in the cemetary. 31337 0
18 66 I don't think %s would appreciate that. 31337 0
18 67 \002*** PITCHFORK List for Casket %s ***\002 31337 0
18 68 %s %s Level: %i 31337 0
18 69 ADDED BY: %s (%s) 31337 0
18 70 SINCE: %s 31337 0
18 71 EXP: %s 31337 0
18 72 \002*** END ***\002 31337 0
18 73 I don't know who %s is. 31337 0
18 74 You are no longer in disguise. 31337 0
18 75 %s doesn't appear to have generation in %s. 31337 0
18 76 Cannot modify a pumpkin that has an equal or higher generation than your own. 31337 0
18 77 Cannot give a pumpkin equal or higher generation than your own. 31337 0
18 78 Modified %s's generation level on casket %s to %i 31337 0
18 79 Set AUTOMODE to OP for %s on casket %s 31337 0
18 80 Set AUTOMODE to VOICE for %s on casket %s 31337 0
18 81 Set AUTOMODE to NONE for %s on casket %s 31337 0
18 82 Your secret chant cannot be your pumpkinname or current nick - syntax is: NEWPASS <new passphrase> 31337 0
18 83 Password successfully changed. 31337 0
18 84 The NOOP flag is set on %s 31337 0
18 85 The STRICTOP flag is set on %s (and %s isn't authenticated) 31337 0
18 86 The STRICTOP flag is set on %s (and %s has insufficient generation) 31337 0
18 87 %s crumbles into dust, forever banished from the UnderWorld 31337 0
18 88 %s is already registered with me. 31337 0
18 89 Invalid casket name. 31337 0
18 90 Registered casket %s 31337 0
18 91 Removed %s from my silence list 31337 0
18 92 Couldn't find %s in my silence list 31337 0
18 93 Cannot remove a pumpkin that has an equal or higher generation than your own 31337 0
18 94 You can't remove yourself from a casket you own 31337 0
18 95 Removed pumpkin %s from %s 31337 0
18 96 Your INVISIBLE setting is now ON. 31337 0
18 97 Your INVISIBLE setting is now OFF. 31337 0
18 98 %s for %s is %s 31337 0
18 99 Value of %s must be ON or OFF 31337 0
18 100 Invalid PUMPKINFLAGS setting. Correct values are NONE, OP, VOICE. 31337 0
18 101 PUMPKINFLAGS for %s is %s 31337 0
18 102 value of MASSDEOPPRO has to be 0-7 31337 0
18 103 MASSDEOPPRO for %s is set to %d 31337 0
18 104 value of FLOODPRO has to be 0-7 31337 0
18 105 FLOODPRO for %s is set to %d 31337 0
18 106 The DESCRIPTION can be a maximum of 80 chars! 31337 0
18 107 DESCRIPTION for %s is cleared. 31337 0
18 108 DESCRIPTION for %s is: %s 31337 0
18 109 The URL can be a maximum of 75 chars! 31337 0
18 110 URL for %s is cleared. 31337 0
18 111 URL for %s is: %s 31337 0
18 112 The string of keywords cannot exceed 80 chars! 31337 0
18 113 KEYWORDS for %s are: %s 31337 0
18 114 Language is set to %s. 31337 0
18 115 ERROR: Invalid language selection. 31337 0
18 116 Can't locate casket %s on the network! 31337 0
18 117 ERROR: Invalid casket setting. 31337 0
18 118 Ignore list: 31337 0
18 119 Ignore list is empty 31337 0
18 120 -- End of Ignore List 31337 0
18 121 CMaster Casket Services Internal Status: 31337 0
18 122 [Casket Record Stats] \002Cached Entries:\002 %i \002DB Requests:\002 %i \002Cache Hits:\002 %i \002Efficiency:\002 %.2f%% 31337 0
18 123 [Pumpkin Record Stats] \002Cached Entries:\002 %i \002DB Requests:\002 %i \002Cache Hits:\002 %i \002Efficiency:\002 %.2f%% 31337 0
18 124 [Generation Level Record Stats] \002Cached Entries:\002 %i \002DB Requests:\002 %i \002Cache Hits:\002 %i \002Efficiency:\002 %.2f%% 31337 0
18 125 [Pitchfork Record Stats] \002Cached Entries:\002 %i \002DB Requests:\002 %i \002Cache Hits:\002 %i \002Efficiency:\002 %.2f%% 31337 0
18 126 Last received Pumpkin NOTIFY: %i 31337 0
18 127 Last received Casket NOTIFY: %i 31337 0
18 128 Last received Level NOTIFY: %i 31337 0
18 129 Last received Pitchfork NOTIFY: %i 31337 0
18 130 Custom data containers allocated: %i 31337 0
18 131 \002Uptime:\002 %s 31337 0
18 132 casket %s has %d pumpkins (%i operators) 31337 0
18 133 Mode is: %s 31337 0
18 134 Flags set: %s 31337 0
18 135 Cannot suspend a pumpkin that has an equal or higher generation than your own. 31337 0
18 136 Bogus time units! 31337 0
18 137 Invalid suspend duration. 31337 0
18 138 SUSPENSION for %s is cancelled 31337 0
18 139 %s is already suspended on %s 31337 0
18 140 SUSPENSION for %s will expire in %s 31337 0
18 141 ERROR: Topic cannot exceed 145 chars 31337 0
18 142 You have insufficient generation to remove the pitchfork %s from %s's database 31337 0
18 143 Removed %i pitchforks that matched %s 31337 0
18 144 Removed your temporary generation of %i from casket %s 31337 0
18 145 You don't appear to have a forced generation in %s, perhaps it expired? :) 31337 0
18 146 %s isn't suspended on %s 31337 0
18 147 %s is a vampire scr1ptk1dd13 slayer 31337 0
18 148 %s is not in costume. 31337 0
18 149 %s is disguised as %s%s 31337 0
18 150 %s is an Official CService Trick-or-Treater%s and is disguised as %s 31337 0
18 151 %s is an Official CService Scary Trick-or-Treater%s and is disguised as %s 31337 0
18 152 %s is getting their ass kicked by Buffy%s and is disguised as %s 31337 0
18 153 There are more than %i entries matching [%s] 31337 0
18 154 Please restrict your search mask 31337 0
18 155 No matching entries for [%s] 31337 0
18 156 %s: Cleared casket modes. 31337 0
18 158 Invalid option. 31337 0
18 159 %s is an Official UnderNet Ghost. 31337 0
18 160 %s is an Official Coder-Com Representative%s and is disguised as %s 31337 0
18 161 %s is an Official Coder-Com Contributer%s and is disguised as %s 31337 0
18 162 %s is an Official Coder-Com Developer%s and is disguised as %s 31337 0
18 163 %s is an Official Coder-Com Senior%s and is disguised as %s 31337 0
18 164 and is a vampire scr1ptk1dd13 slayer 31337 0
18 165 Added pitchfork %s to %s at level %i 31337 0
18 166 %s: pitchfork list is empty. 31337 0
18 167 I'm already in that casket! 31337 0
18 168 This command is reserved to vampire scr1ptk1dd13 slayers 31337 0
18 169 I'm not opped on %s 31337 0
18 170 %s for %i minutes 31337 0
\.
+186
View File
@@ -0,0 +1,186 @@
-- $Id: language_swedish.sql,v 1.7 2007/12/26 19:13:00 kewlio Exp $
-- Swedish language definition.
-- 06/24/2002 - Ponte <tpin@telia.com>.
-- 11/06/2002 - Comet <Comet@irc-solution.net>
-- 11/06/2002 - typo/grammar spellchecking by LexTbomb.
-- Run this once.
DELETE FROM languages WHERE id=20;
INSERT INTO languages VALUES(20,'SV','Svenska',31337);
DELETE FROM translations where language_id = 20;
COPY "translations" FROM stdin;
20 1 Tyvärr, du är redan inloggad som %s 31337 0
20 2 Inloggningen som %s Lyckades! 31337 0
20 3 Tyvärr, du har inte tillräcklig behörighet för att använda detta kommando 31337 0
20 4 Tyvärr, kanalen %s är tom 31337 0
20 5 Jag kan inte hitta %s någonstans 31337 0
20 6 Jag kan inte hitta %s på kanalen %s 31337 0
20 7 Kanalen %s verkar inte vara registrerad 31337 0
20 8 Du fick op av %s (%s) on %s 31337 0
20 9 Du fick voice av %s (%s) on %s 31337 0
20 10 %s: Du är inte i den kanalen 31337 0
20 11 %s: Du har redan voice i %s 31337 0
20 12 %s har redan voice i %s 31337 0
20 13 Du blev deopad av %s (%s) on %s 31337 0
20 14 Du blev devoicead av %s (%s) on %s 31337 0
20 15 %s har inte op i %s 31337 0
20 16 %s har inte voice i %s 31337 0
20 17 INLOGGNINGEN MISSLYCKADES som %s (Felaktigt lösenord) 31337 0
20 18 Jag är inte i den kanalen! 31337 0
20 19 Ogiltig ban nivå. Giltig nivå är 1-%i. 31337 0
20 20 Ogiltig ban varaktighet. Din ban varaktighet kan max vara %d timmar. 31337 0
20 21 Ban anledning kan max vara 128 bokstäver 31337 0
20 22 Den specifika banen finns redan i min banlista! 31337 0
20 23 Banen %s är redan täckt av %s 31337 0
20 24 Ogiltig min level. 31337 0
20 25 Ogiltig max level. 31337 0
20 26 ANVÄNDARE: %s BEHÖRIGHET: %s %s 31337 0
20 27 KANAL: %s -- AUTOMODE: %s 31337 0
20 28 SENAST MODIFIERAD: %s (%s sen) 31337 0
20 29 ** SUSPENDERAD ** - Utgår %s (Nivå %i) 31337 0
20 30 SÅGS SENAST: %s sen. 31337 0
20 31 Det är mer än %d träffar. 31337 0
20 32 Var vänlig specificera din fråga. 31337 0
20 33 Slut på behörighetslistan 31337 0
20 34 Ingen Träff! 31337 0
20 35 Kan inte lägga till en användare med lika hög eller högre behörighet än din egen. 31337 0
20 36 Ogiltig behörighets nivå. 31337 0
20 37 %s finns redan i %s med behörighetsnivå %i. 31337 0
20 38 Lade till användare %s till %s med behörighetsnivå %i 31337 0
20 39 Någonting gick fel:: %s 31337 0
20 40 %s: Slut på banlista 31337 0
20 41 Kan inte visa användardetaljer (Osynlig) 31337 0
20 42 Information om: %s (%i) 31337 0
20 43 För tillfället inloggad via: %s 31337 0
20 44 URL: %s 31337 0
20 45 Språk: %i 31337 0
20 46 Kanaler: %s 31337 0
20 47 Input Flood Points: %i 31337 0
20 48 Ouput Flood (Bytes): %i 31337 0
20 49 %s är registrerad av: 31337 0
20 50 %s - Sågs senast: %s sen 31337 0
20 51 Beskrivning: %s 31337 0
20 52 Floodar du mig? Ja kommer inte att lyssna på dig något mer! 31337 0
20 53 Jag tror att jag har sett lite för mycket data, jag ignorerar dig ett tag. 31337 0
20 54 Icke komplett kommando 31337 0
20 55 För att använda %s, måste du /msg %s@%s 31337 0
20 56 Tyvärr, du måste vara inloggad för att kunna använda detta kommando. 31337 0
20 57 Kanalen %s har blivit suspenderad av en cservice administratör. 31337 0
20 58 Din behörighet på %s har blivit suspenderad. 31337 0
20 59 NOOP är satt "ON" %s 31337 0
20 60 STRICTOP är satt "ON" %s 31337 0
20 61 Du deopade just mer än %i personer 31337 0
20 62 SYNTAX: %s 31337 0
20 63 Ökade tillfälligt din access på kanalen %s till %i 31337 0
20 64 %s är registrerad. 31337 0
20 65 %s är inte registrerad. 31337 0
20 66 Jag tror inte %s skulle uppskatta det. 31337 0
20 67 \002*** Banlista för kanalen %s ***\002 31337 0
20 68 %s %s Nivå: %i 31337 0
20 69 LADES AV: %s (%s) 31337 0
20 70 SEDAN: %s 31337 0
20 71 UTGÅR: %s 31337 0
20 72 \002*** SLUT ***\002 31337 0
20 73 Jag vet inte vem %s är. 31337 0
20 74 Du är inte inloggad med mig längre. 31337 0
20 75 %s verkar inte ha behörighet i %s. 31337 0
20 76 Kan inte modifiera en användare med lika hög eller högre behörighet än din egen. 31337 0
20 77 Kan inte ge en användare lika hög eller högre behörighet än din egen. 31337 0
20 78 Modifierade %s's behörighet på kanalen %s till %i 31337 0
20 79 AUTOMODE till OP för %s på kanalen %s 31337 0
20 80 AUTOMODE till VOICE för %s på kanalen %s 31337 0
20 81 AUTOMODE till INGET för %s på kanalen %s 31337 0
20 82 Ditt lösenordsfras kan inte vara ditt tillfälliga nick - syntax är: NEWPASS <ny lösenordsfras> 31337 0
20 83 Lösenordet ändrades! 31337 0
20 84 NOOP är satt "ON" på %s 31337 0
20 85 STRICTOP är satt "ON" på %s (och %s är inte inloggad) 31337 0
20 86 STRICTOP är satt "ON" på %s (och %s har inte tillräcklig behörighet) 31337 0
20 87 Rensade kanalen %s 31337 0
20 88 %s är redan registrerad med mig. 31337 0
20 89 Ogiltigt kanalnamn. 31337 0
20 90 Registrerade kanalen %s 31337 0
20 91 Tog bort %s från min tystnads lista 31337 0
20 92 Kunde inte hitta %s i min tystnads lista 31337 0
20 93 Kan inte ta bort en användare med lika hög eller högre behörighet än din egen. 31337 0
20 94 Du kan inte ta bort dig själv från en kanal som du äger. 31337 0
20 95 Tog bort användaren %s från %s 31337 0
20 96 Din OSYNLIGHETS inställning är nu "ON". 31337 0
20 97 Din OSYNLIGHETS inställning är nu "OFF". 31337 0
20 98 %s för %s är %s 31337 0
20 99 Värdet för %s måste vara "ON" eller "OFF" 31337 0
20 100 Ogiltig användar inställning. Korrekta värden är NONE, OP, VOICE. 31337 0
20 101 ANVÄNDAR INSTÄLLNINGAR för %s är %s 31337 0
20 102 Värdet för MASSDEOPPRO måste vara 0-7 31337 0
20 103 MASSDEOPPRO för %s är satt till %d 31337 0
20 104 Värdet för FLOODPRO måste vara 0-7 31337 0
20 105 FLOODPRO för %s är satt till %d 31337 0
20 106 BESKRIVNINGEN kan MAX vara 80 tecken! 31337 0
20 107 BESKRIVNINGEN för %s är rensad. 31337 0
20 108 BESKRIVNINGEN för %s är: %s 31337 0
20 109 URL:en kan max vara 75 tecken! 31337 0
20 110 URL:en för %s är rensad. 31337 0
20 111 URL för %s är: %s 31337 0
20 112 Nyckelorden kan max vara 80 tecken! 31337 0
20 113 NYCKELORDEN för %s är: %s 31337 0
20 114 Språket är satt till %s. 31337 0
20 115 ERROR: Ogiltig språk inställning 31337 0
20 116 Kan inte hitta kanalen %s på nätverket! 31337 0
20 117 ERROR: Ogiltig kanal inställning. 31337 0
20 118 Ignorerings lista: 31337 0
20 119 Ignorerings listan är tom 31337 0
20 120 -- Slut på Ignorerng listan 31337 0
20 121 CMaster Kanal Servicens interna status: 31337 0
20 122 [ Kanal Record Status] \002Cached Entries:\002 %i \002DB Efterfrågan:\002 %i \002Cache Träffar:\002 %i \002Effektivitet:\002 %.2f%% 31337 0
20 123 [ Användar Record Status] \002Cached Entries:\002 %i \002DB Efterfrågan:\002 %i \002Cache Träffar:\002 %i \002Effektivitet:\002 %.2f%% 31337 0
20 124 [Behörighets nivå Record Status] \002Cached Entries:\002 %i \002DB Efterfrågan:\002 %i \002Cache Träffar:\002 %i \002Effektivitet:\002 %.2f%% 31337 0
20 125 [ Ban Record Status] \002Cached Entries:\002 %i \002DB Requests:\002 %i \002Cache Hits:\002 %i \002Efficiency:\002 %.2f%% 31337 0
20 126 Senast mottagna Användar NOTIFIERING: %i 31337 0
20 127 Senast mottagna Kanal NOTIFIERING: %i 31337 0
20 128 Senast mottagna Nivå NOTIFIERING: %i 31337 0
20 129 Senast mottagna Ban NOTIFIERING: %i 31337 0
20 130 Blandat datainnehåll lokaliserad: %i 31337 0
20 131 \002Upp tid:\002 %s 31337 0
20 132 Kanalen %s har %d användare (%i operatörer) 31337 0
20 133 Mode: %s 31337 0
20 134 Flaggor satta: %s 31337 0
20 135 Kan inte suspendera en användare med lika hög eller högre behörighetet än din egen. 31337 0
20 136 Ogiltiga tids enheter 31337 0
20 137 Ogiltig suspenderings varaktighet. 31337 0
20 138 SUSPENDERING för %s är avbruten 31337 0
20 139 %s är redan suspenderad på %s 31337 0
20 140 SUSPENDERING för %s utgår %s 31337 0
20 141 ERROR: Topicen kan max innehålla 145 tecken 31337 0
20 142 Du har otillräcklig access för att ta bort banen %s från %s's databas 31337 0
20 143 Tog bort %i banar som matchade %s 31337 0
20 144 Tog bort din tillfälliga access (%i) från kanalen %s 31337 0
20 145 Du verkar inte ha tvingad access i %s, kanske har den utgått? 31337 0
20 146 %s är inte suspenderad på %s 31337 0
20 147 %s är en IRC Operatör 31337 0
20 148 %s är INTE inloggad. 31337 0
20 149 %s inloggad via %s%s 31337 0
20 150 %s är en Officiell CService Representatör%s och inloggad som %s 31337 0
20 151 %s är en Officiell CService Administratör%s och inloggad som %s 31337 0
20 152 %s är en Officiell CService Utvecklare%s och inloggad som %s 31337 0
20 153 Det är mer än %i träfar matchande [%s] 31337 0
20 154 Var vänlig specificera din sök mask 31337 0
20 155 Inga träffar för [%s] 31337 0
20 156 %s: Rensade kanal inställningarna. 31337 0
20 158 Ogiltig valmöjlighet. 31337 0
20 159 %s är en Officiell Undernet Service Bot. 31337 0
20 160 %s är en Officiell Coder-Com Representatör%s och inloggad som %s 31337 0
20 161 %s är en Officiell Coder-Com Bidragare%s och inloggad som %s 31337 0
20 162 %s är en Officiell Coder-Com Utvecklare%s och inloggad som %s 31337 0
20 163 %s är en Officiell Coder-Com Senior%s och inloggad som %s 31337 0
20 164 och en IRC Operatör 31337 0
20 165 Lade till ban %s till %s vid nivå %i 31337 0
20 166 %s: ban listan är tom. 31337 0
20 167 Jag är redan i den kanalen! 31337 0
20 168 Det kommandot är reserverat för IRC Operatörer 31337 0
20 169 Jag har inte Op i %s 31337 0
20 170 %s i %i minuter 31337 0
20 9998 Kom ihåg: Ingen från CService kommer någonsin att fråga efter ditt lösenord, ge INTE ut det till någon som säger sig vara från CService 31337 0
\.
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+27
View File
@@ -0,0 +1,27 @@
-- Use this file to populate the 'languages' table.
--
DELETE FROM languages;
COPY "languages" FROM stdin;
1 EN English 31337 0
2 FR French 31337 0
3 DK Danish 31337 0
4 NL Dutch 31337 0
5 DE German 31337 0
6 PT Portuguese 31337 0
7 IT Italian 31337 0
8 RO Romanian 31337 0
9 CA Catalan 31337 0
10 ES Spanish 31337 0
11 HU Hungary 31337 0
12 TR Turkish 31337 0
13 NO Norsk 31337 0
14 AR Arabic 31337 0
15 HE Hebrew 31337 0
16 MK Macedonian 31337 0
17 EA Easter 31337 0
18 HA Halloween 31337 0
19 GR Greek 31337 0
20 SV Svenska 31337 0
21 CH Christmas 31337 0
\.
+336
View File
@@ -0,0 +1,336 @@
------------------------------------------------------------------------------------
-- Channel service DB SQL file for PostgreSQL.
--
-- .. if you wonder why some tables have moved and you have them here when
-- you set up your dbs, then you may need to have a look in the script 'movetables'
-- after you modified the parameters in it to fit your configuration, run it to
-- properly move your tables from the 'local' db to the 'remote' db.
-- If you use a single db for both cservice*.sql and local_db.sql then just dont run anything.
--
-- nighty <nighty@undernet.org>
CREATE TABLE custom_cookies (
user_id integer,
session_time integer
);
CREATE TABLE exclusions (
excluded character varying(40) DEFAULT '0.0.0.0'::character varying NOT NULL
);
CREATE TABLE gfxcodes (
code character varying(25) NOT NULL,
crc character varying(128) NOT NULL,
expire integer NOT NULL
);
CREATE TABLE ip_restrict (
id integer NOT NULL,
user_id integer NOT NULL,
allowmask character varying(255) NOT NULL,
allowrange1 integer NOT NULL,
allowrange2 integer NOT NULL,
added integer NOT NULL,
added_by integer NOT NULL,
type integer NOT NULL
);
CREATE SEQUENCE ip_restrict_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
CREATE TABLE ips (
ipnum character varying(255) DEFAULT '0.0.0.0'::character varying NOT NULL,
user_name character varying(20) NOT NULL,
expiration integer NOT NULL,
hit_counts integer,
set_on integer NOT NULL
);
CREATE TABLE logmsg (
ts integer,
name character varying(128),
event integer,
message text
);
CREATE TABLE newu_ipcheck (
ts integer NOT NULL,
ip inet NOT NULL,
expiration integer NOT NULL
);
CREATE SEQUENCE nickserv_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
CREATE TABLE themes (
id integer DEFAULT nextval(('"themes_id_seq"'::text)::regclass) NOT NULL,
name character varying(50) NOT NULL,
tstart character varying(5) DEFAULT '01/01'::character varying NOT NULL,
tend character varying(5) DEFAULT '12/31'::character varying NOT NULL,
created_ts integer NOT NULL,
created_by integer DEFAULT 0 NOT NULL,
sub_dir character varying(128) NOT NULL,
left_bgcolor character varying(6) NOT NULL,
left_bgimage character varying(255) DEFAULT ''::character varying NOT NULL,
left_textcolor character varying(6) NOT NULL,
left_linkcolor character varying(6) NOT NULL,
left_linkover character varying(6) NOT NULL,
left_loadavg0 character varying(6) NOT NULL,
left_loadavg1 character varying(6) NOT NULL,
left_loadavg2 character varying(6) NOT NULL,
top_bgcolor character varying(6) NOT NULL,
top_bgimage character varying(255) DEFAULT ''::character varying NOT NULL,
top_logo character varying(255) NOT NULL,
bottom_bgcolor character varying(6) NOT NULL,
bottom_bgimage character varying(255) DEFAULT ''::character varying NOT NULL,
bottom_textcolor character varying(6) NOT NULL,
bottom_linkcolor character varying(6) NOT NULL,
bottom_linkover character varying(6) NOT NULL,
main_bgcolor character varying(6) NOT NULL,
main_bgimage character varying(255) DEFAULT ''::character varying NOT NULL,
main_textcolor character varying(6) NOT NULL,
main_textlight character varying(6) NOT NULL,
main_linkcolor character varying(6) NOT NULL,
main_linkover character varying(6) NOT NULL,
main_warnmsg character varying(6) NOT NULL,
main_no character varying(6) NOT NULL,
main_yes character varying(6) NOT NULL,
main_appst0 character varying(6) NOT NULL,
main_appst1 character varying(6) NOT NULL,
main_appst2 character varying(6) NOT NULL,
main_appst3 character varying(6) NOT NULL,
main_appst4 character varying(6) NOT NULL,
main_appst8 character varying(6) NOT NULL,
main_appst9 character varying(6) NOT NULL,
main_vlinkcolor character varying(6) NOT NULL,
main_support character varying(6) NOT NULL,
main_nonsupport character varying(6) NOT NULL,
main_notyet character varying(6) NOT NULL,
main_frauduser character varying(6) NOT NULL,
main_xat_revert character varying(6) NOT NULL,
main_xat_goperm character varying(6) NOT NULL,
main_xat_deny character varying(6) NOT NULL,
main_xat_accept character varying(6) NOT NULL,
main_acl_create character varying(6) NOT NULL,
main_acl_edit character varying(6) NOT NULL,
table_bgcolor character varying(6) NOT NULL,
table_bgimage character varying(255) DEFAULT ''::character varying NOT NULL,
table_headcolor character varying(6) NOT NULL,
table_headtextcolor character varying(6) NOT NULL,
table_sepcolor character varying(6) NOT NULL,
table_septextcolor character varying(6) NOT NULL,
table_tr_enlighten character varying(6) NOT NULL,
table_tr_enlighten2 character varying(6) NOT NULL,
table_tr_enlighten3 character varying(6) NOT NULL,
table_headimage character varying(255) DEFAULT ''::character varying NOT NULL
);
CREATE SEQUENCE themes_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
CREATE TABLE totp_ips (
ipnum character varying(255),
user_name character varying(20),
expiration integer,
hit_counts integer,
set_on integer
);
CREATE TABLE types (
id integer DEFAULT nextval(('types_id_seq'::text)::regclass) NOT NULL,
label character varying(128) NOT NULL
);
CREATE SEQUENCE types_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
MAXVALUE 2147483647
CACHE 1;
CREATE TABLE userlogmsg (
ts integer,
name character varying(128),
event integer,
message text,
last_updated integer
);
CREATE TABLE users (
id integer DEFAULT nextval(('users_id_seq'::text)::regclass) NOT NULL,
username character varying(20) NOT NULL,
real_name character varying(128) DEFAULT ''::character varying NOT NULL,
url character varying(255) DEFAULT ''::character varying NOT NULL,
type integer DEFAULT 7 NOT NULL,
picture character varying(50) DEFAULT 'undernet.jpg'::character varying NOT NULL,
uniqid character varying(50) NOT NULL,
location character varying(128),
is_alumni integer
);
CREATE SEQUENCE users_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
MAXVALUE 2147483647
CACHE 1;
CREATE TABLE webcookies (
user_id integer,
cookie character varying(32),
expire integer,
tz_setting character varying(255) DEFAULT ''::character varying,
is_admin smallint DEFAULT 0,
totp_cookie character varying(40)
);
ALTER TABLE ONLY ip_restrict ALTER COLUMN id SET DEFAULT nextval('ip_restrict_id_seq'::regclass);
ALTER TABLE ONLY exclusions
ADD CONSTRAINT exclusions_pkey PRIMARY KEY (excluded);
ALTER TABLE ONLY ips
ADD CONSTRAINT ips_pkey PRIMARY KEY (expiration, ipnum, user_name);
ALTER TABLE ONLY newu_ipcheck
ADD CONSTRAINT newu_ipcheck_pkeys PRIMARY KEY (ip);
ALTER TABLE ONLY custom_cookies
ADD CONSTRAINT one_user UNIQUE (user_id);
ALTER TABLE ONLY themes
ADD CONSTRAINT themes_pkey PRIMARY KEY (name);
ALTER TABLE ONLY types
ADD CONSTRAINT types_pkey PRIMARY KEY (id);
ALTER TABLE ONLY users
ADD CONSTRAINT users_pkey PRIMARY KEY (id);
CREATE INDEX exclusions_excluded_key ON exclusions USING btree (excluded);
CREATE INDEX gfxcodes_code_idx ON gfxcodes USING btree (code);
CREATE INDEX gfxcodes_crc_idx ON gfxcodes USING btree (crc);
CREATE INDEX gfxcodes_exp_idx ON gfxcodes USING btree (expire);
CREATE INDEX hit_counts_ips_key ON ips USING btree (hit_counts);
CREATE INDEX ip_restrict_idx ON ip_restrict USING btree (user_id, type);
CREATE INDEX ip_restrict_uidx ON ip_restrict USING btree (user_id);
CREATE INDEX ips_expiration_key ON ips USING btree (expiration);
CREATE INDEX ips_ipnum_key ON ips USING btree (ipnum);
CREATE INDEX ips_set_on_key ON ips USING btree (set_on);
CREATE INDEX ips_user_name_key ON ips USING btree (user_name);
CREATE INDEX logmsg_idx_name ON logmsg USING btree (name);
CREATE INDEX logmsg_idx_namevt ON logmsg USING btree (name, event);
CREATE INDEX newu_ipcheck_expiration ON newu_ipcheck USING btree (expiration);
CREATE INDEX newu_ipcheck_ip ON newu_ipcheck USING btree (ip);
CREATE INDEX newu_ipcheck_ts ON newu_ipcheck USING btree (ts);
CREATE UNIQUE INDEX themes_id_key ON themes USING btree (id);
CREATE INDEX types_id_key ON types USING btree (id);
CREATE INDEX ulogmsg_idx_name ON userlogmsg USING btree (name);
CREATE INDEX ulogmsg_idx_namevt ON userlogmsg USING btree (name, event);
CREATE INDEX users_id_key ON users USING btree (id);
CREATE INDEX users_type_key ON users USING btree (type);
CREATE INDEX webcook_ce_idx ON webcookies USING btree (cookie, expire);
CREATE INDEX webcook_cu_idx ON webcookies USING btree (cookie, user_id);
CREATE INDEX webcook_ia_idx ON webcookies USING btree (is_admin);
CREATE INDEX webcookies_cookie_idx ON webcookies USING btree (cookie);
CREATE UNIQUE INDEX webcookies_cookie_key ON webcookies USING btree (cookie);
CREATE INDEX webcookies_expire_idx ON webcookies USING btree (expire);
CREATE INDEX webcookies_user_id_idx ON webcookies USING btree (user_id);
ALTER TABLE ONLY users
ADD CONSTRAINT users_type_fkey FOREIGN KEY (type) REFERENCES types(id);
ALTER TABLE ONLY users
ADD CONSTRAINT users_type_fkey1 FOREIGN KEY (type) REFERENCES types(id);
INSERT INTO themes VALUES (
-- head
'1',
'default',
'01/01',
'12/31',
'31337',
'0',
'default',
-- left
'60659c',
'',
'000000',
'aaaaaa',
'ffffff',
'aaaaaa',
'000000',
'ffff00',
-- top
'60659c',
'',
'default_logo.jpg',
-- bottom (footer)
'60659c',
'',
'000000',
'aaaaaa',
'ffffff',
-- main
'aaafe4',
'',
'000000',
'505050',
'60659c',
'ff7700',
'ff0000',
'990000',
'009900',
-- main/regproc
'ffff00',
'0000ff',
'0000ff',
'00ff00',
'eeeeee',
'990099',
'ff0000',
'60659c',
'00ff00',
'ff0000',
'ffffff',
'ffeeff',
'00ffff',
'eeeeee',
'990000',
'007700',
'ddffdd',
'ffdddd',
-- tables
'ffffff',
'',
'60659c',
'ffffff',
'dddddd',
'4c4c4c',
'ffff00',
'777777',
'60659c',
''
);
+8
View File
@@ -0,0 +1,8 @@
-- $Id: motd.sql,v 1.5 2002/08/30 10:18:49 nighty Exp $
-- Used to store MOTD text. Use \n for multiple lines.
-- MOTD is just a language response with id 9999.
DELETE FROM translations where response_id = 9999;
COPY "translations" FROM stdin;
1 9999 \026Undernet Channel Services MOTD\026\n\nService Announcements:\nNone at present. 31337
\.
+70
View File
@@ -0,0 +1,70 @@
#!/bin/bash
#------------------------------------------------------------------------------------
#-- "$Id: movetables,v 1.5 2002/08/30 10:51:20 nighty Exp $"
#-- WARNING:!!!
#-- This script shall ONLY be used if you have something else
#-- than 'exceptions','ips' or 'webcookies' in your local database
#-- and you want to move all that should be now in 'remote' to its
#-- destination.
#--
#--
#-- nighty <nighty@undernet.org>
#--
#-- Edit the following 3 variables
#-- (note: do not put the trailing '/' in PGBINDIR)
PGBINDIR="/usr/local/pgsql/bin"
SRCDB="local_db@127.0.0.1"
DSTDB="remote_db@1.2.3.4"
#--
#--
echo "TableUpdate 1.3"
echo "--"
TABLESTOMOVE="pending_pwreset helpmgr_users pending_mgrchange xatadmins"
if [ "$1" != "-YES" ]; then
echo "@@ NOTICE: This will MOVE the following tables :"
echo "@@ $TABLESTOMOVE"
echo "@@ from $SRCDB,"
echo "@@ to $DSTDB."
echo "@@"
echo "?? If you are sure you want this to happen and you have read local_db.sql, then use '`basename $0` -YES'"
echo "@@"
echo "@@ By default the programm drops the old tables from $SRCDB, if you dont want this to happen,"
echo "@@ you should call the programm : '`basename $0` -YES -nodrop'"
echo "@@"
echo ">> Missing argument."
echo " "
exit 1
fi
for i in $TABLESTOMOVE; do
TMPFILE="/tmp/tmpmovtable.$$"
$PGBINDIR/pg_dump -x -t $i $SRCDB > $TMPFILE
$PGBINDIR/psql $DSTDB < $TMPFILE
if [ "$2" != "-nodrop" ]; then
echo "DROP TABLE $i;" > $TMPFILE
$PGBINDIR/psql $SRCDB < $TMPFILE
fi
echo "** moved table '$i' from $SRCDB to $DSTDB."
rm -f $TMPFILE
done
echo ">> Job finished !@#."
echo " "
exit 0
+1
View File
@@ -0,0 +1 @@
.arch-ids
+22
View File
@@ -0,0 +1,22 @@
**** IMPORTANT NOTE ****
There must be a path for AC tokens from your cservice (or other
authenticating service) to NickServ! This will usually mean that all the
servers between cservice and NickServ MUST BE RUNNING ircu2.10.11. If this
is not the case, NickServ will not see users authenticating and will not
be able to function.
It is now possible to run NickServ and CService on the same GNUWorld core.
**** IMPORTANT NOTE ****
Basic Installation Instructions:
1) Create the nickserv db: createdb nickserv
2) Load the NickServ schema: psql nickserv < nickserv.sql
3) Configure to use nickserv: ./configure --enable-modules=nickserv --other-options-you-use
4) Run gnuworld
+32
View File
@@ -0,0 +1,32 @@
NickServ is a service to aid users in preventing unauthorised use of their
chosen nickname.
Having a working service on the network that will authenticate users and
send out AC tokens IS A MUST. Without this, NickServ WILL NOT WORK.
For a user to interact with NickServ in any way, they must have authed
to that service and received usermode +r. NickServ will politely decline
to talk to anyone that is not authed in this manner. If any of this
doesn't make sense to you, it roughly translates to 'you need to be
running ircu2.10.11 and a recent version of mod.cservice'.
Enough of that.
For a user to set up autokill on their chosen nick, they must do the
following:
1) Authenticate with cservice and obtain usermode +r. Their
authenticated nick is the only nick they will be able to enable NickServ
services on.
2) Register with NickServ. This is done simply by '/msg NS register'. NS
will create a new user record for that nickname and inform the user that
it has done so.
3) Set NickServ to autokill. This is done by '/msg NS set autokill on'.
NS will reply that AUTOKILL has been set to ON, and from then on the
nick will be protected.
Should the user wish to disable autokill in the future, they can simply
'/msg NS set autokill off'.
+15
View File
@@ -0,0 +1,15 @@
-- Creation of tables needed for nickserv
CREATE TABLE "users" (
"id" integer DEFAULT nextval('"users_id_seq"'::text) NOT NULL,
"name" character varying(40) NOT NULL,
"lastseen_ts" integer DEFAULT 0 NOT NULL,
"registered_ts" integer DEFAULT 0 NOT NULL,
"flags" integer DEFAULT 0 NOT NULL,
"level" smallint DEFAULT 0 NOT NULL,
"logmask" smallint DEFAULT 0 NOT NULL,
Constraint "users_pkey" Primary Key ("id")
);
CREATE INDEX id_users_key ON users USING btree (id);
+19
View File
@@ -0,0 +1,19 @@
--
-- $Id: notes.sql,v 1.3 2002/08/30 10:28:42 nighty Exp $
--
-- Referenced from config.inc,
-- creates the proper "notes" table when needed (e.g. when it's not present on you database already ;P)
-- run this like 'psql cservice < notes.sql'. *cheers*
--
CREATE TABLE notes (
message_id SERIAL,
user_id INT4 CONSTRAINT users_notes_ref REFERENCES users( id ),
from_user_id INT4 CONSTRAINT users_notes_ref REFERENCES users( id ),
message VARCHAR( 300 ),
last_updated INT4 NOT NULL,
PRIMARY KEY(message_id, user_id)
);
+1
View File
@@ -0,0 +1 @@
.arch-ids
+1
View File
@@ -0,0 +1 @@
.arch-ids
+1
View File
@@ -0,0 +1 @@
.arch-ids
+11
View File
@@ -0,0 +1,11 @@
--
-- This file reflects the latest changes in mod.cservice (26/12/2001)
-- so, you NEED to update your cservice database using that file if you
-- upgraded mode.cservice to a version after 26/12/2001 and you are using an older db schema.
--
ALTER TABLE channels ADD COLUMN no_take INT4 DEFAULT '0';
ALTER TABLE channels ALTER COLUMN flood_pro TYPE INT4;
UPDATE channels SET flood_pro = 0;
UPDATE channels SET no_take = 0;
+11
View File
@@ -0,0 +1,11 @@
--
-- This file reflects the latest changes in mod.cservice (26/12/2001)
-- so, you NEED to update your cservice database using that file if you
-- upgraded mode.cservice to a version after 26/12/2001 and you are using an older db schema.
--
ALTER TABLE channels ADD COLUMN limit_offset INT4 DEFAULT '3';
ALTER TABLE channels ADD COLUMN limit_period INT4 DEFAULT '20';
UPDATE channels SET limit_offset = 3;
UPDATE channels SET limit_period = 20;
+20
View File
@@ -0,0 +1,20 @@
--
-- $Id: update.default_messages.sql,v 1.1 2004/03/07 22:05:22 nighty Exp $
--
-- import this file into the REMOTE_DB :
-- /usr/local/pgsql/bin/psql cservice < update.default_messages.sql
--
-- This table will be used for :
-- Channel reviews : ACCEPT (type=1) or REJECT (type=2)
-- Complaint replies (type=3)
-- or more eventually ...
--
CREATE TABLE default_msgs (
id SERIAL,
type int4 NOT NULL,
label varchar(255) NOT NULL,
content text NOT NULL
);
CREATE INDEX default_msgs_idx ON default_msgs(type);
+3
View File
@@ -0,0 +1,3 @@
-- "Unregister" previously "deleted" channels (Purged).
UPDATE channels SET registered_ts = 0 WHERE deleted = 1;
+18
View File
@@ -0,0 +1,18 @@
--
-- $Id: update.gfxcode.sql,v 1.1 2002/12/27 00:51:39 nighty Exp $
--
-- If you had updated recently and want to enable the "graphical code check" for new usernames,
-- you need to add this to your "local_db".
-- You can issue the following : /usr/local/pgsql/bin/psql local_db < update.gfxcode.sql
--
-- nighty <nighty@undernet.org>
--
CREATE TABLE gfxcodes (
code VARCHAR(25) NOT NULL,
crc VARCHAR(128) NOT NULL,
expire INT NOT NULL
);
CREATE INDEX gfxcodes_idx ON gfxcodes(code,crc,expire);
+22
View File
@@ -0,0 +1,22 @@
--
-- $Id: update.ip_restrict.sql,v 1.1 2004/03/11 02:35:59 nighty Exp $
--
-- Update your REMOTEDB scheme with this file in order to support IP restrictions on logins
--
-- /usr/local/pgsql/bin/psql cservice < update.ip_restrict.sql
--
--
CREATE TABLE ip_restrict (
id SERIAL,
user_id int4 NOT NULL,
allowmask varchar(255) NOT NULL,
allowrange1 int4 NOT NULL,
allowrange2 int4 NOT NULL,
added int4 NOT NULL,
added_by int4 NOT NULL,
type int4 NOT NULL
);
CREATE INDEX ip_restrict_idx ON ip_restrict(user_id,type);
+5
View File
@@ -0,0 +1,5 @@
--
-- Adds the last_ip column to the users_lastseen table
ALTER TABLE users_lastseen ADD COLUMN last_ip VARCHAR( 256 );
+20
View File
@@ -0,0 +1,20 @@
-- $Id: update.statistics.sql,v 1.1 2003/03/14 04:41:25 nighty Exp $
--
-- in order to update your schema to support the new 'statistics' table, you need to run this *ONCE*
--
-- your-system:/home/gnuworld/gnuworld/doc$ /usr/local/pgsql/bin/psql cservice < update.statistics.sql
--
-- enjoy!
CREATE TABLE statistics (
users_id INT4 NOT NULL,
stats_type INT4 NOT NULL,
-- 1 Total reviewed applications count
-- ... more capabilities
stats_value_int INT4 DEFAULT 0 NOT NULL,
stats_value_chr VARCHAR(255) DEFAULT '' NOT NULL,
last_updated INT4 NOT NULL
);
CREATE INDEX statistics_users_id_idx ON statistics(users_id);
+1
View File
@@ -0,0 +1 @@
ALTER TABLE users ADD COLUMN totp_key VARCHAR(60) DEFAULT '';
+7
View File
@@ -0,0 +1,7 @@
-- Update channels table to accept new max_bans feature
--
-- $Id: update_channels_20070325.sql,v 1.1 2007/03/25 16:42:24 kewlio Exp $
--
ALTER TABLE channels ADD COLUMN max_bans INT4 DEFAULT '0';
+62
View File
@@ -0,0 +1,62 @@
--
-- $Id: update_complaints.sql,v 1.2 2003/10/20 02:26:50 nighty Exp $
--
-- This goes to remote DB if you have an older database schema... eg:
-- /usr/local/pgsql/bin/psql cservice < update_complaints.sql
--
CREATE TABLE complaints (
id SERIAL,
from_id int4 NOT NULL,
from_email varchar (255) NOT NULL,
inrec_email varchar (255) NOT NULL,
complaint_type int4 NOT NULL,
complaint_text text NOT NULL,
complaint_logs text NOT NULL,
complaint_channel1_id int4 NOT NULL,
complaint_channel1_name text NOT NULL,
complaint_channel2_id int4 NOT NULL,
complaint_channel2_name text NOT NULL,
complaint_users_id int4 NOT NULL,
status int4 NOT NULL,
nicelevel int4 NOT NULL,
reviewed_by_id int4 NOT NULL,
reviewed_ts int4 NOT NULL,
created_ts int4 NOT NULL,
created_ip varchar (15) DEFAULT '0.0.0.0' NOT NULL,
created_crc varchar (128) NOT NULL,
crc_expiration int4 NOT NULL,
ticket_number varchar(32) NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE complaints_threads (
id SERIAL,
complaint_ref int4 NOT NULL CONSTRAINT complaints_threads_ref REFERENCES complaints (id),
reply_by int4 NOT NULL,
reply_ts int4 NOT NULL,
reply_text text NOT NULL,
actions_text text NOT NULL,
in_reply_to int4 NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE complaint_types (
-- not used for now...
id SERIAL,
complaint_label varchar(255) NOT NULL,
PRIMARY KEY (id)
);
DELETE FROM complaint_types;
COPY "complaint_types" FROM stdin;
1 My username is suspended
2 Members of a registered channel are spamming my channel
3 I object to this channel application but I want to do so anonymously
4 My channel was purged and I want you to reconsider
5 My channel was purged and I want to know why
99 Other complaint
\.
+15
View File
@@ -0,0 +1,15 @@
-- $Id: update_complaints_20031020.sql,v 1.1 2003/10/20 02:26:50 nighty Exp $
--
-- Use this file if you have a database schema older than oct 20 2003.
-- /usr/local/pgsql/bin/psql cservice < update_complaints_20031020.sql
--
CREATE TABLE complaints_reference (
complaints_ref int4 NOT NULL CONSTRAINT complaints_reference_ref REFERENCES complaints (id),
referenced_by int4 NOT NULL,
referenced_to int4 NOT NULL,
reference_ts int4 NOT NULL,
is_new int4 DEFAULT '1' NOT NULL
);
CREATE INDEX complaints_ref_ref ON complaints_reference(complaints_ref,referenced_to);
+10
View File
@@ -0,0 +1,10 @@
-- $Id: update_complaints_20031026.sql,v 1.3 2003/10/27 15:19:20 nighty Exp $
--
-- Use this file if you have a database schema older than oct 26 2003.
-- /usr/local/pgsql/bin/psql cservice < update_complaints_20031026.sql
--
ALTER TABLE "complaints" ADD "current_owner" int4;
UPDATE complaints SET current_owner=0;
ALTER TABLE complaints ALTER column current_owner SET NOT NULL;
Loaded 100 of 870 files, more files were not shown because too many files have changed in this diff. Show more