X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fcreate_sysop.pl;h=da242811ffe19f981efad33e2c5c98ce1fe59bd3;hb=099c6b4a10d9f1e7471b0c94273cd992b5814cdc;hp=43d59785899e31ee1754a5584f43f1544b555fc8;hpb=f46017e7bef9ee062cd5a8648d214eabe585da25;p=spider.git diff --git a/perl/create_sysop.pl b/perl/create_sysop.pl index 43d59785..da242811 100755 --- a/perl/create_sysop.pl +++ b/perl/create_sysop.pl @@ -9,6 +9,16 @@ # $Id$ # +# make sure that modules are searched in the order local then perl +BEGIN { + # root of directory tree for this system + $root = "/spider"; + $root = $ENV{'DXSPIDER_ROOT'} if $ENV{'DXSPIDER_ROOT'}; + + unshift @INC, "$root/perl"; # this IS the right way round! + unshift @INC, "$root/local"; +} + use DXVars; use DXUser; @@ -25,9 +35,11 @@ sub create_it $self->{long} = $mylongtitude; $self->{email} = $myemail; $self->{bbsaddr} = $mybbsaddr; - $self->{sort} = 'C'; # C - Console user, S - Spider cluster, A - AK1A, U - User, B - BBS + $self->{sort} = 'U'; # C - Console user, S - Spider cluster, A - AK1A, U - User, B - BBS $self->{priv} = 9; # 0 - 9 - with 9 being the highest $self->{lastin} = 0; + $self->{dxok} = 1; + $self->{annok} = 1; # write it away $self->close(); @@ -44,7 +56,10 @@ sub create_it $self->{sort} = 'U'; # C - Console user, S - Spider cluster, A - AK1A, U - User, B - BBS $self->{priv} = 9; # 0 - 9 - with 9 being the highest $self->{lastin} = 0; - + $self->{dxok} = 1; + $self->{annok} = 1; + $self->{lang} = 'en'; + # write it away $self->close();