summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-04-30 18:04:50 +0200
committerYorhel <git@yorhel.nl>2011-04-30 18:04:50 +0200
commit4873e8583189ee9c611fadd27d491dc104c52b57 (patch)
tree8c3b4e8b6f1c011e85f1ead078b7308b0863345e /data
parent57b464e826e5f24828dec9401b70baaa43410b6c (diff)
Replaced user ranks with a permission system
This is far more flexible.
Diffstat (limited to 'data')
-rw-r--r--data/global.pl12
-rw-r--r--data/lang.txt57
2 files changed, 8 insertions, 61 deletions
diff --git a/data/global.pl b/data/global.pl
index d19056f7..2453ed6b 100644
--- a/data/global.pl
+++ b/data/global.pl
@@ -31,15 +31,8 @@ our %S = (%S,
scr_size => [ 136, 102 ], # w*h of screenshot thumbnails
ch_size => [ 256, 300 ], # max. w*h of char images
cv_size => [ 256, 400 ], # max. w*h of cover images
- user_ranks => [
- # allowed actions # DB number
- [qw| |], # 0
- [qw| |], # 1
- [qw| board |], # 2
- [qw| board edit tag |], # 3
- [qw| board boardmod edit charedit tag dbmod tagmod |], # 4
- [qw| board boardmod edit charedit tag dbmod tagmod usermod affiliate |], # 5
- ],
+ # bit flags
+ permissions => {qw| board 1 boardmod 2 edit 4 charedit 8 tag 16 dbmod 32 tagmod 64 usermod 128 affiliate 256 |},
languages => [qw|cs da de en es fi fr hu it ja ko nl no pl pt-br pt-pt ru sk sv tr vi zh|],
producer_types => [qw|co in ng|],
discussion_boards => [qw|an db ge v p u|], # <- note that some properties of these boards are hard-coded
@@ -137,4 +130,3 @@ require $ROOT.'/data/config.pl' if -f $ROOT.'/data/config.pl';
1;
-
diff --git a/data/lang.txt b/data/lang.txt
index b63cc3e4..f3171116 100644
--- a/data/lang.txt
+++ b/data/lang.txt
@@ -104,51 +104,6 @@ ends with ']'. The following options are supported:
# data/global.pl - used in many places
-# user ranks
-
-:_urank_0
-en : visitor
-ru : посетитель
-cs : návštěvník
-hu : vendég
-nl : bezoeker
-
-:_urank_1
-en : banned
-ru : забанен
-cs : zabanovaný
-hu : kicsapva
-nl : gebanned
-
-:_urank_2
-en : loser
-ru : лузер
-cs : loser
-hu : vesztes
-nl : sukkel
-
-:_urank_3
-en : user
-ru : пользователь
-cs : uživatel
-hu : felhasználó
-nl : gebruiker
-
-:_urank_4
-en : mod
-ru : модератор
-cs : moderátor
-hu : mod
-nl :
-
-:_urank_5
-en : admin
-ru : администратор
-cs : administrátor
-hu : admin
-nl :
-
-
# languages
:_lang_cs
@@ -6749,12 +6704,12 @@ cs : Uživatelské jméno
hu : Felhasználónév
nl : Gebruikersnaam
-:_usere_rank
-en : Rank
-ru : Ранг
-cs : Postavení
-hu : Rang
-nl :
+:_usere_perm
+en : Permissions
+ru*:
+cs*:
+hu*:
+nl : Permissies
:_usere_ignvotes
en : Ignore votes in VN statistics