/usr/share/lemonldap-ng/manager/notifications.pl is in liblemonldap-ng-manager-perl 1.3.3-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | #!/usr/bin/perl
use strict;
use Lemonldap::NG::Manager;
use Lemonldap::NG::Manager::Notifications;
use HTML::Template;
my $cgi = Lemonldap::NG::Manager::Notifications->new(
{
# SESSION EXPLORER CUSTOMIZATION
#managerSkin => 'default',
# ACCESS TO CONFIGURATION
# By default, Lemonldap::NG uses the default storage.conf file to know
# where to find is configuration
# (generaly /etc/lemonldap-ng/storage.conf)
# You can specify by yourself this file :
#configStorage => { type => 'File', dirName => '/path/to/my/file' },
# You can also specify directly the configuration
# (see Lemonldap::NG::Handler::SharedConf(3))
#configStorage => {
# type => 'File',
# directory => '/usr/local/lemonlda-ng/conf/'
#},
}
)
or
Lemonldap::NG::Common::CGI->abort('Unable to start notifications explorer');
my $skin = $cgi->{managerSkin} or $cgi->abort('managerSkin is not defined');
my $css = 'tree.css';
my $css_theme = 'ui-lightness';
my $skin_dir = 'skins';
my $main_dir = $cgi->getApacheHtdocsPath;
my $template = HTML::Template->new(
filename => "$main_dir/$skin_dir/$skin/notifications.tpl",
die_on_bad_params => 0,
cache => 0,
filter => sub { $cgi->translate_template(@_) },
);
$template->param( SCRIPT_NAME => $ENV{SCRIPT_NAME} );
$template->param( TREE => $cgi->tree() );
$template->param( DIR => "$skin_dir/$skin" );
$template->param( CSS => $css );
$template->param( CSS_THEME => $css_theme );
$template->param( VERSION => $Lemonldap::NG::Manager::VERSION );
print $cgi->header('text/html; charset=utf-8');
print $template->output;
|