From 160be29a0dc62e79a4fb95d2ab8c0c7e5996760e Mon Sep 17 00:00:00 2001 From: cvs2git Date: Mon, 12 Aug 2002 06:17:10 +0000 Subject: This commit was manufactured by cvs2svn to create branch 'BESTPRACTICAL'. --- rt/bin/rtadmin | 1040 -------------------------------------------------------- 1 file changed, 1040 deletions(-) delete mode 100644 rt/bin/rtadmin (limited to 'rt/bin/rtadmin') diff --git a/rt/bin/rtadmin b/rt/bin/rtadmin deleted file mode 100644 index 25ba1b06a..000000000 --- a/rt/bin/rtadmin +++ /dev/null @@ -1,1040 +0,0 @@ -#!!!PERL!! -w -# -# $Header: /home/cvs/cvsroot/freeside/rt/bin/Attic/rtadmin,v 1.1 2002-08-12 06:17:07 ivan Exp $ -# RT is (c) 1996-2001 Jesse Vincent - -use strict; -use Carp; -use Getopt::Long qw(:config pass_through); - -use lib "!!RT_LIB_PATH!!"; -use lib "!!RT_ETC_PATH!!"; - -use RT::Interface::CLI qw(CleanEnv LoadConfig DBConnect - GetCurrentUser GetMessageContent); - -#Clean out all the nasties from the environment -CleanEnv(); - -#Load etc/config.pm and drop privs -LoadConfig(); - -#Connect to the database and get RT::SystemUser and RT::Nobody loaded -DBConnect(); - -#Drop setgid permissions -RT::DropSetGIDPermissions(); - -#Get the current user all loaded -my $CurrentUser = GetCurrentUser(); - -unless ($CurrentUser->Id) { - print "No RT user found. Please consult your RT administrator.\n"; - exit(1); -} - - - - -PickMode(); - - -# {{{ Help - -sub Help { - - # {{{ help_acl -my $help_acl =" - Access control - --grant-right - --revoke-right - --userid - --groupid - --list-rights"; - -# }}} - - # {{{ help_keyword_sel -my $help_keyword_sel = " - Keyword Selections - --add-keyword-select - --modify-keyword-select - --ks-name - --ks-keyword - --ks-single - --ks-multiple - --ks-depth - - --disable-keyword-select "; -# }}} - - # {{{ help_scrip -my $help_scrip = " - Scrips - --create-scrip - --scrip-condition - --scrip-action - --scrip-template