lemonldap-ng/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/Constants.pm

54 lines
1.3 KiB
Perl
Raw Normal View History

package Lemonldap::NG::Common::Conf::Constants;
use strict;
2016-01-07 13:34:34 +01:00
use utf8;
use Exporter 'import';
use base qw(Exporter);
our $VERSION = '1.0.2';
# CONSTANTS
use constant CONFIG_WAS_CHANGED => -1;
use constant UNKNOWN_ERROR => -2;
use constant DATABASE_LOCKED => -3;
use constant UPLOAD_DENIED => -4;
use constant SYNTAX_ERROR => -5;
2010-01-01 13:04:26 +01:00
use constant DEPRECATED => -6;
use constant DEFAULTCONFFILE => "/usr/local/lemonldap-ng/etc/lemonldap-ng.ini";
use constant DEFAULTSECTION => "all";
use constant CONFSECTION => "configuration";
use constant PORTALSECTION => "portal";
use constant HANDLERSECTION => "handler";
use constant MANAGERSECTION => "manager";
use constant SESSIONSEXPLORERSECTION => "sessionsExplorer";
2011-01-25 17:41:31 +01:00
use constant APPLYSECTION => "apply";
2010-01-01 13:04:26 +01:00
our %EXPORT_TAGS = (
'all' => [
qw(
CONFIG_WAS_CHANGED
UNKNOWN_ERROR
DATABASE_LOCKED
UPLOAD_DENIED
SYNTAX_ERROR
DEPRECATED
DEFAULTCONFFILE
DEFAULTSECTION
CONFSECTION
PORTALSECTION
HANDLERSECTION
MANAGERSECTION
SESSIONSEXPLORERSECTION
2010-01-01 13:04:26 +01:00
APPLYSECTION
)
]
);
our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
our @EXPORT = ( @{ $EXPORT_TAGS{'all'} } );
1;
__END__