aboutsummaryrefslogtreecommitdiff
path: root/boca-1.5.0/doc/import-user.txt
blob: 96562351ecd4b99869ff96043f560dda796f3117 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
import-user.txt
---------------
Last modified 05/aug/2012 by cassio@ime.usp.br
See Copyright below.

To simplify the input of user's data, it is
possible to put all information in a text
file, according to three different formats. Two
of them are based on the files generated from the
ICPC website system, usually in TAB separated format.
The third possible format follows the example below:

************ users.txt: *************
[user]
usernumber=2000
usersitenumber=1
username=cassio
userfullname=Cassio Polpo de Campos
usertype=admin

usernumber=2001
usersitenumber=1
username=judge1
usertype=judge
userfullname=First judge name
userenabled=f
usermultilogin=t
userip=10.0.0.5

usernumber=2002
usersitenumber=1
username=staff1
usertype=staff
userfullname=Staff person name
userpassword=aBcDe

usernumber=1
usersitenumber=1
userfullname=PUC-SP A
userip=192.168.0.1
usericpcid=1234

usernumber=2
usersitenumber=1
userfullname=PUC-SP B
userip=192.168.0.2
usericpcid=1111

usernumber=3
usersitenumber=1
userfullname=IME-USP C
userip=192.168.0.3

**************************************
Note that the "****" lines should not
be included in the text file.

The users are defined per block of lines.
Blank lines separate the definitions of the
users. The parameters not specified for a
given user inside its block are set to 
the default values.

The parameters in the user's file are:
usernumber: number of the user in the site
usersitenumber: number of the user's site
username: nickname of the user. If not
	  specified, it's generated from
	  the usernumber, ie, "team"+usernumber
userfullname: institution name and team name or
	      just the user name.
userdesc: detailed description about the user.
usertype: type of the user. If not specified,
	  it's set to "team".
userpassword: if not specified, it's left emtpy.
userenabled: if not specified, the user is enabled.
usericpcid: ID of user in the ICPC system. Not required.
usermultilogin: if not specified, the user cannot
		make simultaneous logins form distinct IPs.
userip: from which IP number the user may connect. A list
    of IPs separated by comma may be specified. IPs may
    have netmasks, such as 10.0.0.0/16, or negations,
    such as !143.107.0.0/16.

Contacts and Copyrights
-----------------------
BOCA Copyright (c) 2003- Cassio Polpo de Campos (cassio@ime.usp.br)
http://www.ime.usp.br/~cassio/boca

////////////////////////////////////////////////////////////////////////////////
//BOCA Online Contest Administrator
//    Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
//
//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>.
////////////////////////////////////////////////////////////////////////////////