Guest User

OTRS Config.pm

a guest
Apr 6th, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 4.37 KB | None | 0 0
  1. # --
  2. # Kernel/Config.pm - Config file for OTRS kernel
  3. # Copyright (C) 2001-2006 OTRS GmbH, http://otrs.org/
  4. # --
  5. # $Id: Config.pm.dist,v 1.18 2006/09/07 16:15:41 mh Exp $
  6. # --
  7. # This software comes with ABSOLUTELY NO WARRANTY. For details, see
  8. # the enclosed file COPYING for license information (GPL). If you
  9. # did not receive this file, see http://www.gnu.org/licenses/gpl.txt.
  10. # --
  11. #  Note:
  12. #
  13. #  -->> OTRS does have a lot of config settings. For more settings
  14. #       (Notifications, Ticket::ViewAccelerator, Ticket::NumberGenerator,
  15. #       LDAP, PostMaster, Session, Preferences, ...) see
  16. #       Kernel/Config/Defaults.pm and copy your wanted lines into "this"
  17. #       config file. This file will not be changed on update!
  18. #
  19. # --
  20.  
  21. package Kernel::Config;
  22.  
  23. sub Load {
  24.     my $Self = shift;
  25.     # ---------------------------------------------------- #
  26.     # ---------------------------------------------------- #
  27.     #                                                      #
  28.     #         Start of your own config options!!!          #
  29.     #                                                      #
  30.     # ---------------------------------------------------- #
  31.     # ---------------------------------------------------- #
  32.  
  33.     # ---------------------------------------------------- #
  34.     # database settings                                    #
  35.     # ---------------------------------------------------- #
  36.     # DatabaseHost
  37.     # (The database host.)
  38.     $Self->{'DatabaseHost'} = 'censored_host';
  39.     # Database
  40.     # (The database name.)
  41.     $Self->{'Database'} = 'censored_databse';
  42.     # DatabaseUser
  43.     # (The database user.)
  44.     $Self->{'DatabaseUser'} = 'censored_user';
  45.     # DatabasePw
  46.     # (The password of database user. You also can use bin/CryptPassword.pl
  47.     # for crypted passwords.)
  48.     $Self->{'DatabasePw'} = 'censored_password';
  49.     # DatabaseDSN
  50.     # (The database DSN for MySQL ==> more: "man DBD::mysql")
  51.     $Self->{DatabaseDSN} = "DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};";
  52.  
  53.     # (The database DSN for PostgreSQL ==> more: "man DBD::Pg")
  54.     # if you want to use a local socket connection
  55. #    $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};";
  56.     # if you want to use a tcpip connection
  57. #    $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};host=$Self->{DatabaseHost};";
  58.  
  59.     # ---------------------------------------------------- #
  60.     # fs root directory
  61.     # ---------------------------------------------------- #
  62.     $Self->{Home} = '/opt/otrs';
  63.  
  64.     # ---------------------------------------------------- #
  65.     # insert your own config settings "here"               #
  66.     # config settings taken from Kernel/Config/Defaults.pm #
  67.     # ---------------------------------------------------- #
  68.     # $Self->{SessionUseCookie} = 0;
  69.     # $Self->{'CheckMXRecord'} = 1;
  70.  
  71.     # ---------------------------------------------------- #
  72.  
  73.     # ---------------------------------------------------- #
  74.     # data inserted by installer                           #
  75.     # ---------------------------------------------------- #
  76.     # $DIBI$
  77.     $Self->{'SystemID'} = 10;
  78.     $Self->{'SecureMode'} = 1;
  79.     $Self->{'Organization'} = '';
  80.     $Self->{'LogModule::LogFile'} = '/tmp/otrs.log';
  81.     $Self->{'LogModule'} = 'Kernel::System::Log::SysLog';
  82.     $Self->{'FQDN'} = 'censored';
  83.     $Self->{'DefaultLanguage'} = 'de';
  84.     $Self->{'AdminEmail'} = '[email protected]';
  85.     $Self->{'DefaultCharset'} = 'utf-8';
  86. #    $Self->{'DefaultCharset'} = 'iso-8859-1';
  87.  
  88.     # ---------------------------------------------------- #
  89.     # ---------------------------------------------------- #
  90.     #                                                      #
  91.     #           End of your own config options!!!          #
  92.     #                                                      #
  93.     # ---------------------------------------------------- #
  94.     # ---------------------------------------------------- #
  95. }
  96.  
  97. # ---------------------------------------------------- #
  98. # needed system stuff (don't edit this)                #
  99. # ---------------------------------------------------- #
  100. use strict;
  101. use vars qw(@ISA $VERSION);
  102. use Kernel::Config::Defaults;
  103. push (@ISA, 'Kernel::Config::Defaults');
  104. $VERSION = '$Revision: 1.20 $';
  105. $VERSION =~ s/^\$.*:\W(.*)\W.+?$/$1/;
  106. # -----------------------------------------------------#
  107.  
  108. 1;
Advertisement
Add Comment
Please, Sign In to add comment