-
Notifications
You must be signed in to change notification settings - Fork 56
/
import-user.txt
114 lines (102 loc) · 3.88 KB
/
import-user.txt
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
106
107
108
109
110
111
112
113
114
import-user.txt
---------------
Last modified 24/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. Examples of such
files are in this folder, named PC2_Team.tab and Teams.tsv
The third possible format follows the example below:
************ users.txt: *************
[user]
usernumber=2000
usersitenumber=1
username=cassio
userfullname=Cassio P. de Campos
usertype=admin
userpassword=secret
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] Team A
userdesc=[PUC-SP][Pontificial Universidade Catolica de SP] Nome1, Nome2, Nome3
userip=192.168.0.1
usericpcid=1234
usernumber=2
usersitenumber=1
userfullname=[Team B] Full team B name
userdesc=[InstitutionShortName] Long institution name
userip=192.168.0.2
usericpcid=1111
usernumber=3
usersitenumber=1
userfullname=[Shortname] Long team name
userip=192.168.0.3
**************************************
Note that the "****" lines should not
be included in the text file, only what is between them. Consider
using the ICPC data format, downloaded from the ICPC site, to input
the information about the teams. Note that passwords will be
automatically generated for the teams in such case, and you have to
take note of those passwords. If you re-include the teams using those
file formats, new passwords will be generated, and you must take note again.
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/>.
////////////////////////////////////////////////////////////////////////////////