merchant rebuild and Config change

This commit is contained in:
Rainer Gümpelein 2022-01-06 18:14:14 +01:00
parent 89d665a8a4
commit 36a0bb4a23
34 changed files with 55 additions and 10375 deletions

View file

@ -19,21 +19,24 @@ sub new {
sub envonline(){
my $self = shift;
my $server_type = "operator";
my $server_key = "sharee_operator";
my $globalconf_file = "/var/www/copri4/shareeconf/global.cfg";
my $conf = Config::General->new($globalconf_file);
my %globalconf = $conf->getall;
my $basedir = "$globalconf{copri_conf}->{basedir}/$globalconf{operator}{sharee_operator}->{dir_dms}";
my $metahost = $globalconf{operator}{sharee_operator}->{operatorDMS1};
my $basedir = "$globalconf{copri_conf}->{basedir}/$globalconf{$server_type}{$server_key}->{dir_dms}";
my $metahost = $globalconf{$server_type}{$server_key}->{operatorDMS1};
my %varenv = (
dbname => $globalconf{operator}{sharee_operator}{database}->{dbname},
dbuser => $globalconf{operator}{sharee_operator}{database}->{user},
dbpassw => $globalconf{operator}{sharee_operator}{database}->{passwd},
dbhost => $globalconf{operator}{sharee_operator}{database}->{host},
syshost => $globalconf{operator}{sharee_operator}->{dir_app},
wwwhost => $globalconf{operator}{sharee_operator}->{operatorDMS},
praefix => $globalconf{operator}{sharee_operator}{database}->{dbname},
dbname => $globalconf{$server_type}{$server_key}{database}->{dbname},
dbuser => $globalconf{$server_type}{$server_key}{database}->{user},
dbpassw => $globalconf{$server_type}{$server_key}{database}->{passwd},
dbhost => $globalconf{$server_type}{$server_key}{database}->{host},
syshost => $globalconf{$server_type}{$server_key}->{dir_app},
wwwhost => $globalconf{$server_type}{$server_key}->{operatorDMS},
praefix => $globalconf{$server_type}{$server_key}{database}->{dbname},
systype => "sharee",#(azn)
mandant => $globalconf{shareedms_conf}->{parent_node},
start => $globalconf{shareedms_conf}->{start},
@ -42,7 +45,7 @@ sub envonline(){
superu_id => $globalconf{copri_conf}->{superu_id},
debug => $globalconf{copri_conf}->{debug},
logdir => $globalconf{copri_conf}->{logdir},
live_hostname => $globalconf{primary}{sharee_primary}->{live_hostname},
live_hostname => $globalconf{$server_type}{$server_key}->{live_hostname},
metahost=>"$metahost",
orga => "dms",
term_active_color => "#$globalconf{shareedms_conf}->{term_active_color}",

View file

@ -26,7 +26,12 @@ sub new {
#Template
sub tpl(){
my $self = shift;
my ($node_meta,$users_dms,$mode,$varenv,$users_sharee,$return) = @_;
my $node_meta = shift;
my $users_dms = shift;
my $mode = shift || "";
my $varenv = shift;
my $users_sharee = shift || "";
my $return = shift || "";
my $q = new CGI;
my $lb = new Libenz;

View file

@ -1 +0,0 @@
../../../main/src/Lib/PDFGenerator.pm

View file

@ -1 +0,0 @@
../../../main/src/Lib/Printpreview.pm